You may have used helper methods before to streamline the code in your views, and you may have even used block helpers, to further improve your refactoring, but probably not block helpers with their own methods. This technique is how text_field :product, :name became f.text_field :name.
You can use these blocks like this:
<% navigation('title') do |n| %> <p><%= n.option('Services', services_path) %></p> <p><%= n.option('About Us', about_us_path) %></p> ... <% end %> Thank you to everyone who left a comment or emailed me in response to my last screencast, feedback is greatly appreciated, so as always, any thoughts, please feel free to leave a comment below.
discuss this topic to forum
