search for: button_or

Displaying 2 results from an estimated 2 matches for "button_or".

Did you mean: button_an
2007 Jun 26
3
what is the :or parameter in a submit_tag ?
I read the following tag in teh Beast example <%= submit_tag''Login'', :or => link_to_function(''forgotten password'', "$(''reset-password'').toggle();") %> I understand the link_to_function, but what is this :or parameter used for ? the link doesn''t appear, so it cannot be used... thanks for your lights kad --
2007 Sep 05
0
Savage Beast plugin: Question on the reply form
...uot;2" width="70%"> <%= f.text_area :body, :rows => 8 %> </td> </tr> <tr> <td valign="bottom" style="padding-bottom:15px;"> <%= submit_tag _("Save Reply") %><span class="button_or">or <%= link_to_function _(''cancel''), "$(''reply'').hide()" %></span> </td> </tr> </table> <% end -%> </div> </div> <%= javascript_tag "$(''reply'').hide();"%...