You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to generate seed_fu script with Seed::Writer using below code:
writer.add(:id => '1', :name => 'Tom', :photo => File.new("#{Rails.root}/path/to/file/myphoto.jpg"))
This generates the seed_fu script like below:
{:id=>"1", :name=>"Tom", :photo=>#File:/Some/path/to/file/myphoto.jpg}
The '#' in the photo hash gets treated as ruby comment symbol so the script fails when running.
how can i dump the File.new call itself instead of the # in the generated file.
The text was updated successfully, but these errors were encountered:
I am trying to generate seed_fu script with Seed::Writer using below code:
writer.add(:id => '1', :name => 'Tom', :photo => File.new("#{Rails.root}/path/to/file/myphoto.jpg"))
This generates the seed_fu script like below:
{:id=>"1", :name=>"Tom", :photo=>#File:/Some/path/to/file/myphoto.jpg}
The '#' in the photo hash gets treated as ruby comment symbol so the script fails when running.
how can i dump the File.new call itself instead of the # in the generated file.
The text was updated successfully, but these errors were encountered: