-
Notifications
You must be signed in to change notification settings - Fork 0
mitijain123/html_template
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
== Overview The goal of this project is to make a request at this URL and have it show a completed proposal: http://localhost:3000/proposal_viewer/show/1 Once the user accesses the above URL an HTML template found in the public directory will be retrieved and populated with data from several models. For the purposes of this example, assume that the HTML template is user generated and stored in this public directory. This means that the HTML file must be left exactly as is and cannot be modified or have <%=%> tags within. Important: 1. You cannot add any files to the folder containing the index.html 2. You cannot modify any of the files in the folder containing the index.html 3. Good quality code is more important than speed, so make sure code quality and structure is excellent. 4. You can (yes, it's OK) use any gem or plugin you'd like to help get the job done. == Contents This stuff already exists: 1. Models, migrations and bootstrap data for: Client, Proposal and ProposalSection 2. HTML Template: ./public/proposal-template/* 3. ProposalViewer controller with a show method == Getting Started 1. gem install bundler 2. cd to the test_app and run : bundle install 3. Change directory into myapp and run <tt> bundle exec rake db:migrate</tt> 4. Start the web server: <tt>bundle exec rails s</tt> (run with --help for options) 5. Go to http://localhost:3000/proposal_viewer/show/1 and start coding :) If you have any questions feel free to send me an email.
About
Replacing {client_name} with dynamic content
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published