Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Creating New rows in a table based on form feild fill

ruby on rails

  • Please log in to reply
No replies to this topic

#1 anish

anish

    Passenger

  • Members
  • 1 posts

Posted 10 October 2013 - 05:43 AM

Hi

i am generating RFP plugin in my project management tool .In that plugIn i am basically filling one form has few usr requirements like which technology how many resources ,hours etc....

 

 

Now when submmitting the form after filling it , suppose i fill 5 fields in a form  (may be text field,text area ,boolean etc...)then submmit it the 5 issues would be created

ie 1st field of the form should create 1st issue

2nd field of the form should create 2nd issue

3rd field if i keep blank in a form then that issue wont't created

and so on

 

i tried

 

 

issue = Issue.new



issue.subject = params[:user][:tech]


issue.tracker_id = 1

issue.project_id = 1

issue.priority_id = 2

issue.status_id = 1

issue.author_id = 1

issue.save
 

 

plz help me

 

 







Also tagged with one or more of these keywords: ruby on rails

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users