block rails3

master
Espen Antonsen 2010-09-17 18:52:59 +02:00
parent 6593b5709b
commit 14169b1770
11 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
<h1>Register</h1>
<% form_for @user do |f| %>
<%= form_for @user do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Register" %>

View File

@ -1,6 +1,6 @@
<h1>Edit Album</h1>
<% form_for @album do |f| %>
<%= form_for @album do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>

View File

@ -1,6 +1,6 @@
<h1>New Album</h1>
<% form_for @album do |f| %>
<%= form_for @album do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Create" %>

View File

@ -1,6 +1,6 @@
<h1>Edit collection</h1>
<% form_for @collection do |f| %>
<%= form_for @collection do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>

View File

@ -1,6 +1,6 @@
<h1>New collection</h1>
<% form_for @collection do |f| %>
<%= form_for @collection do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Create" %>

View File

@ -1,4 +1,4 @@
<% form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
<%= form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
<% for photo in @photos %>
<p>
<% f.fields_for photo, :index => photo.id do |p|%>

View File

@ -1,4 +1,4 @@
<% form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
<%= form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
<% for photo in @photos %>
<p>
<% f.fields_for photo do |p|%>

View File

@ -1,6 +1,6 @@
<h1>Login</h1>
<% form_for @user_session, :url => authenticate_path do |f| %>
<%= form_for @user_session, :url => authenticate_path do |f| %>
<%= f.error_messages %>
<%= f.label :email %><br />
<%= f.text_field :email %><br />

View File

@ -1,6 +1,6 @@
<h1>Edit My Account</h1>
<% form_for @user, :url => account_path do |f| %>
<%= form_for @user, :url => account_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>

View File

@ -1,6 +1,6 @@
<h1>Register</h1>
<% form_for @user, :url => account_path do |f| %>
<%= form_for @user, :url => account_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Register" %>

View File

@ -240,7 +240,7 @@ class ApplicationCheckerTest < ActiveSupport::TestCase
end
def test_check_helpers
make_file("app/views/users/", "test.html.erb", "<b>blah blah blah</b><% form_for(:thing) do |f| %> <label>doo dah</label> <%= f.whatever %> <% end %>")
make_file("app/views/users/", "test.html.erb", "<b>blah blah blah</b><%= form_for(:thing) do |f| %> <label>doo dah</label> <%= f.whatever %> <% end %>")
@checker.check_old_helpers
assert @checker.alerts.has_key?("Deprecated ERb helper calls")