Skip to content

Commit

Permalink
Fix some warnings, bad merged code
Browse files Browse the repository at this point in the history
  • Loading branch information
courtenay committed Aug 6, 2009
1 parent 770549c commit 9828f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/sessions_controller.rb
Expand Up @@ -32,7 +32,7 @@ def password_authentication(name, password)
if @current_user = current_site.users.authenticate(name, password)
successful_login
else
failed_login I18n.t 'txt.invalid_login', :default => "Invalid login"
failed_login I18n.t('txt.invalid_login', :default => "Invalid login")
end
end

Expand All @@ -52,7 +52,7 @@ def open_id_authentication(openid_url)
end
successful_login
else
failed_login I18n.t 'txt.invalid_openid', :default => "Sorry, no user by the identity URL #{openid_url} exists"
failed_login I18n.t('txt.invalid_openid', :default => "Sorry, no user by the identity URL #{openid_url} exists")
end
else
failed_login result.message
Expand Down
4 changes: 3 additions & 1 deletion app/views/posts/edit.html.erb
Expand Up @@ -9,5 +9,7 @@
<% form_for :post, :html => { :method => :put },
:url => forum_topic_post_path(@post.forum, @post.topic, @post, :page => current_page) do |f| -%>
<p id="post_body"><%= f.text_area :body %></p>
<%= submit_tag I18n.t('txt.views_posts.save', :default => 'Save post') %> <%= I18n.t 'txt.or', :default => 'or' %> <%= link_to link_to(I18n.t('txt.cancel', :default => 'cancel'), forum_topic_path(@post.forum, @post.topic, :page => current_page) %>
<p><%= submit_tag I18n.t('txt.views_posts.save', :default => 'Save post') %>
<%= I18n.t 'txt.or', :default => 'or' %>
<%= link_to I18n.t('txt.cancel', :default => 'cancel'), forum_topic_path(@post.forum, @post.topic, :page => current_page) %></p>
<% end -%>

0 comments on commit 9828f9e

Please sign in to comment.