Displaying 11 results from an estimated 11 matches for "todo_list".
2008 Jul 17
5
.build method
...multiple todo items in the params
hash that look like this params[:todo_items].. It would say that there
is no method for todo_items=
So i would create my accessor method in the todolist model like this:
# located in Todolist model
def todo_items=(todo_items)
todo_items.each do |todo_items|
todo_lists.build(todo_items)
end
end
But what is that build actually doing!?! Why am i using the plural
form of todo_lists? Any help would be MUCH appreciated!
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Rub...
2006 May 10
9
noobie activerecord find query
In my webapp a todolist has many todo items. I am trying to display
lists that are completed. By incomplete I mean that all the items in
that list are done (booolean = true). I hope to have a list of active
lists and complete lists on one page.
I''m no ruby expert by any means so I think I have to ''pipe'' some results
into another query??
Can you help please?
--
Posted
2006 Mar 15
5
Passing params to a component
...maters to a component.
I don''t understand the exact syntax.
I''m trying:
@master_id = @params[''master_id'']
in the components controller but it is not working.
==== Details:
In my calling view I have:
<%= h(@opportunity.id) %>
<div id="todo_list">
<%= render_component :controller => "todos", :params => {
"master_id" => @opportunity.id } %>
</div>
The above displays @opportunity.id so I know it is a valid variable.
The components (todos) controller has:
def list
@master_id = @...
2011 Nov 21
0
Issues in running Abstractspoon todo list
...3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
I've searched the internet& got various links (none of which worked). Do help, I'm completely stumped.
|
Here's the dump of how I'm trying to run todolist...
*rinka at Rinka:~/bin$ ls
*todo_list todolist_exe.zip
rinka at Rinka:~/bin$ cd todo_list/
rinka at Rinka:~/bin/todo_list$ ls
CalendarExt.dll MLOImport.dll
EncryptDecrypt.dll MySpellCheck.dll
FMindImportExport.dll OutlookImpExp.dll
GPExport.dll...
2011 Nov 30
1
wine-users Digest, Vol 76, Issue 79
...tricks
EXE="winetricks"
chmod +x $EXE
$EXE vcrun2005
$EXE vcrun2008
rinka at Rinka:~$ uname -a
Linux Rinka 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
|Here's the dump of how I'm trying to run todolist...
*rinka at Rinka:~/bin$ ls
*todo_list todolist_exe.zip
rinka at Rinka:~/bin$ cd todo_list/
rinka at Rinka:~/bin/todo_list$ ls
CalendarExt.dll MLOImport.dll
EncryptDecrypt.dll MySpellCheck.dll
FMindImportExport.dll OutlookImpExp.dll
GPExport.dll...
2006 Jul 05
3
Calling render_to_string from a view
I''m playing around with a list of todos, which I want to render as
<ul>''s that can nest to an arbitrary level, so I wrote this as a helper
method:
def print_todo(t)
str = "<ul>\n\t<li>"
str += render_to_string(:partial => ''todo'', :object => t) + "\n"
t.children.each { |c| str +=
2011 Jul 25
7
Adding a folder to my rspec execution path
Hi guys,
I''m using RSpec with Capybara, and for that I created the
spec/integration folder. But when I execute the command "bundle exec
rspec spec" RSpec don''t execute my files on integration folder. I need
to pass each file to solve this problem.
Do you known how I can put the integration folder on rspec execution
path without need to pass each file?
Thanks,
Pablo
2006 Apr 25
4
Newbie - Grouping of items...
I''m trying to build a dashboard type page (similar in function to
basecamp''s) where I can show the last 5 updated items from my 3
differing models, then grouped together by project.
Solution ideas:
(1) Is it best to create a log model where everytime I add or update
another model (like messages, comments, lists etc) an enrty gets added
to the log along with the project. I
2006 Mar 15
0
Ajax_generator as a component for master/detail use?
...to create a basic
todos MVC set.
Note the plural todos. For some reason the ajax generator created
files with the plural name.
I now want to edit my master table''s edit view to have it incorporate
the detail records.
As a newbie I''m guessing that I should add
<div id="todo_list">
<%= render_component :controller => "todos" %>
</div>
This sort of works.
A blank detail record area is being rendered at the bottom of the
master edit screen and when I click on "new" ajax pops up a new blank
detail record. Even better if I have a de...
2008 Sep 30
1
Problem compiling tinc-1.0.8 on gcc-2.95
...n->status.st.indirect = true;
}
/* Begin with myself */
- myself->status.visited = true;
- myself->status.indirect = false;
+ myself->status.st.visited = true;
+ myself->status.st.indirect = false;
myself->nexthop = myself;
myself->via = myself;
list_insert_head(todo_list, myself);
@@ -213,15 +213,15 @@
of nodes behind it.
*/
- indirect = n->status.indirect || e->options & OPTION_INDIRECT
+ indirect = n->status.st.indirect || e->options & OPTION_INDIRECT
|| ((n != myself) && sockaddrcmp(&n->address, &e-...
2006 Feb 03
33
[ADV] Rails Recipes Beta Book is now available
I''m delighted to announce that Chad Fowler''s new book, Rails Recipes,
is now available
as a Beta Book.
This is a great title for folks who know Rails, and for folks who
want to get the most out of Rails. It contains detailed recipes for
doing real-world things with Rails, all illustrated with working
code. Some examples are drawn from Rails 1.1, the rest from Rails 1.0.