HomeЮморRelated VideosMore From: saasbook

Dynamically-generated route helpers for RESTful resources

0 ratings | 12 views
When we set up RESTful routes for a resource, the Rails routing system not only arranges to setup URIs for each of the RESTful controller actions, but also dynamically generates (using metaprogramming) helper methods like `new_movie_path()` that return the correct URI for use in views, as the accompanying figure shows.
Category: Юмор
Html code for embedding videos on your blog
Text Comments (0)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.