How do I configure a Rails server in Aptana Studio 3? - ruby-on-rails

I'm using Aptana Studio 3 on Mac High Sierra. I would like to configure a Rails server for my existing Ruby project. I have already imported the Ruby project into my workspace. However, when adding a new server, the drop down list is empty ...
Not sure what else I need to do to add a server configuration. Help is appreciated.

The issue comes from Aptana Studio cannot recognize your project is a Rails project.
Right click on your project in left panel, choose Properties then choose Project Natures on the left side and check Rails on the right side, Apply and close. See my screenshot
Now, you will see your project in the Project dropdown
Anyway, I highly recommend you to use another IDE because Aptana seems to be out-dated. Its last release is more than 1 year ago. Especially for Rails, its support seem to be stopped at Rails 3 because its start script still lookup rails script in script folder instead of bin folder (so, you may also need to copy it from bin to script to be able to start the rails web server)

Related

Umbraco MVC4 IntelliSense not working

I'm working on a few Umbraco projects that use MVC4. The MVC intellisense doesn't work within visual studio and I get lots of errors underlined. But when I run build the project, I don't get any errors, and when I run the site everything works fine.
I'm using Visual Studio 2013 and I created a new MVC4 site and compared the web.configs within the Views folder and they're identical.
I'm pretty sure it's not a code problem as my colleague is using the same code and he doesn't have this problem.
I've just done a fresh install of Visual Studio 2013.
Any ideas?
This could be a clue:
When I hover over #Htmlit tells me that my HtmlHelper is a System.Web.WebPages.Html.HtmlHelper instead of a System.Web.Mvc.HtmlHelper
The common one is to ensure that it is switched on (Visual Studio menu: Tools > Options > Text Editor > All Languages (or C# if you want it just for that language) > Tick "Auto list members", Untick "Hid advanced members", tick "Parameter information")
Once you've checked this, sometimes if you're using one HDD on Windows, because the disk has its bandwidth used up (particularly if using ReSharper then you need two or more drives ideally with the pagefile going to the non-OS drive I find). This is the case if the red lines do disappear after up to two minutes of not touching the IDE.
Finally check you project's references folder to make sure where the paths for your includes are coming from and that Visual Studio has permission to read from there. Permission issues cause all manner of problems I find, so when you launch VS, right click and choose "run as Administrator".
Hopefully one of these solves your problems. If not, then please update your question to explain how you create your project. Do you create an empty site or an MVC site? Do you then use Nuget to install Umbraco through the Package Manager Console like this?
Install-Package UmbracoCms

Is there any way to make Visual Studio 2010 stop starting my MVC projects?

I have a Visual Studio 2010 Solution that contains a few library projectes, a few WPF projects and an ASP.NET MVC 3 project. When i start any project the MVC project get started in the development-server.
Is there some way to stop this behaviour?
Edit:
I just checked to make sure I´m to doing too much wrong. If you start a new solution with a console/whatever project and add an mvc3 project, everytime you start the console project the mvc project gets started as well.
Not sure if this is buggy or an intended feature, but it is kind of strange that the behaviour is so different from normal projects.
If you don't need MVC project for certain period of time, you can unload it (Right-click on the project and select Unload project).
Another option is to select local IIS as a web server (If you have it installed). This way it won't start development server.
You can always choose another project as the default project to start up. You can right-click on the project and set as startup project.
Make sure all your web projects are set to use local IIS rather than the Visual Studio Development server. Unlike the development server, IIS doesn't do anything with a new build until you actually try to load a page.

Cannot find RadRails views in Aptana Studio 3

I cannot see any of the RadRails views in my IDE. For example Rake tasks, rails console, generator view, etc.. See the screenshot for the available view options.
I'm perplexed by the explanations I find on Aptana site and other forums. I cannot find a menu option called "My Aptana" or plug-ins anywhere.
Also, the preferences window does not have the "Ruby" option as expected. See the screenshot.
I have the installed Aptana Studio on Mac (Aptana Studio 3, build: 3.0.1.201104291443) (http://www.aptana.com/products/studio3/download).
Aptana Studio 3 removed a number of the Ruby/Rails specific UI views. We took a "less is more" approach, since keeping the UIs up to date with the evolving ruby/Rails community and across versions proved to be very messy and in many cases the UIs were less productive than just using the command line.
The Rake tasks integration now uses a right-click menu on projects containing Rakefiles.
There are options to launch Rails apps under the server in run or debug mode as well. There's also project wizards for Ruby and Rails, and we have support for YAML, HAML, Ruby, Sass, SCSS, CSS, HTML and ERB files/editors.
For generators we urge users to use the command line inside the IDE (the Terminal view), or outside the IDE.
If there are specific views/functionality that you feel is missing and really needs to be brought back, feel free to add your voice/comments to http://jira.appcelerator.org/browse/APSTUD-2416
Also see http://wiki.appcelerator.org/display/tis/Rails+Development#RailsDevelopment-DeprecatedViewsServers%2CPlugins%2CGems%2CGenerators
I believe Aptana Studio is all built around Rails you can find console under General and you can open a Terminal tab from Aptana folder. It's built a bit differently than RadRails

Installing Umbraco 4.7

I am new to Umbraco and i have heard lot good about this cms.
I want to start Umbraco, but here are newbie questions.
How to Install Umbraco on my local machine.
Ones I make Umbraco work according to my need, what are requirement for deploying on Shared Hosting.
How to deploy on Shared Hosting Server.
Thank You.
Go for Webmatrix - Umbraco setup 30 sec.! www.asp.net/webmatrix
In answer to question 2. Yuo will need the dot net framework installed (4.0) - some hosts say it is but I have known at least one where the avertising blurb did not match the actual enviroment. You also need SQLExpress (2008 R2 is you best version). Once these are up and running, its the same as any database & iis app.
Another thing I found useful, is that Umbraco also provides a WebDeploy (http://www.iis.net/download/webdeploy) package that makes it very easy to deploy on IIS:http://umbraco.codeplex.com/releases/view/73692 look for 'Umbraco_4.7.1_WebDeploy_NET_4.0'.
I do the initial deployment on my development machine, the release to production could be as simple as a copy and paste (plus the db-release).
Hope this helps,
-covo
Umbraco ships in two type of packages.
Zip Package
Nuget Package
1) Zip Package
Zip package contains an Asp.Net website with Umbraco pre-installed in it. All you have to do is to extract the package inside a local directory, host the directory in IIS as a website and open in browser. Umbraco will guide you through the configuration steps, you can also install a starter kit that is a sample website template and is pretty fancy. Umbraco ships three starter kits along with installation package you can chose the one of your choice.
Step 1:
Navigate to umbraco download url and hit “Download Umbraco version*”: https://our.umbraco.org/download/
You’ll get a zip package of nearly 20MB size.
Step 2:
Extract the zip package into a folder and put that folder on any of your computer’s drive.
Step 3:
Open IIS Manager, add new website and point it to your Umbraco folder and start the website.
Step 4:
Now, browse this website, you’ll see the configuration page would appear, enter your name, email and password for Umbraco dashboard, remember your email id would be used as a user name for logging in dashboard. You can see you have two buttons; Install and Customize, Clicking install would get you the standard features in which you get “.sdf” database file inside your project’s “App_Data” folder. Customize on the other hand provides us with many handy configuration options. We’ll follow the customize route to get good understanding of the process.
Step 5:
When going for customized installation, you’ll see the database configuration options. Configure them according to your choice, Note that you’d have to specify a Database server and database name, you can create a new database on your server and you can use an existing database as well. Alternatively, you can select the SQL Server Compact Edition option from dropdown which would create “.sdf” database inside your project.
Step 6:
The next step in configuration would allow you to install a starter kit, starter kits are built in website templates. Let’s just select one of them for sake of learning although you won’t be needing them once you’d be well versed with the components in Umbraco Dashboard. Click on any of the three starter kits and let Umbraco do the magic.
It would take a couple of minutes and then you’ll be redirected to dashboard of your brand new website powered by Umbraco. Welcome to the Umbraco World. You can navigate to the installed website by removing Umbraco from URL. In our case http://localhost/ would show you the website
and http://localhost/umbraco would take you to the dashboard.
2) Nuget Package
Umbraco is also available in Nuget Package Repository. Follow the steps to install Umbraco using Nuget.
Step 1:
Create an Asp.Net or Asp.Net MVC Project in visual studio.
Step 2:
Open Package Manager Console and run the following command: “Install-Package UmbracoCms"
Umbraco will start installing inside your web application. Alternatively, you can right click on your project, hit Manage Nuget packages, find Umbraco CMS there and install it. There’s a slight possibility that your installation fails with error, normally updating the Nuget version solves the problem. Once the Umbraco is installed inside your project you can either run it by hitting F5/ Play from visual studio or you can host a website in IIS like we did in Umbraco installation from a ZIP package.
Step 3:
Once you've managed to browse your web application project in browser, All the next steps are same as ZIP package installation, specify login credentials, configure database and starter kits and Bingo! Umbraco’s installed.

MVC 3 Views not deployed

I have been working on a small project on recent delived ASP.NET MVC 3 RC. The issue is that when I try to deploy my website via File System, certain views of my website are not deployed. The site gives me error when i copy same deployed site to my hosting. When I manually copy views to hosting, it works ok.
Now this thing is not breaking anything as such, just want to know that if I am missing something while deploying my site. I am not sure why few views are deployed and why not others. Seems very random to me.
Thanks,
If you created the app before RC (aka using our Beta) we had a bug in which we didn't mark the views as "Content". New apps using the RC have this bug fixed, but if you open an existing project, it doesn't automatically fix up the existing files.
To fix them, select the file and in the properties pane, set the Build Output to "Content".

Resources