I am in the process of converting an application from RoR-2.3.10 to
3.0.1.  I have run across the situation where partials are not being
rendered at all, whereas the exact same code works fine in Rails2.  The
form code is:

<div class="headers" id="roles_new_page">
<%- content_tag_for :h2, @role, :header do %>
  Add a New role <%= @role.id.to_s -%>
<%- end -%>
<%=error_messages_for :role %>
<%=form_for(@role, :html => {:id => 'new_role_form'}) do |f| %>

  <%= render  :partial  => 'role_header',
              :object   => @role -%>
  <%= render  :partial  => 'role_detail',
              :object   => @role -%>
  <%= render  :partial  => 'shared/effective_period',
              :object   => @role -%>
  <p>
  <%=f.submit :Create,  :id => :submit_create -%>
  </p>
<% end %>
.  .  .

All this generates is:

<form accept-charset="UTF-8" action="/roles" class="new_role"
id="new_role_form" method="post"><div
style="margin:0;padding:0;display:inline"><input name="utf8"
type="hidden" value="&#x2713;" /></div>
  <p>
  <input id="submit_create" name="commit" type="submit" value="Create"
/>  </p>
</form>

Is there anything wrong with using this syntax in Rails3?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to