<p dir="ltr">Yea, </p>
<p dir="ltr">Stop using PHP.</p>
<p dir="ltr">$ gem install rails<br>
$ cd ~/projects<br>
$ rails new mydbentry</p>
<p dir="ltr">By default it will create a new database using sqlite3.  If you have an existing database using a different DBMS, you can specify which one on the rails new line by adding -- database=mysql, or whichever db you used.<br>
 <br>
$ cd mydbentry</p>
<p dir="ltr">Add the following line to your Gemfile (it just works better)</p>
<p dir="ltr">gem "puma"</p>
<p dir="ltr">Update config/database.yml with your database credentials</p>
<p dir="ltr">$ bundle update<br>
$ rails generate scaffold tablename field1:type field2:type field3:type etc</p>
<p dir="ltr">I.E. rails: generate scaffold employee last:string first:string ssn:string notes:text</p>
<p dir="ltr">Open config/routes.rb and find a line (about 8-10 lines down from the top) that is commented out that says root :to =>.<br>
Create a new non-commented line just like it, but instead of welcome#index yours should be tablename#index</p>
<p dir="ltr">If you allowed rails to create a new database for you instead of using an existing one... </p>
<p dir="ltr">$ rake db:create<br>
$ rake db:migrate</p>
<p dir="ltr">Now run the server</p>
<p dir="ltr">$ puma</p>
<p dir="ltr">Use a Web browser of your choice and access the page on port 9292.</p>
<p dir="ltr">Should take no more than 5 minutes to set up.  It actually is harder to explain than to do.  5 minutes is a generous estimate, 30 seconds is more likely.</p>
<p dir="ltr">If the form is too ugly/basic for you, edit it at app/views/tablename/...</p>
<p dir="ltr">Happy inputting</p>
<p dir="ltr">Kevin</p>
<div class="gmail_quote">On Apr 8, 2015 8:22 PM,  <<a href="mailto:kitepilot@kitepilot.com">kitepilot@kitepilot.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list: <br>
I want to build a form to have non-puter people help me fill up some tables. There is no math, no aesthetics and no design, most validations are build it inside the database. <br>
I just need a quick'n dirty way to build the forms, any recommendations?<br>
Thanks!<br>
ET<br>
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
</blockquote></div>