You just need to specify wanted rails version in the command, rails _4.0.8_ 
new appname 
This works at least on ubuntu and mac.

On Monday, October 13, 2014 11:03:57 PM UTC+2, Jason FB wrote:
>
>
> You can't actually just specify an older version Rails when doing rails 
> new, you need to uninstall & reinstall the whole gem itself. (or use RVM to 
> create yourself a custom gemset, but that's beyond the scope of this answer)
>
>
> you have to uninstall the *rails gem* (be sure to do it globally) and 
> then install the rails gem specifying the version you want
>
> something like:
>
> sudo gem uninstall rails
> sudo gem install rails -v 4.0.8
>
>
>
> +1 to what Colin said, either get a Mac or virtualize Ubuntu inside that 
> *nasty 
> wintel machine*
>
> (kidding, totally kidding, some of my best friends use Windows. But not 
> for Rails development.)
>
>
>
> On Oct 13, 2014, at 4:46 PM, Darko Vulin <[email protected] <javascript:>> 
> wrote:
>
> I typed the command  gem install rails -v 4.0.8 and after I typed rails -v 
> and 
> I got answer  rails 4.1.6
> But, when I start *RubyGems Documentacion server* I see that I have *rails 
> 4.0.8* Full-stack web application framework. 
> But also I have *railties 4.0.8* Tools for creating, working with, and 
> running Rails applications. And* railties 4.1.6* Tools for creating, 
> working with, and running Rails applications.Executable is rails.
> I need rails 4.0.8, not 4.1.6. Thanks
> Dana petak, 10. listopada 2014. 11:42:21 UTC+2, korisnik Darko Vulin 
> napisao je:
>>
>> I am on win7. I installed ruby 2.0.0 but I don't know how tu install 
>> rails 4.0.8.
>> I need this enviroment for Ruby on Rails tutorial. Thank's
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/b3703fe9-eebd-45d1-af33-47cb44aa55d1%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/rubyonrails-talk/b3703fe9-eebd-45d1-af33-47cb44aa55d1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> ----
>
> Jason Fleetwood-Boldt
> [email protected] <javascript:>
> http://www.jasonfleetwoodboldt.com/writing
>
> All material © Jason Fleetwood-Boldt 2014. Public conversations may be 
> turned into blog posts (original poster information will be made 
> anonymous). Email [email protected] <javascript:> with 
> questions/concerns about this.
>  
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/4a2a15c1-1616-4908-9d30-54d57b39c5d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to