python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Fill a PDF form with default data
I am working on editing a PDF form/template in Ruby On Rails application.
I want to populate some of form fields with data from database and make few fields editable to take the input from user.
I ...
Chakreshwar Sharma
Votes: 0
Answers: 1
Populate PDF File from Database
I have a PDF file (Predesigned, I have no control over the design) which allows users to fill in some form fields in Adobe Reader and save the result. I want to automate the process of populating some...
Yusuf
Votes: 0
Answers: 1
RoR: Execute SQL in controller
In RoR, in the controller, we can see lines as below:
def index
@books = Book.all
end
How can the @books = Book.all be replaced by actual sql query like select * from book
I tried something like ...

Daryl Wong
Votes: 0
Answers: 1
RubyOnRails how to create form for ransacker method with arguments?
I have a custom ransacker method called score
ransacker :score, args: [:parent, :number_one :number_two] do |parent, args|
(parent.table[:id] + parent.table[:id]) / (number_one + number_two)
en...
Ratnaraj Sukale
Votes: 0
Answers: 0