SHIMADA Koji
null+****@clear*****
Tue Sep 25 19:19:08 JST 2012
SHIMADA Koji 2012-09-25 19:19:08 +0900 (Tue, 25 Sep 2012) New Revision: ca3d97fecc4133e943e18922c350f621ec1b5c02 https://github.com/logaling/logaling-server/commit/ca3d97fecc4133e943e18922c350f621ec1b5c02 Merged 971b851: Merge pull request #14 from logaling/prioritize-the-search Log: Use #new_record? for checking save status 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-25 19:15:39 +0900 (ba7cda4) +++ app/views/dashboard/show.html.haml 2012-09-25 19:19:08 +0900 (49e86fc) @@ -10,7 +10,7 @@ = user_glossary.source_language = user_glossary.target_language = link_to "Show", user_glossary_path(current_user, user_glossary) - - unless @user_config.id.present? + - if @user_config.new_record? = form_for @user_config, url: user_configs_path(current_user), method: :post do |f| = hidden_field :user_config, :glossary_name, value: user_glossary.glossary_name = hidden_field :user_config, :source_language, value: user_glossary.source_language -------------- next part -------------- An HTML attachment was scrubbed... 下載