Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="rename">
- <%= render :template => 'persons/rename'%>
- </div>
- <%= link_to 'Rename', {:controller => 'persons', :action => 'rename', :per_name => person.name}, :class => 'rename', :remote => true %>
- -> <%= params[:per_name]%> #here I am trying to print the name from the link
- $('a.rename').click(function(){
- $('div#rename').css('display', 'block');
- });
- resources :persons do
- collection do
- match 'rename/:person_name' => 'persons#rename'
- end
- end
Add Comment
Please, Sign In to add comment