README.rdoc in rails_contrib-0.0.2 vs README.rdoc in rails_contrib-0.0.3
- old
+ new
@@ -34,10 +34,19 @@
flash_errors model
= Views
Use conditional_tag if you want wrap content into some tag if certain condition it's true in your views:
- - conditional_tag :h1, request.path == home_path do
+ = conditional_tag :h1, request.path == home_path do
%a#logo{ :href => home_path }= Home
User active_menu? if you want to add an active class to some tag in your views:
%li{ :class => active_menu?(some_path) }
+
+The method submit_tag outputs a button with span inside:
+ <button name="commit" value="submit">
+ <span>Send</span>
+ </button>
+
+The method form_for by default uses request.fullpath path and post method:
+ <form action="fullpath" method="post">
+ </form>