ruby, eh? ruby, eh? ruby, eh? ruby, eh? ruby, eh? ruby, eh? ruby, eh? ruby, eh? ruby, eh?

ruby, eh?

This is me learning ruby. All content is copyrighted of the post it is linked to.

Any questions?
  • Mobile
  • Archive
  • RSS
  • Random

rails: From Param: How URL-Based Fetching Ought to Be

From Param will auto-magically save the to_param of your model to the specified parameter column (defaults to “param” but you can set it by calling set_param_column) and then automatically know to find by that column if it exists when from_param is called. This way, all you have to do is define a to_param that will be unique to your record and everything else is handled for you!

Link tagged as:
Blog
Software
Tumblr
Tumblr Powered Sid05 Templated