Displaying 4 results from an estimated 4 matches for "standardrailsmar2007".
2007 Nov 15
6
Link_to popup divorced from controller?
Here''s my case:
Using a link_to popup window to show a related help file of an element
on a page.
The problem:
Window pops up perfectly, but refuses to carryover @instance variables
in the controller that I referenced in the link_to command.
The tests:
- I have the right controller/class, because it renders a specific
template, which is what it does.
- I have the right template/view,
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
...end
retval
end
For some reason, Product.photo_filename keeps returning my $HOME
directory:
No such file or directory - "/Users/stamosunas"
The whole trace is below... it seems to be in the attachment_fu code
itself where there is a problem:
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:75:in `mkdir''
/Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/
lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:75:in `rootdir''
/Applications/Locomotive2/Bundles/standardRailsMar2007...
2007 Nov 29
4
collection.build or collection.create gives "ArgumentError: wrong number of arguments (1 for 0)"
...", "end_at"=>nil,
"updated_at"=>nil, "published_at"=>nil, "user_id"=>nil,
"created_at"=>nil}, @new_record=true>
>> s.tasks.build
ArgumentError: wrong number of arguments (1 for 0)
from /Applications/Locomotive2/Bundles/
standardRailsMar2007.locobundle/i386/lib/ruby/gems/1.8/gems/
activerecord-1.15.3/lib/active_record/associations/
has_many_association.rb:13:in `initialize''
from /Applications/Locomotive2/Bundles/
standardRailsMar2007.locobundle/i386/lib/ruby/gems/1.8/gems/
activerecord-1.15.3/lib/active_record/associations/
h...
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page:
login.rhtml
1 <fieldset>
2 <% form_tag do %>
3 <label for="name">Name:</label>
4 <%= text_field_tag :name, params[:name] %>
5 <label for="password">Password:</label>
6 <%= password_field_tag :password, params[:password] %>
7 <%= submit_tag