RailsCasts Pro episodes are now free!

Learn more or hide this

Patrick Schmitz's Profile

GitHub User: bullfight

Comments by Patrick Schmitz

Avatar

You can simply assign the form to a symbol or string

ruby
= simple_form_for :login, :url => login_path do |l|
  ...

or

ruby
= simple_form_for "login", :url => login_path do |l|
  ...

This provides for your resource object, so the parsed params in your controller will look like:

ruby
params[:login][:username]
params[:login][:password]
Avatar

I love that you snuck in "When will TextMate 2 be released?"

Avatar

Ryan. I just wanted to add to this sentiment.

While there was much more to wrap my head around than one of your typical screen-casts, the process you are using here is fundamentally different than the typical fleshing out of features without tests. Seeing you test, step by step is invaluable, and I would love to see more of it.