Do Rubymine support Rails view and linking of files in Rails (Engine/Module)? - ruby-on-rails-3

Does Rubymine version 6 supports views for Rails::Engine that is already built?
I have a separate Rails project named Kitting as an Engine under lib folder of the main app.
Folder structure:
RAILS.root/lib/kitting/app/controllers/kitting/controller_name
Excluding the Engine, I'm able to render views in the main project.
Let me know if any suggestions.

NO Plugin Developed for RUBY MINE TO SUPPORT Existing ENGINE.
But you can open the rails engine in ruby mine as new project that would work fine.

Related

Rails not found in specific rails project folder

I've installed rails using rvm. I've loaded rvm using ~/.bahsrc.
rails is working fine.
which rails
/home/user/.rvm/gems/ruby-2.1.0/bin/rails
but in that rails project folder which command says
/home/dinesh/.rvm/gems/ruby-2.0.0-p353#something/bin/rails
How's this happening? How to make my rails work in that folder?
If you are in the root of a rails project you may use
./script/rails --version # (or whatever rails command you want to call)
to be sure to use the rails version that corresponds to your project. Usually rails magic will apply inside a rails project and "happen" to find the correct version of rails, but there seems to be a number of things that can go wrong about that.

Rails 3.2 + Require.js?

I've been reading a lot of info on Require.js. AMD seems very interesting and I got it to work in a standalone backbone.js app. However, Sprocket in Rails seems to conflict with it. Do you recommend projects to go with standard Rails asset pipeline without Require.js?
I saw this article but it's for Rails 3.1, so not sure if it's still applicable: Using RequireJS with a Rails 3.1 app
Also, Underscore no longer seems to be supporting AMD. I don't want to use yet another package to work with Backbone.
I did this awhile ago I used the "use" requireJS plugin to load incompatible libs like underscore.js
https://github.com/tbranyen/use.js
and I think I only included require.js into the sprockets assets, and used it like in any other application.

Migrating from Rails 2.3 to 3.2 over a long period

I'm working on a small project that has been allocated a small amount of time to maintain and update features. This project is on Rails 2.3.
I'd like to move it to Rails 3.2 but there is little time allocated to this so I would like to do it over a slow gradual process.
I'm thinking that it might be worth moving over to Rails 3.2 on a section-by-section basis.
This would mean that I would create a second application that looks the same as the first one but is located somewhere different and accessed from a different subdomain.
Is this feasible if I just update the Rails 2.3 routes file for certain routes to go to the new application?
Has anyone done this before?
It depends on many parameters but among these the most relevant are :
Does your Rails 2 project already use Bundler ? If not, migrate to it before the migration.
Do you use gems which are known not to work on Rails 3 ?
Does your project already use Rails XSS plugin (https://github.com/rails/rails_xss) ? If not, migrate to it before the migration.
After that, the migration will be easier.
For the migration, I recommend that you create a brand new Rails application using "rails new" command, so that all the boot files will be good. Then migrate the initializers/config files and "app" folder...
Good luck.

How to create a new Rails 3 project in aptana 3? and also turn the perspective to the rails or ruby

I have aptana 3 and is updated.
How to create a new project and setup a server for this to work?
Here is the doc on creating Rails project and starting a server in Aptana Studio 3: http://wiki.appcelerator.org/display/tis/Rails+Development. There is no Rails or Ruby specific perspective any more, just the Web perspective. Also some of the Rails specific views in RadRails 2 are deprecated, as there is now a built-in Terminal view where the rails commands could be run.

Is there any working CMS extension for Spree 0.40.x (Rails 3)?

I've been trying to add a basic CMS to my new Spree 0.40.x but I'm no getting any success. Documentation seems bare empty.
I've tried every extension listed here but I couldn't install some of them, others I did installed them, but seems they're using rails 2 deprecated methods.
Does any of you have been able to add a CMS to Spree under Rails 3? I don't mind if i need to use an older version of Spree, I just need a basic CMS.
Thank you
Why exactly will you need CMS?
If you require it to create static pages with WYSWYG editor then you can use spree-static-content extension https://github.com/spree/spree_static_content