How to add an image to prawn pdf?
I'm wondering how to add an image to a prawn pdf from active storage. I've tried a number of ways and can't seem to get it to render. Thanks in advance, Steve
Stephen Sizer postedI'm wondering how to add an image to a prawn pdf from active storage. I've tried a number of ways and can't seem to get it to render. Thanks in advance, Steve
Stephen Sizer postedYou could try using `render_to_string` & save the rendered view in your database, then when you need to show this report you can `render :html` that. Just an idea, not tested :)
Jesus Castello repliedHi there! I've a view that needs to generate a form table, based on clients and days. For 7 days it creates View (i've tried to do <%= form_for @effort, data: {remote: true} do |f| %> ...
kriera postedHello! I'm trying to also get jQuery to work in a `create.js.erb` file. Would I still need to add the code snippet you provided above if I have this in my `environment.js`: ```javascript const { e...
Steven Torrence replied • SolvedI change the rails timezone config/timezone then config.time_zone = 'West Central Africa' the restart server it's done.
ramzieus replied • SolvedHello, I am using postgres as database, rails 5.0 and ruby 2.4. The problem is, that I have this pur html calendar unsing timeline and timegrid, works ok, when I pass it to my RoR project, only wor...
erniux third postedTrying to submit a form that has a create action in another controller but does not redirect to or render the page (just stay on the page). Error: ``` MessagesController#create is missing a templa...
BrandonKlotz postedThanks for sending that over 👍 That's an even cleaner solution. Ok, so now my code looks like the following: **routes.rb**: ``` namespace :books do resource :google_book, only: [:create] end ...
Nino Rosella replied • Solvedumm that seems like a separate app. which means you would have to use rails as api and have the vue app call those rails api
Tabish Iqbal repliedI think that you can do it from the html_options = {} [ApiDock](https://apidock.com/rails/ActionView/Helpers/DateHelper/datetime_select)
ramzieus repliedI'm trying to update a rails app which runs totally fine if I use rails 4.2.4 (the version it's been developed on) upto rails 4.2.7 As soon as I switch to rails 4.2.8 or later (tested all versio...
Widu Wittekindt postedHey Ivan, I haven't covered this yet on GoRails, but I should. This is a good tutorial to follow if you want to build auth from scratch. https://medium.com/@wintermeyer/authentication-from-scratch...
Chris Oliver repliedHi, I have been having having a challenging problem as my rails skill is still not great. I am using a cocoons gem to generate nested forms. I have three models `Employee` , `Competence` and ...
hemmpa postedLooks good to me. Maybe avoid all the comments.
Tabish Iqbal replied • SolvedHi guys! I'm getting this `OAuth Error: Invalid client_id parameter` after I insert the user creds. Here is my code contains the `client_id` - `devise.rb`: ``` config.omniauth :slack, ...
Ben postedHello someone could explain mehow could i do a find_each that give me all the records associate to my model This is the structure Venue -> has_many :services and Services -> belongs_to Venues...
javier burgos postedHello. I would like to share my problem with you. How to pass value from - in this or that, depending on select, method of Rails-controller? If id of (or name) selected is 'one', it should be pa...
Andre posted@Alexander Miasoiedov Have you found any solution to it? please share if you have any. I am also looking for the same architecture.
Srinivasa Varma D repliedI have an image uploader on a form, and images upload fine without the background processing. Since moving to Heroku, the larger source images often time out, so I'm looking to move this to a backg...
John Athayde postedim trying to combine the paypal button and the f.submit button but have no idea How to get there Is there any better suggestion ` // Render the PayPal button int...
dinesh124 posted