Closed mbrakken closed 10 years ago
Still need to remove link from menu, save the new organization when an event is saved.
Tried getting the organization to save when creating the event, using the directions from these links, but no luck.
http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-fields_for
Possibly need something in the controller? See this link: http://stackoverflow.com/questions/6086120/helper-fields-for-not-working
I started looking into this last night, mainly by way of http://railscasts.com/episodes/102-auto-complete-association . This is an old cast and there's probably better ways of doing it, but I figure it's a place to start. I also think there's stuff in Murfie code that may be informative, like how we create a user on purchase if they're new.
No link in menu. Make organization field on form a text box with autocomplete functionality. If they type in a new organization, create it on save of event. We may want to present an image upload form if we recognize it as a new event on keyup.