On 7 Feb 2011, at 17:32, Amador Antonio Cuenca <[email protected]> wrote:
> Hi all, I've the following doubt.
>
>
> <% if @entry.geomatics_checker_id.nil? and current_user.geomatics %>
> <%= link_to @entry, :confirm => 'Are you sure?', :method =>
> :set_reviewer do %>
Method (in this context) refers to an http method, i.e. get,post,put and so on
Normally to do what you're trying you'd add a route for that action to
config/routes.rb, and then you can call some_action_entry_path(entry) to get
the path to link to
Fred
> <img src="../images/buttons/Delete.png" title="Review this entry"/>
> <% end %>
> <% elsif @entry.geomatics_checker_id.nil? and not current_user.geomatics
> %>
> <%= t('entries.messages.not_assigned_yet') %>
> <% else %>
> <%= User.find(@entry.geomatics_checker_id).fullname %>
> <% end %>
> </p>
>
> I want to, when I click the link update the @entry and load the show template
> with the changes...
>
> Any suggestion?
>
> Regards,
> --
> TSU. Amador Cuenca
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.