Add a form/method that submits in Rails with AJAX

In Progress

We're working on a project and need a bit of code written that does the following:

1. Submits a form via AJAX through a modal/lightbox.

2. Refreshes the main content to reflect the new data that was submitted.

Attached are two pieces of code. Here's the scenario.

We have a form ([url removed, login to view]) that allows a user to create a new book with a Title, Author, and Release Date. The form has a list of previously submitted Chapters (A book has many chapters with a number and a name). Within this form is a modal/lightbox (utilizes bootstrap). The modal allows the user to submit a new chapter to the book.

[url removed, login to view] is the controller for the Book. I've removed unnecessary code form it. You can see the current create/new methods - and a place holder for the create_chapter method. Chapters have the following attributes (book_id, name, number).

What I need done:

- Need to modify the [url removed, login to view] to utilize AJAX on the modal window to submit the new chapters. (around line 56 - says "FORM GOES HERE")

- Need to modify the [url removed, login to view] need to pull in the chapters to display on the page after they are submitted. (around line 34 - you'll notice the conditional loop)

- Need to add/modify the controller to accept and save the new chapters, and also do the appropriate refresh to the code (if needed here) to display the newly updated chapters.

Notes:

1. This code will be reused on the edit method as well. Please keep this in mind.

2. We don't believe you need any more code than what's provided - but let us know if something would help.

3. Ask with questions. Please use the PM feature to do so.

4. We believe this should be a quick task for someone familiar with AJAX and tapping into JS in Rails. We're aiming to award in 1-2 days and receive final product in 1-2 days after, tops.

5. We put a budget of 10 - 30 dollars, which should be reasonable for the amount of work (couple of quick methods). Bid what you're comfortable with. We'll select a combination of low-cost bidding and ability to deliver fast.

Again - ask with questions. Thanks for reviewing this project and we look forward to working with you.

Skills: AJAX, Javascript, Ruby on Rails

See more: ajax add rails, rails modal form, rails modify feature ajax, what would you do for 5 dollars, what's new with bootstrap, what's ajax, what can you do with 5 dollars, tops code, product page bootstrap, do something for 5 dollars, create js with html content, what is bootstrap, rails any, tops in, submits, RB, Method, edit a book, data refresh ajax, bootstrap submit form, final bootstrap, bootstrap modal select, bootstrap feature, need someone edit book

Project ID: #5182709

Awarded to:

yct21

Not a very hard problem. I could finish it in one day. Wrap the chapter list with some div Set remote attribute of the button to "save changes" button in the model Write BooksController.new_chapter. Respond using More

$15 USD in 1 day
(0 Reviews)
0.0

7 freelancers are bidding on average $23 for this job

sandeepsrm23

Dear Client I want to handle this job for you. I have 4 years of experience in ROR and familiar with Ajax , Jquery , Javascript , bootstrap , modals etc. I am looking forward for respose from your side. More

$28 USD in 3 days
(3 Reviews)
4.6
dinastalb

Hello, I am Van Qaqi. I work with my partners Marlen and Netronian Inc., in Orlando, Florida. We have extensive experience with ecommerce systems. 80% of our developed websites are e-commerce websites (magento). More

$50 USD in 15 days
(5 Reviews)
4.5
VPOWERRC

Hi, I'm web developer with lot of experience both back-end and front end. I'm know languages such as java-script, jquery ruby on rails, php and mysql. So obviously I'm very familiar with ajax communication. I can do th More

$45 USD in 2 days
(17 Reviews)
4.3
tupper8

A proposal has not yet been provided

$25 USD in 3 days
(0 Reviews)
0.0
varmanitesh91

Hi,I am new in freelancer. I am working with rails 3.x since 1.5 year. You need use association instead of query like In Book model has_many :chapters, :dependent => :destroy accepts_nested_attributes_for :chap More

$14 USD in 1 day
(0 Reviews)
0.0
vasindima779

I can do (modify) this job for free or for a minimal fee. And if you satisfied by this project, I'll be happy to work with you again. I have no experience in the freelance ( thatss why i have no "perfect feedback" ), b More

$15 USD in 1 day
(0 Reviews)
0.0
peterivanov87

Dear Client. I have many experiences in RoR. I was participated in developing these RoR sites. - http://studentcompetitions.com - http://www.qlubb.com/ My question : where do you want to host this site? Becaus More

$25 USD in 1 day
(0 Reviews)
0.0
ahmadhamza89

Hi, Need to know the attributes for the form. Book_chapters is the class??? Waiting for your reply. Thanks, Ahmad hamza

$20 USD in 1 day
(0 Reviews)
0.0