search for: students_control

Displaying 3 results from an estimated 3 matches for "students_control".

2011 May 24
4
Rails hates my recursive function
...student=Student.where(:fname=>f_name,:lname=>l_name).all else bar=insert_dashes(rec) find_record(bar) end end If I try to enter a string of the for "a12345678" I am greeted with the following error: SystemStackError (stack level too deep): app/controllers/students_controller.rb:19:in `find_student'' Rendered c:/jruby-1.6.1/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (18.0ms) Rendered c:/jruby-1.6.1/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_...
2008 Feb 11
0
Problem in passing params
Hi, I have a controller called students_controller.rb From a view file i am calling the index method by the URL like, students_path(:format => :json) I have no problem in that. But i want to pass the teacher_id as the parameter. Like, students_path(:format => :json, :teacher_id => 5) The problem here is, the parameter is passing as...
2009 Aug 28
0
get this error: "A copy of * has been removed from the module tree but is still active!"
...ot;> <pre><code>/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:414:in `load_missing_constant'' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/ dependencies.rb:96:in `const_missing'' /home/~/app/controllers/students_controller.rb:4:in `index''</code></ pre> </div> <div id="Framework-Trace" style="display: none;"> <pre><code>/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:414:in `load_missing_constant'...