Displaying 5 results from an estimated 5 matches for "todoscontroller".
2005 Apr 27
5
Eager load mysteriously deletes records
...has_one :where, :dependent => true
has_many :whens, :class_name => "Whens", :dependent => true
end
Below is the SQL from the log file showing first the OK line and then
the not working line.
***********************************************************
This is OK
Processing TodosController#list_edit (for 10.70.2.70 at Wed Apr 27
14:40:43 W. Europe Daylight Time 2005)
Parameters: {"action"=>"list_edit", "controller"=>"todos",
"position"=>"0"}
[4;35mTodo Columns (0.010000) [0;37mSHOW FIELDS FROM todos
[4;33mWh...
2011 Feb 12
5
link_to a action in the controlles is not called
i have a link where it has to call a method defin in todoscontroller
named say_when but show is called
<td><%= link_to ''Say when'', todo, :action => :say_when ,
:remote => true %></td>
class TodosController < ApplicationController
# GET /todos
# GET /todos.xml
def index
@todos = Todo.all
respond_to...
2006 Aug 06
1
RJS error
http://pastie.caboo.se/7437
Page appears as:
Todo List
#testing
* Heres another Edit Destroy
* Testes Edit Destroy
* One more Edit Destroy
* Heres another Edit Destroy
* And another Edit Destroy
NameError in TodosController#create
undefined local variable or method `page'' for
#<TodosController:0x228bf4c>
RAILS_ROOT:
/Users/zachinglis/Sites/rails/landing/public/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/todos_controller.rb:30:i...
2008 Jun 15
7
Getting "no block given" on find method - rails 2.1
I am trying to do a simple find through the current_user but get an
exception. Either someone spiked my Starbucks coffee and I am screwing
up all over the place or there is something wrong.
def index
@league = current_user.leagues.find(13)
end
# Error
LocalJumpError in Admin/schedule todosController#index
no block given
If I pass a block to it it works fine, but it is just messy:
=====
current_user.leagues.find{ |l| l.id = 13}
Thanks for the help.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscr...
2011 Jul 31
8
Add virtual attribute
Hi!
Let''s say I have an app that handles a TODO list. The list has finished and
unfinished items. Now I want to add two virtual attributes to the list
object; the count of finished and unfinished items in the list. I also need
these to be displayed in the json output.
How do I achieve that?
Best Regards
Linus
--
You received this message because you are subscribed to the Google