Error of uninitialized constant LanguageController::Languages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wiinie
    New Member
    • Feb 2011
    • 47

    Error of uninitialized constant LanguageController::Languages

    Hi,

    I am a new comer on Ruby on Rails
    I have no idea what i have made with this error
    Code:
    def new
     @language = Language.new
    end
    Code:
    rails generate model title:string body:string

    can anyone help me
    thanks
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    Did the 'Language' model create successfully? Generally, the 'Language' model would be tied to a 'LanguagesContr oller.' I'm not sure how to tie the 'Language' model and 'LanguageContro ller' together without doing something like "require 'language'" in the controller.

    Comment

    Working...