How can i use render_to_string in rake task?
namespace :content do
namespace :movie do
desc “desc”
task :rate => :environment do
render_to_string “some_file”
end
end
end
undefined local variable or method `render_to_string’
How can i use render_to_string in rake task?
namespace :content do
namespace :movie do
desc “desc”
task :rate => :environment do
render_to_string “some_file”
end
end
end
undefined local variable or method `render_to_string’
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs