Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Timo's Profile

GitHub User: Tintin81

Comments by Timo

Avatar

Sorry, better use this:

password_reset.text.erb
<%= edit_password_reset_path(@user.password_reset_token, :locale => "#{I18n.locale}") %>
Avatar

For anyone who is working with different locales (like Remmington above), make sure your mailer template looks something like this:

password_reset.text.erb
<%= edit_password_reset_path(@user, :locale => I18n.locale, :password_reset_token => @user.password_reset_token) %>

Especially when you have routes like these:

routes.rb
scope '(:locale)' do
  resources :password_resets
end

It took me ages to figure that out...

Avatar

I like this one even more.

Why is CoffeeScript so popular these days?

I figured out how jQuery works and now I have to start over and learn Coffeescript :-(

Avatar

Great tutorial, Ryan!

I was lucky enough to get this working on my machine.

The only problem I have is that the nested attributes are not saved to the database in the order in which I created them.

E.g. sometimes I create 3 answers at once, then click "Update" and the answers do appear on the form, but not in the correct order. I can't see any pattern in there, so I assume that they get saved to the database randomly.

Is there any way to fix this?