Displaying 2 results from an estimated 2 matches for "right_nam".
Did you mean:
right_name
2005 Mar 03
0
routes and link_to
..., I have this:
<% @rights.each do |right| %>
<tr>
<td class="column_data"><%= link_to("Delete", :action =>
"delete", :id => right.right_id) %></td>
<td class="column_data"><%= link_to(right.right_name, :action
=> "update", :id => right.right_id) %></td>
<td class="column_data"><%= right.right_description %></td>
</tr>
<% end %>
the problem is that rails_right is not present in the URL generated.
I thought that w...
2007 Nov 23
2
Create my own dynamic "finder" method?
Hi all
I''m having an authorization method that looks like the following:
def user_requests_authorization_to(right_name)
...
end
I find it boring to always use
user_requests_authorization_to(''EDIT'')
user_requests_authorization_to(''CREATE'')
etc., so I thought I could implement my own dynamic method, like the
dynamic finders! Instead of the calls above I''d like to cal...