El 20/07/13 18:15, Lucas Haley escribió: > Fantastic. Thank you! You are welcome :)
> > I have another quick question -- if I have a model that belongs_to a > User, how do I get an instance to put the current user as the User? > > So my Bulletin model belongs_to :user. I'd like that field to > automatically fill with the user_id of the current user, the one > creating the Bulletin. > > Is this something that Hobo does with it's magic, or is it something I > need to add to the controller? You can do it in the controller, but you can user Hobo magic too. Take a look at this section of the full tutorial: http://www.hobocentral.net/tutorials/agility#project-ownership Regards, Ignacio > > Thanks again! > > -Lucas > > On Thursday, July 18, 2013 3:31:38 PM UTC-7, Lucas Haley wrote: > > Hello everyone -- > > I'm working on getting my first Hobo project up and running. I've > added an enum_string to an existing model, and although there is a > space for it in the index view, there isn't in the edit view. There > is no way to set it, either with an existing instance or a new > instance. Is there something additional I need to do than add it to > the model and run the migration? > > Thanks! > > -Lucas > > -- > You received this message because you are subscribed to the Google > Groups "Hobo Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/hobousers. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Ignacio Huerta Arteche http://www.ihuerta.net Teléfono: 0034 645 70 77 35 Email realizado con software libre -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/groups/opt_out.
