0

I have the following piece of code illustrated as below. Was working in my Rails 2 application but having upgraded to Rails 3 it not longer works.

When I render this code, I'm getting like,

    <%= radio_button <%= text_field "submission_data", :size => 40 %>
        "submission_data", "first_application", "team_lead" %>

Here is my code in view file,

    <%= form_for @submission, :url => {:action => 'update', :id => @submission}, 
    :html => {:id => "submission_form", :name => 'submission_form_name'} do |f|%>

  <%= render :inline => @submission.cycle.seeker_form, 
             :locals => { :submission_data => @submission_data } %>

We're using pg as a back-end support.

Chris Travers
  • 25,424
  • 6
  • 65
  • 182
Dhara Joshi
  • 407
  • 5
  • 9
  • Try calling raw on the inner method. Rails 3 automatically escapes html, so you must tell it not to escape using raw method. – Ermin Dedovic Jul 04 '13 at 12:51
  • Okay, thanks for your reply. I solved this error by removing "<" + "%" %> code from <%= "<" + "%" %> if @submission_data.team_lead == "first_applicant" %>Yes<%= "<" + "%" %> else %>No<%= "<" + "%" %> end %> in db/migrate/init_fixture/forms.yml file. – Dhara Joshi Jul 08 '13 at 06:57

0 Answers0