Find Jobs
Hire Freelancers

Add a form/method that submits in Rails with AJAX

$10-30 USD

Completed
Posted over 10 years ago

$10-30 USD

Paid on delivery
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 ([login to view URL]) 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. [login to view URL] 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 [login to view URL] to utilize AJAX on the modal window to submit the new chapters. (around line 56 - says "FORM GOES HERE") - Need to modify the [login to view URL] 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.
Project ID: 5182709

About the project

6 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 javascript with jqueries that refresh the chapter list and it's done.
$15 USD in 1 day
5.0 (1 review)
0.4
0.4
6 freelancers are bidding on average $25 USD for this job
User Avatar
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. Thanks and Reagrds Sandeep Sharma
$28 USD in 3 days
5.0 (28 reviews)
5.5
5.5
User Avatar
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 this task according to your need. Please check my reviews if you want more details about me Thank you Viduranga Wijesooriya
$45 USD in 2 days
4.9 (21 reviews)
4.8
4.8
User Avatar
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.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$25 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Alexandria, United States
5.0
3
Payment method verified
Member since May 26, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.