block rails3
This commit is contained in:
parent
6593b5709b
commit
14169b1770
|
@ -1,6 +1,6 @@
|
||||||
<h1>Register</h1>
|
<h1>Register</h1>
|
||||||
|
|
||||||
<% form_for @user do |f| %>
|
<%= form_for @user do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Register" %>
|
<%= f.submit "Register" %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>Edit Album</h1>
|
<h1>Edit Album</h1>
|
||||||
|
|
||||||
<% form_for @album do |f| %>
|
<%= form_for @album do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Update" %>
|
<%= f.submit "Update" %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>New Album</h1>
|
<h1>New Album</h1>
|
||||||
|
|
||||||
<% form_for @album do |f| %>
|
<%= form_for @album do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Create" %>
|
<%= f.submit "Create" %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>Edit collection</h1>
|
<h1>Edit collection</h1>
|
||||||
|
|
||||||
<% form_for @collection do |f| %>
|
<%= form_for @collection do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Update" %>
|
<%= f.submit "Update" %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>New collection</h1>
|
<h1>New collection</h1>
|
||||||
|
|
||||||
<% form_for @collection do |f| %>
|
<%= form_for @collection do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Create" %>
|
<%= f.submit "Create" %>
|
||||||
|
|
|
@ -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 %>
|
<% for photo in @photos %>
|
||||||
<p>
|
<p>
|
||||||
<% f.fields_for photo, :index => photo.id do |p|%>
|
<% f.fields_for photo, :index => photo.id do |p|%>
|
||||||
|
|
|
@ -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 %>
|
<% for photo in @photos %>
|
||||||
<p>
|
<p>
|
||||||
<% f.fields_for photo do |p|%>
|
<% f.fields_for photo do |p|%>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>Login</h1>
|
<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.error_messages %>
|
||||||
<%= f.label :email %><br />
|
<%= f.label :email %><br />
|
||||||
<%= f.text_field :email %><br />
|
<%= f.text_field :email %><br />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>Edit My Account</h1>
|
<h1>Edit My Account</h1>
|
||||||
|
|
||||||
<% form_for @user, :url => account_path do |f| %>
|
<%= form_for @user, :url => account_path do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Update" %>
|
<%= f.submit "Update" %>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h1>Register</h1>
|
<h1>Register</h1>
|
||||||
|
|
||||||
<% form_for @user, :url => account_path do |f| %>
|
<%= form_for @user, :url => account_path do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
<%= render :partial => "form", :object => f %>
|
<%= render :partial => "form", :object => f %>
|
||||||
<%= f.submit "Register" %>
|
<%= f.submit "Register" %>
|
||||||
|
|
|
@ -240,7 +240,7 @@ class ApplicationCheckerTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_check_helpers
|
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
|
@checker.check_old_helpers
|
||||||
|
|
||||||
assert @checker.alerts.has_key?("Deprecated ERb helper calls")
|
assert @checker.alerts.has_key?("Deprecated ERb helper calls")
|
||||||
|
|
Loading…
Reference in a new issue