#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Top Prev 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 Next
#rubyonrails
<nayte> I'm a little confused with api.rubyonrails.org
<nayte> In particular, when describing arguments
<nayte> It says url_for_options = {} as an argument -- does that mean I provide :url_for_options => { "parm" => "val" } in the calling method?
<nayte> Trying to look at the docs for "form_tag"
<nayte> Or would I just call <%= form_tag { hash1 }, { hash2 } %>
<nayte> Or <%= form_tag :url_for_options => { hash1 }, :options => {hash2} %> ?
<nayte> I can never seem to get it right.
<nayte> And my blood pressure ain't getting any lower.
<ReinH> nayte: the former
<ReinH> lisa: yo
<lisa> ReinH: i get to do major refactoring! yay!
<ReinH> yay!
<nayte> ReinH: Thanks -- I'll give that a shot.
<lisa> ReinH: i tried to be clever with order stuff but it didnt turn out to work for paginating
<matt1982> anyone got any ideas why i cant run dispatch.cgi from a terminal?
<joelmichael> are there any tricks i can do to make a particular find() take place on a different database connection
<joelmichael> i'm trying to offload problem selects to a replicated slave
<TWhitty309> could someone look at my code and help me figure out why the heck my button is just resetting the page and not actually doing anything?
<matt1982> when i try ./dispatch.cgi i get these errors i've put them in a pastie http://pastie.caboo.se/41764
<matt1982> i've tried reinstalling rails
<matt1982> upgrading gem
<matt1982> but no luck still:(
<matt1982> really annoying
<Skiz> technoweenie: I think I've seen some of your plugins that provide db envs for testing plugins but I'm not sure where I saw them
<Skiz> I got a few AR plugins I'm writing tests for but I dont want then to be db specific.
<|PiP|> how can i validate the length of a :password on a Model that is being update which is never saved but hashed and saved in a different field (password_hash)?
<|PiP|> i mean the password is never saved
<Skiz> |PiP|: provide conditions
<pauls_> hey
<Skiz> validates.. :foo, :if => blah
<|PiP|> how can i say only if password is set
<pauls_> how do you request a query string in ruby - im new to it all
<micahf> hey is anyone using mongrel?
<|PiP|> ie only if password is being updated (and thus password_hash is being updated)
<pauls_> i cant find any documentation on it either
<nayte> pauls_ All form parameters are put into the params[] hash.
<nayte> pauls_ So, in your controller if you wanted the posted value of argument_a, you'd refer to params[:argument_a]
<pauls_> ah seet
<pauls_> sweet
<nayte> pauls_ Sometimes the params[] hash ends up being a hash of hashes, though.
<pauls_> ??
<nayte> pauls_ YOu might end up having to refer to params[:argument_a][argumenta_subhash]
<pauls_> i want to use get
<nayte> GET, POST, it doesn't matter.
<nayte> params.
<pauls_> iscool
<pauls_> thank you
<nayte> Make sure to read up on when GET requests are appropriate. :-)
<nayte> You can test to see if a request is POST or GET by querying the request.post? attribute.
<pauls_> ah...
Previous Page Next Page