473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Error of uninitialized constant LanguageController::Languages

47
Hi,

I am a new comer on Ruby on Rails
I have no idea what i have made with this error
Expand|Select|Wrap|Line Numbers
  1. def new
  2.  @language = Language.new
  3. end 
  4.  
Expand|Select|Wrap|Line Numbers
  1. rails generate model title:string body:string
  2.  

can anyone help me
thanks
May 30 '11 #1
1 2174
improvcornartist
303 Expert 100+
Did the 'Language' model create successfully? Generally, the 'Language' model would be tied to a 'LanguagesController.' I'm not sure how to tie the 'Language' model and 'LanguageController' together without doing something like "require 'language'" in the controller.
May 31 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jeff Gilchrist | last post by:
I have tried searching the newsgroup along with the GCC site and could not find what I think is probably a simple solution. I am using a 64bit unsigned long long integer and can manipulate 64bits...
2
by: nan.li.g | last post by:
I have this simple code below. When I compiled it, I got the following error. But after I removed the comment marker(//), i.e. explicitly defined a constructor, it becomes OK. The compiler...
5
by: Ney André de Mello Zunino | last post by:
Hello. Based on this simple test program: class Test {}; int main() { Test t; const Test u;
7
by: supachamp | last post by:
Hi everybody, I am having great problems with the following classes. I just can't figure out why I keep getting the error message: Building file: ../edge.cc Invoking: GCC C++ Compiler g++...
22
by: Vijay | last post by:
With the option strict On set..... Dim fs As FileStream = File.OpenRead(strFile) With fs Dim buffer(fs.Length) As Byte ' <--- Option Strict On disallows implicit conversions from 'Long' to...
4
by: mnarewec | last post by:
Hi all I have a TreeView in a MDI Apps. When the Nodes is selected it displays a MDI child form. I want to use a switch statement to determine which node is selected and to load or show the...
8
by: PJ6 | last post by:
Const factor As Double = Math.Sqrt(3) / 6 Error 1 Constant expression is required. This looks like laziness to me. In SQL Server, functions are given a distinction between ones that always...
7
by: priethe | last post by:
I am facing the following error: cpptest-textoutput.h: In constructor âTest::TextOutput::TextOutput(Test::TextOutput::Mode, std::ostream&)â: cpptest-textoutput.h:63: error: uninitialized...
1
by: swkr | last post by:
I have the following code. const TCHAR * pTemp = X->Fn(index); X is an object of a class and Fn is a method in it which returns a const TCHAR *. Building this in Windows is fine, but not in...
1
by: Wiinie | last post by:
Hi all, I am new bird using Ruby, I just occur the problem "uninitialized constant Object::Person (NameError)" can any experts help me? my code is class Person def initialize(fname,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.