This code:
Code:<p> <label for="resource_type">Type</label><br/> <%= select(:resource, :type, %w{ Web Data }) %> </p>
Produces this error:
I took it straight out of the Agile Web Development book (except theCode:TypeError in Resources#new Showing app/views/resources/_form.rhtml where line #6 raised: wrong argument type String (expected Module) Extracted source (around line #6): 3: <legend>Resource General</legend> 4: 5: <p><label for="resource_type">Type</label><br/> 6: <%= select(:resource, :type, %w{ Web Data }) %> 7: </p> 8: 9: <p><label for="resource_focus_id">Focus</label><br/>
:include_blank)





Bookmarks