Displaying 2 results from an estimated 2 matches for "sherstnev".
2005 Mar 21
3
routes.rb question.
I have a simple program that read all HTML files from a directory and
returns parts of the content and the file names which are HREFs to
those file.
I build the HREF string dynamicaly as PATH_TO_DOC_ROOT + "file_name".
My PATH_TO_DOC_ROOT = http://127.0.0.1:3000/docman/public/docs. So,
the final link that I am interested in might look like this:
2005 Mar 10
2
NoMethodError in Event_type#create
I am new Ruby on Rails, so excuse me if my question seems pretty obvious.
I am trying to validate uniqueness of a filed:
class EventType < ActiveRecord::Base
belongs_to :sport
validates_uniqueness_of :event_type
end
When I run it, I get this error message:
Showing /event_type/new.rhtml where line #27 raised undefined method
`each'' for nil:NilClass
<select