search for: kampmeier

Displaying 6 results from an estimated 6 matches for "kampmeier".

2008 Jan 10
4
Mocking and stubbing Rails'' association extensions
...? (@album.songs.streamable) Before adding the extension, I just had @album.songs returning an array of Song instances. The only thing I''ve thought of that would work is temporarily extending Array itself to respond to #streamable, but that feels ugly. Thanks for any ideas, Chris Kampmeier http://www.shiftcommathree.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2417 bytes Desc: not available Url : http://rubyforge.org/pipermail/rspec-users/attachments/20080110/57baee23/attachment.bin
2007 Jun 23
2
type image submit tags on IE dropping the params
I have noticed that on IE, the @params[:commit] does not come through on image submit tags, but it does when the image is removed. this fails: <%= submit_tag( "Schedule", {:type => "image", :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", :class=>"button"})%> but this works: <%= submit_tag(
2006 Jun 05
2
multiple divs in a loop
I think i have a simple problem i can''t get my brain around :) How do i pass the arguement "story<%=story.id%>" inside the visual_effect method? <% for story in @stories.reverse %> <p><%=link_to_remote ("Show Comments", :update => story.id, :url => {:action => :show_comments, :id => story}, :complete => visual_effect(:grow,
2006 Jun 07
2
How to send post data with link_to_remote?
Hi, I''m trying to send a post body with my link_to_remote call. Prototype supports the ''postBody'' option, but I can''t seem to get link_to_remote to set that. Here''s what I''m trying: link_to_remote ''move up'', :url => { :controller => ''upload'', :action => ''position_ajax'', :id
2007 Jun 22
1
nested rest URL => passing param from select
Hi, I''m trying to create a select box with an onchange event. When onchange is fired, I want to redirect to a nested rest url. The problem is that I don''t know how to pass the selected value to the url: <select id="category" onchange=" <%= remote_function(:url => category_articles_path(selected value?) ) %> "> Any suggestions? -- Posted
2007 Jun 23
7
rake db:migrate strange behaviour "wrong number of arguments (1 for 0)"
Hi everybody, May be somebody has a clue, why I get these errors below, while trying to migrate. Any help is very appreciated! Greetinx Rafael I was trying to experiment a litte bit with redMine (www.redmine.org). But I can only install it locally. On a system with already a mongrel_cluster running, I get strange errors, already while trying to start the migration rake db:migrate