[Locomotive-users] Seeing /:id:format in my production urls
Scott Tamosunas
tamosunas at gmail.com
Sun Feb 18 14:35:24 GMT 2007
Sorry, I hit the send button by accident:
When I run
rake rails:freeze:gems, I get the following error:
rake rails:freeze:gems
(in /Users/stamosunas/workspaces/ruby/tamosunas.com)
/Users/stamosunas/workspaces/ruby/tamosunas.com/config/boot.rb:29:Warning:
require_gem is obsolete. Use gem instead.
Freezing to the gems for Rails 1.2.1
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
ERROR: While executing gem ... (ArgumentError)
install directory "activesupport-1.4.0" not absolute
rake aborted!
exit
(See full trace by running task with --trace)
My gem env looks like the following:
matilda:~/workspaces/ruby/tamosunas.com stamosunas$ gem environment
RubyGems Environment:
- VERSION: 0.9.1 (0.9.1)
- INSTALLATION DIRECTORY:
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8
- GEM PATH:
-
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org
I found this bug report:
http://dev.rubyonrails.org/ticket/7322
Any ideas?
Thanks again,
Scott
On 2/18/07, Scott Tamosunas <tamosunas at gmail.com> wrote:
>
>
>
> On 2/18/07, Grant Neufeld <grant at grantneufeld.ca > wrote:
> >
> > At 12:27 AM -0500 2/18/07, Scott Tamosunas wrote:
> > >production environment, I see the following in my Urls:
> > >
> > > www.mysite.com/main/:id:format
> > ...
> > >I also noticed the rails version in the locomotive bundle is 1.2.1
> > >and on my hosting server it's 1.1.6.
> >
> > That's the problem. Support for mixing colon-separated parameters
> > within a chunk of the url was added in Rails 1.2.
>
>
> Ok, how was it done previously? Up in my rhtml file, I am using <%=
> link_to "personal_projects", :action => "personal_projects" %>, I thought
> that was fairly standard?
>
> In general, it's a _very_ good idea to run with the identical version
> > of Rails on both your development and production systems.
> >
> > You may want to freeze Rails into your project's vendor folder to be
> > certain.
>
>
> I totally agree, I just found out about the difference on my hosting site.
> And thanks for the freezing suggestion, that makes sense to me. However,
> when I run rake rails:
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/b6836fc5/attachment.htm
More information about the Locomotive-users
mailing list