I wanna know, if possible, how can I create multiple instances of one
and only one model using the same view.
eg
yes - break the problem down into steps IE:
create a new User with
create 2 new Users with one Form
create a new user form field entry (like the 2nd one above) through
javascript
create 3 new users + one by clicking the link.
–
Here is an example of a cucumber test for the 2nd part
Given I am on new user page
When I fill in ‘sam’ for ‘user[name]’
When I fill in ‘[email protected]’ for ‘user[email]’
When I press ‘Create’
Then I should see ‘created (1) user’
–
The second part is a bit more interesting.
It helps to know this about FORMS and RAILS
(don’t mind the \ )