#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 
Top Prev 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 Next

#rubyonrails

<tavilach> ah
<ReinH> so like :id => 3 or :id => product
<nad1m> hmm
<tavilach> wait, you can do that?
<jstew> yes
<ReinH> where product is an AR object like @products.each do |product|
<jstew> script/generate controller admin/user
<mxNet> hi guys, this is really stupid, ok... i created a month_select and year_select dropdowns in the view (inside form helper tags, and with submit_tag button). Now how do I access their contents from controller?..
<nad1m> ok thanks
<tavilach> wow
<nad1m> i'm gonna read the api docs and figure it out
<tavilach> thats just what i need!
<tavilach> :-D
<ReinH> nad1m: that should be enough to get you going
<ReinH> Check the rails API! http://labs.parkerfox.co.uk/ruby.search
<ReinH> ^^ that too
<mxNet> it's like @params[:date][:field_name]?.. or i'm misunderstanding..
<bradly> mxNext: inspect the params array
<nad1m> ok that fixed the action
<nad1m> but it didn't fix my layout, which should be working fine but isn't
<mxNet> bradly, that's what i wanna do actually, but which way can you output its contents into console (instead of browser)?
<jstew> mxNet: breakpoint in the action
<bradly> just but in the view the form links to @params.inspect
<jstew> then script/breakpointer in your terminal
<bradly> *put
<jstew> or just look at your logs
<jstew> all of your post params will be in your development logs
<mxNet> great thanks, i'm on it
<ReinH> mxNet: they're in the params hash, there's a wiki entry on using form helpers that you should read
<ReinH> wiki.rubyonrails.org
<mxNet> ReinH, thanks!
<ReinH> mxNet: yw
<lal00> is there any way to get the full URL of the current action ? (with params included)
<claudio> request.request_uri
<claudio> iirc
<claudio> lal00: request.request_uri
<lal00> claudio, that only retrieves "/action/controller"
<claudio> oh mmh... sorry... try dumping out the request
<claudio> lal00: the GET params should be there, though
<tavilach> hey guys, AJAX question: i have an Edit link in a /list page that takes me do a page where i edit the table row. i want that page to be embedded inside the /list page and simply have the /list page expand a little to fit the edit details for that one row entry...can i do that easily?
<jstew> maybe a partial inside a hidden div tavilach
<tavilach> you mean, just use javascript and no ajax?
<tavilach> i mean no XML
<jstew> you could do it either way
<tavilach> so i guess i turn my /edit page into a partial?
<jstew> seeing that your edit page will be different for every row you would need a partial
<jstew> then pass in your object as a local
<locellcount> Does anyone know of a good guide to getting either sendmail or exim setup just to send emails out? Tbh I'm finding all the stuff on the exim site a little confusing. If I could just get a basic configuration running that I could tweak I'd be happy.
<jstew> posting to the action that updates your object from the form can be AJAX
<jstew> locellcount: have you considered postfix?

Previous Page  Next Page

Search ircarchive.info