zfoster / corgi

Social Event Calendar System
meetmadi.com
Other
3 stars 2 forks source link

Get rid of "Add organization" and make adding organiziation part of event creation & edit #126

Closed mbrakken closed 10 years ago

mbrakken commented 11 years ago

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.

squareleaf commented 11 years ago

Still need to remove link from menu, save the new organization when an event is saved.

squareleaf commented 11 years ago

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

mbrakken commented 11 years ago

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.