Skip to content

Loading…

Fixed form display (in rails 3.1 at least) #85

Merged
merged 1 commit into from

3 participants

@morgz

Forms weren''t displaying in Rails 3.1

@morgz morgz Form tags need needs <%=
Forms weren''t displaying in Rails 3.1
0e33e1f
@pelle
Owner

Good catch. I'll bring this in. However the change should only be done for the templates under lib/generator as the others are rails2.

@pelle pelle merged commit 7e01c21 into pelle:master
@michelson

in oauth_clients/index the div_for and content_tag_for needs the '=' too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 22, 2011
  1. @morgz

    Form tags need needs <%=

    morgz committed
    Forms weren''t displaying in Rails 3.1
This page is out of date. Refresh to see the latest.
View
2 generators/oauth_provider/templates/edit.html.erb
@@ -1,5 +1,5 @@
<h1>Edit your application</h1>
-<%% form_for :client_application, @client_application, :url => oauth_client_path(@client_application), :html => {:method => :put} do |f| %>
+<%%= form_for :client_application, @client_application, :url => oauth_client_path(@client_application), :html => {:method => :put} do |f| %>
<%%= render :partial => "form", :locals => { :f => f } %>
<%%= submit_tag "Edit" %>
<%% end %>
View
2 generators/oauth_provider/templates/new.html.erb
@@ -1,5 +1,5 @@
<h1>Register a new application</h1>
-<%% form_for :client_application, :url => { :action => :create } do |f| %>
+<%%= form_for :client_application, :url => { :action => :create } do |f| %>
<%%= render :partial => "form", :locals => { :f => f } %>
<%%= submit_tag "Register" %>
<%% end %>
View
2 lib/generators/erb/oauth_provider_templates/edit.html.erb
@@ -1,5 +1,5 @@
<h1>Edit your application</h1>
-<%% form_for :client_application, @client_application, :url => oauth_client_path(@client_application), :html => {:method => :put} do |f| %>
+<%%= form_for :client_application, @client_application, :url => oauth_client_path(@client_application), :html => {:method => :put} do |f| %>
<%%= render :partial => "form", :locals => { :f => f } %>
<%%= submit_tag "Edit" %>
<%% end %>
View
2 lib/generators/erb/oauth_provider_templates/new.html.erb
@@ -1,5 +1,5 @@
<h1>Register a new application</h1>
-<%% form_for :client_application, :url => { :action => :create } do |f| %>
+<%%= form_for :client_application, :url => { :action => :create } do |f| %>
<%%= render :partial => "form", :locals => { :f => f } %>
<%%= submit_tag "Register" %>
<%% end %>
Something went wrong with that request. Please try again.