[Rails] Upgrading to Rails 3.1

2011-05-15 Thread Mohammad E.
I'm working on updating my rails 3.0.5 app to rails 3.1.0.beta1 and I seem to be running into a problem when doing `rake rails:update` when it runs `rake rails:update:javascripts` Here is my bundle: Gems included by the bundle: * RedCloth (4.2.7) * actionmailer (3.1.0.beta1) * actionpack (3.

[Rails] Modify Gemfile and lock

2011-04-30 Thread Mohammad E.
So I'm working on making my own heroku like stack. I have everything except the hooks done now. My problem is that when I modify the Gemfile to include MySQL2 if it's not already included, that I have to also modify the Gemfile lock. Is there any library that can help with this? -- Posted via htt

[Rails] changing format (for respond_to)

2011-04-22 Thread Mohammad E.
So in my action I have: - respond_to do |format| - format.html - format.iphone - end Now I can access action.html and action.iphone, however how would I make it default to the iPhone view if the user agent is an iPhone. I'm pretty tired so forgive me for being brief or perhaps missing somethi

[Rails] Unknown Route?

2011-03-25 Thread Mohammad E.
Looks prettier @ http://bit.ly/dRaTCm if you want it :) Anyone I'm a bit stumped here. Error: No route matches {:controller=>"users", :action=>"confirm", :username=>"Mohammad", :code=>"%242a%2410%24%2FN5mhFlnu.VJ.DMdzh3ob.%2FQAbSb82nHZuZDAl%2F27726MKm6kfLbW"} Route: get 'users/confirm/:userna