On Thursday, April 13, 2017 at 8:22:59 AM UTC-4, Walter Lee Davis wrote:
>
> You _could_ do this, but it's going to be a lot of trouble. Is there a
> reason why you don't want to add a pets table (and Pet model)? Then it
> would simply be a matter of adding a couple lines to your User model,
On Thursday, April 13, 2017 at 8:22:59 AM UTC-4, Walter Lee Davis wrote:
>
> You _could_ do this, but it's going to be a lot of trouble. Is there a
> reason why you don't want to add a pets table (and Pet model)? Then it
> would simply be a matter of adding a couple lines to your User model,
You could also use https://harvesthq.github.io/chosen/
or
this
http://stackoverflow.com/questions/39921381/adding-a-tag-if-it-doesnt-exist-in-rails-chosen-rails
google a little around I know I have done this a long time ago and it
wasn't that hard.
--
You received this message because you
You _could_ do this, but it's going to be a lot of trouble. Is there a reason
why you don't want to add a pets table (and Pet model)? Then it would simply be
a matter of adding a couple lines to your User model, and changing the
users/_form partial to be a nested form.
class User <
Let's say I wanna let users add all their pet's on the same form but I
don't know how many pets they have I need to let the user provide values
for multiple attributes for each pet but won't be creating a pet's table
Rather, on completion going to create a text list of the users pets How
would
5 matches
Mail list logo