What is the source (url) for Rails Engines that works with rails 2.2.2?
I'd get the current source from github and search for "engine".
It looks like the Rails Guides did not start until Rails 2.3.8. I could not find guides for anything less than Rails 2.3.8.
http://guides.rubyonrails.org/v2.3.8.
Additionally, Rails Engines were something introduced in Rails 2.3, though similar functionality may have been present in Rails 2.2 through Plugins.
http://railscasts.com/episodes/149-rails-engines?autoplay=false
Related
I have a Rails 2.3 App. My requirement is simple, I need to mount Rails new version 3.2 to my existing Rails 2.3 version. Is it possible? Can I use Rails Engines for that ? Finally I want major portion of my app is in Rails 2.3 and some new portions / functionality in Rails 3.2 without updating my Rails 2.3 version. Anyone please help me.
A Guide is the part screen-cast series on Rails-casts by Ryan Bates
http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
http://railscasts.com/episodes/226-upgrading-to-rails-3-part-2
http://railscasts.com/episodes/227-upgrading-to-rails-3-part-3
ASCII-CASTS :
http://asciicasts.com/episodes/225-upgrading-to-rails-3-part-1
http://asciicasts.com/episodes/226-upgrading-to-rails-3-part-2
http://asciicasts.com/episodes/227-upgrading-to-rails-3-part-3
Ok, there are similar question about this but I'm going a little bit further. I started working with Rails 3.2 but many of the things I wanted to do were not yet compatible. For example I was following the exercises of a book and there were using prototype and effect, things that are deprecated in Rails 3.2, I know I can switch between version, but If you would have to start a serious project and you would like to go through the painless way, which environment would you use?
Rails, Ruby, Prototype or Jquery,coffeescript or js, Sass or css, js.erb or rjs.erb...etc etc...
I know companies that are still using Rails 2.2 because the know exactly the version and their compatibilities.
Prototype isn't deprecated, it just isn't the default js library included in Rails 3.1.
Use the prototype-rails gem if you want to use prototype.
https://github.com/rails/prototype-rails
If your book was using prototype then it's most likely very out of date.
Here's a great tutorial for Rails 3.2:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=3.2
Now I am studying Ruby on Rails in Ruby 1.9.3 environment.
But I saw many articles that ruby 1.x sources doesn't work in ruby 2.0 and 3.0.
If so, is it mean that I have to study again Ruby 2.0 or 3.0 when Ruby on Rails has been updated to run under Ruby 2.0 or 3.0?
Thank you in advance!
You're confusing Ruby on Rails with Ruby. There is no Ruby 3.0, but there is a Ruby on Rails 3.0.
The current versions of Ruby are: 1.8.7, 1.9.2 and 1.9.3 which was just released.
The current versions of Rails are: 2.3.14, 3.0.10, and 3.1.1.
Ruby 2.0 hasn't seen a release yet and remains a theoretical construct at this point.
Ruby is to Rails as Javascript is to Jquery.
One is a language, and the other is really just a bunch of files (scripts, like in a play) that handle a lot of background jobs and tasks that you might need done when building a Ruby application. Rails is more commonly referred to as a framework, it's really just a pattern or paradigm for helping you structure your code.
To make more sense of this, you could try using an alternate framework to Rails, like Padrino, which is written in Ruby too, but is not Rails. It's Padrino. Same idea, ostensibly.
I recommend reading a very simple vanilla book on Ruby, which goes nowhere near any of the frameworks, like this one by Zed Shaw (which was not originally written for Ruby and so doesn't really go into the more complex and exciting stuff for which Ruby is known, like metaprogramming) but which will give you a broad based insight into how it works.
Then, in a month or so, move on to Rails Tutorial. Good luck.
I recently learned Rails (Rails 3 to be specific) and got a small project maintaining a Rails 2.3.2 app.
So, as you might expect, I keep running into differences between what I learned in Rails 3 and what I'm working in.
For example 'rails server' command in Rails 3 is 'script/server' in Rails 2.x.
What else should I know to maintain my sanity?
If you're new to rails, I don't know if you'll see a lot of differences. The rails server command is one thing however.
The other big thing is the use of .gemspec in Rails 2.3.5 instead of Bundler and Gemfiles in Rails 3. Installing gems/specifying which gems your app uses is way better in Rails 3 I think.
The rest are mostly syntax changes and depreciated functions in specific areas (e.g. javascript generators).
This Blog does a good job of listing most of the major changes in more detail.
Hope that helps!
This is my first question here in StackOverflow :)
I've been searching for the best plugin for administrator for my Rails 2.3.11 app.
I can create my own but I have to rush my project so I decided to use these kinds of plugin.
I already searched rails_admin and active_admin. There are both good but I think that's for Rails 3 only. So I need to find some admin plugins for Rails 2.3.11.
Your ideas are much welcome :) Thanks!
Give Typus a try. It works on rails 2.3 and is quite popular, although the author isn't planning on maintaining the 2.3 version anymore.
https://github.com/typus/typus/wiki/requirements