[logaling-commit] logaling/logaling-server [master] Set original_user_glossary_id as argument of xx_path

Back to archive index

SHIMADA Koji null+****@clear*****
Sat Sep 29 00:09:33 JST 2012


SHIMADA Koji	2012-09-29 00:09:33 +0900 (Sat, 29 Sep 2012)

  New Revision: 5edcd73913867e713c1eb70f8bf137f56b316228
  https://github.com/logaling/logaling-server/commit/5edcd73913867e713c1eb70f8bf137f56b316228

  Log:
    Set original_user_glossary_id as argument of xx_path

  Modified files:
    app/views/dashboard/show.html.haml

  Modified: app/views/dashboard/show.html.haml (+1 -1)
===================================================================
--- app/views/dashboard/show.html.haml    2012-09-28 17:10:47 +0900 (5091147)
+++ app/views/dashboard/show.html.haml    2012-09-29 00:09:33 +0900 (a5fee97)
@@ -20,7 +20,7 @@
             %label{ :for => "commit_#{user_glossary.id}" }
               %i{ :class => 'icon-star' }
             = f.submit '', :class => 'hidden', :id => "commit_#{user_glossary.id}"
-          = link_to raw("<i class=icon-file></i>"), new_user_glossary_path(current_user)+"?original_user_glossary_id=#{user_glossary.id}", :class => 'btn btn-mini'
+          = link_to raw("<i class=icon-file></i>"), new_user_glossary_path(current_user, original_user_glossary_id: user_glossary.id), { :class => 'btn btn-mini' }
           = link_to raw("<i class=icon-trash></i>"), user_glossary_path(current_user, user_glossary), method: :delete, :class => 'btn btn-mini'
 
   %h2
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index