ariel@bloodchoke demo$ rails console
Loading development environment (Rails 3.0.3)
ree-1.8.7-2010.02 > w = Widget.create!(:name => 'foo')
=> #
ree-1.8.7-2010.02 > app.widgets_path(w)
=> "/widgets.1"
ree-1.8.7-2010.02 > app.widget_path(w)
=> "/widgets/1"
Why doesn't Rails raise an exception when I try to do this?
No comments:
Post a Comment