Hi Sudhir,
The best way to get a solution to this issue is using a gem instead
of prown gem.
You can simply use the "pdf-writer" gem instead of prown & it
will
give the result what you actually expected.
Hope this information useful to you. If you really want to update
more about Ruby on Rails and its development, Then just check this
out.
http://innoppl.com/why-its-a-technology-to-really-consider/
Have a Nice Day...
Regards
Daniel Jackson
On Jan 20, 2:28 pm, sudhir singh tomar
<sudhir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> i installed the prown gem for getting my data in pdf formate but i
> getting error
> undefined method `to_sym'' for PDF:Module
> i used this
> def show
> @student = Student.find(params[:id])
>
> respond_to do |format|
> format.html
> format.json { render :json => @student }
> format.pdf { render :layout => false }
> end
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.