From 63313f84b666f70b4e905cceb8c099f6f5af471d Mon Sep 17 00:00:00 2001
From: Coleman
- <%= submit_button 'Update' %> + <%= submit 'Update' %>
-<% end -%> \ No newline at end of file +<% end -%> diff --git a/app/views/albums/new.html.erb b/app/views/albums/new.html.erb index 93416d1..f2659d7 100644 --- a/app/views/albums/new.html.erb +++ b/app/views/albums/new.html.erb @@ -1,8 +1,8 @@ <%= error_messages_for :album %> -<% form_for :album, :action => url(:album) do %> +<%= form_for :album, :action => url(:album) do %> <%= partial :album_form %>- <%= submit_button 'Create' %> + <%= submit 'Create' %>
-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/authors/_author_form.html.erb b/app/views/authors/_author_form.html.erb index 832bb11..1be1b6a 100644 --- a/app/views/authors/_author_form.html.erb +++ b/app/views/authors/_author_form.html.erb @@ -1,18 +1,20 @@ \ No newline at end of file + diff --git a/app/views/authors/edit.html.erb b/app/views/authors/edit.html.erb index a480a99..451517d 100644 --- a/app/views/authors/edit.html.erb +++ b/app/views/authors/edit.html.erb @@ -1,8 +1,8 @@ <%= error_messages_for :author %> -<% form_for :author, :action => url(:author, :id => @author.name) do -%> +<%= form_for :author, :action => url(:author, :id => @author.name) do -%> <%= partial :author_form %>- <%= submit_button 'Update' %> + <%= submit 'Update' %>
-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/authors/new.html.erb b/app/views/authors/new.html.erb index 8800ed4..4fb7b27 100644 --- a/app/views/authors/new.html.erb +++ b/app/views/authors/new.html.erb @@ -1,8 +1,8 @@ <%= error_messages_for :author %> -<% form_for :author, :action => url(:author) do %> +<%= form_for :author, :action => url(:author) do %> <%= partial :author_form %>- <%= submit_button 'Create' %> + <%= submit 'Create' %>
-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/comments/_comment_form.html.erb b/app/views/comments/_comment_form.html.erb index c752f71..1eee762 100644 --- a/app/views/comments/_comment_form.html.erb +++ b/app/views/comments/_comment_form.html.erb @@ -7,16 +7,16 @@ <% else -%>- <%= text_control :user, :label => 'Name: ', :size => 32 %> + <%= text_field :user, :label => 'Name: ', :size => 32 %>
<% end -%>- <%= text_control :url, :label => 'URL: ', :size => 60, :max_size => 256 %> + <%= text_field :url, :label => 'URL: ', :size => 60, :max_size => 256 %>
- <%= text_area_control :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %> + <%= text_area :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %>
<% unless logged_in? -%>diff --git a/app/views/comments/new.html.erb b/app/views/comments/new.html.erb index 891839c..0676de3 100644 --- a/app/views/comments/new.html.erb +++ b/app/views/comments/new.html.erb @@ -4,9 +4,9 @@ <%= error_messages_for :comment %> -<% form_for :comment, :action => url(:comments) do %> +<%= form_for :comment, :action => url(:comments) do %> <%= partial :comment_form %>
- <%= submit_button 'Create' %> + <%= submit 'Create' %>
-<% end -%> +<% end =%> diff --git a/app/views/invitations/new.html.erb b/app/views/invitations/new.html.erb index 24bb1b7..568b232 100644 --- a/app/views/invitations/new.html.erb +++ b/app/views/invitations/new.html.erb @@ -1,11 +1,11 @@ -<% form_for :invitation, :action => url(:invitation) do -%> +<%= form_for :invitation, :action => url(:invitation) do -%>- <%= submit_button 'Send' %> + <%= submit 'Send' %>
-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/pages/edit.html.erb b/app/views/pages/edit.html.erb index cfdb6da..648c8ba 100644 --- a/app/views/pages/edit.html.erb +++ b/app/views/pages/edit.html.erb @@ -1,6 +1,6 @@ <%= error_messages_for :page %> -<% form_for :page, :action => url(:page, :id => @page.name.gsub(/ /, '_')) do -%> +<%= form_for :page, :action => url(:page, :id => @page.name.gsub(/ /, '_')) do -%> -<%= submit_button 'Update' %>
-<% end -%> +<%= submit 'Update' %>
+<% end =%> \ No newline at end of file + diff --git a/app/views/permissions/edit.html.erb b/app/views/permissions/edit.html.erb index d899a39..e2b063f 100644 --- a/app/views/permissions/edit.html.erb +++ b/app/views/permissions/edit.html.erb @@ -20,7 +20,7 @@ function check_all(form_name, field_name, checkbox_value) } -<% form_for :permission, :action => url(:permission, @author), :id => 'permission_form' do -%> +<%= form_for :permission, :action => url(:permission, @author), :id => 'permission_form' do -%> <%= hidden_field :name => '_method', :value => 'put' %>- <%= submit_button 'Save' %> + <%= submit 'Save' %>
-<% end -%> \ No newline at end of file +<% end -%> diff --git a/app/views/photos/new.html.erb b/app/views/photos/new.html.erb index fcd5724..8a4b5b4 100644 --- a/app/views/photos/new.html.erb +++ b/app/views/photos/new.html.erb @@ -4,14 +4,14 @@ <%= error_messages_for :photo %> -<% form_for :photo, :action => url(:photo), :multipart => true, :onsubmit => "$('indicator').style.display = 'inline';" do %> +<%= form_for :photo, :action => url(:photo), :multipart => true, :onsubmit => "$('indicator').style.display = 'inline';" do %>- <%= submit_button 'Create' %> + <%= submit 'Create' %>
-<% end -%> \ No newline at end of file +<% end =%> diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index d3e04ec..131b5aa 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,12 +1,12 @@ -<% form_tag :action => url(:sessions) do -%> +<%= form :action => url(:sessions) do -%> -<%= submit_button 'Login' -%>
-<% end -%> +<%= submit 'Login' -%>
+<% end =%> \ No newline at end of file + diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb index 74c4fee..714dd5b 100644 --- a/app/views/tags/edit.html.erb +++ b/app/views/tags/edit.html.erb @@ -1,11 +1,11 @@ -<% form_for :tag, :action => url(:tag, :id => @tag.name) do -%> +<%= form_for :tag, :action => url(:tag, :id => @tag.name) do -%>- <%= submit_button 'Save' %> + <%= submit 'Save' %>
-<% end -%> \ No newline at end of file +<% end =%>