RailsCasts Pro episodes are now free!

Learn more or hide this

Sivananda Reddy G's Profile

GitHub User: gsivananda

Comments by Sivananda Reddy G

Avatar

How to pass locales for question_fields partial. Can anyone help me out.

<%= f.fields_for :questions do |builder| %>
<%= render "question_fields", :f => builder %>
<% end %>

I have tried the following way and tried to access type in question_fields. It's thrown error(Undefined variable type)

<%= f.fields_for :questions do |builder| %>
<%= render "question_fields", :f => builder, :type => "Test" %>
<% end %>

Avatar

Hi Ryan,

How to copy an existing images into Rails project in Rails 2.3.5.
For example I have one item it has some images, I am copying same item but here problem is how to copy existing images.Internally I am using paper clip gem for saving images.

Thanks in advance.