search for: service_provider_countries

Displaying 1 result from an estimated 1 matches for "service_provider_countries".

2009 Jul 18
2
Sharing controllers/models within a view
Hello, please forgive me if this answer is obvious! I''m new to Rails this week. I have two database tables, and the associated scaffolding, controllers, models and views. The first is service_provider, which holds a list of service providers. The second is service_provider_countries which is a table of countries (obvious perhaps). In views/service_providers/new.html.erb I have a form, that allows the you to create a new service provider (name, country, description). Which looks like so: <h1>New Service Provider</h1> <% form_for(@service_provider) do |f| %&gt...