From brenton.leanhardt at gmail.com Sat Nov 3 15:10:52 2007 From: brenton.leanhardt at gmail.com (brenton leanhardt) Date: Sat, 3 Nov 2007 15:10:52 -0400 Subject: [raleigh.rb] Ride needed back from RubyConf Message-ID: <7c0835400711031210k1ef63483kdd10fec0d3252d5d@mail.gmail.com> Hey Gang, My ride to Ruby Conf just found out about a family emergency and will be leaving tonight (Saturday). Does anyone have room in their car for 1 more person (I'm pretty flexible and willing to chip in on expense, etc). Even if you don't have space, I would greatly appreciate you spreading the word in hope of me finding my way home. I live in Raleigh and I could simply be dropped off anywhere relatively close by. Thanks, Brenton -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071103/1180c7a8/attachment.html From rick.denatale at gmail.com Sat Nov 3 15:18:40 2007 From: rick.denatale at gmail.com (Rick DeNatale) Date: Sat, 3 Nov 2007 15:18:40 -0400 Subject: [raleigh.rb] Ride needed back from RubyConf In-Reply-To: <7c0835400711031210k1ef63483kdd10fec0d3252d5d@mail.gmail.com> References: <7c0835400711031210k1ef63483kdd10fec0d3252d5d@mail.gmail.com> Message-ID: Brenton, I can give you a ride. On 11/3/07, brenton leanhardt wrote: > Hey Gang, > > My ride to Ruby Conf just found out about a family emergency and will be > leaving tonight (Saturday). Does anyone have room in their car for 1 more > person (I'm pretty flexible and willing to chip in on expense, etc). Even > if you don't have space, I would greatly appreciate you spreading the word > in hope of me finding my way home. I live in Raleigh and I could simply be > dropped off anywhere relatively close by. > > Thanks, > Brenton > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From brenton.leanhardt at gmail.com Sat Nov 3 15:20:02 2007 From: brenton.leanhardt at gmail.com (brenton leanhardt) Date: Sat, 3 Nov 2007 15:20:02 -0400 Subject: [raleigh.rb] Ride needed back from RubyConf In-Reply-To: References: <7c0835400711031210k1ef63483kdd10fec0d3252d5d@mail.gmail.com> Message-ID: <7c0835400711031220o7875feb7i3aa10ea1fabeac69@mail.gmail.com> Sweet! Thanks, Brenton On 11/3/07, Rick DeNatale wrote: > > Brenton, > > I can give you a ride. > > > On 11/3/07, brenton leanhardt wrote: > > Hey Gang, > > > > My ride to Ruby Conf just found out about a family emergency and will be > > leaving tonight (Saturday). Does anyone have room in their car for 1 > more > > person (I'm pretty flexible and willing to chip in on expense, > etc). Even > > if you don't have space, I would greatly appreciate you spreading the > word > > in hope of me finding my way home. I live in Raleigh and I could simply > be > > dropped off anywhere relatively close by. > > > > Thanks, > > Brenton > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071103/480bdbec/attachment-0001.html From crnixon at gmail.com Sat Nov 3 15:20:41 2007 From: crnixon at gmail.com (crnixon at gmail.com) Date: Sat, 3 Nov 2007 15:20:41 -0400 Subject: [raleigh.rb] Ride needed back from RubyConf In-Reply-To: References: <7c0835400711031210k1ef63483kdd10fec0d3252d5d@mail.gmail.com> Message-ID: Brenton, I can give you a ride. My phone number's 919-360-9150. - Clinton On 11/3/07, Rick DeNatale wrote: > Brenton, > > I can give you a ride. > > > On 11/3/07, brenton leanhardt wrote: > > Hey Gang, > > > > My ride to Ruby Conf just found out about a family emergency and will be > > leaving tonight (Saturday). Does anyone have room in their car for 1 more > > person (I'm pretty flexible and willing to chip in on expense, etc). Even > > if you don't have space, I would greatly appreciate you spreading the word > > in hope of me finding my way home. I live in Raleigh and I could simply > be > > dropped off anywhere relatively close by. > > > > Thanks, > > Brenton > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Clinton R. Nixon http://clintonrnixon.net From pelargir at gmail.com Mon Nov 5 11:50:41 2007 From: pelargir at gmail.com (Matthew Bass) Date: Mon, 5 Nov 2007 11:50:41 -0500 Subject: [raleigh.rb] RubyConf pics Message-ID: RubyConf was a blast! I saw lots of familiar raleigh.rb faces there, some of which are turning up on the flickr streams: http://www.flickr.com/photos/dwortlehock/1859294107/ http://www.flickr.com/photos/dwortlehock/1832571956/ http://www.flickr.com/photos/dwortlehock/1845120918/ http://www.flickr.com/photos/dwortlehock/1865207508/ http://www.flickr.com/photos/dwortlehock/1865202646/ http://www.flickr.com/photos/dwortlehock/1865211210/ http://www.flickr.com/photos/jremsikjr/1830466937/ http://www.flickr.com/photos/jremsikjr/1830537339/ http://www.flickr.com/photos/jremsikjr/1831355146/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071105/a17263ff/attachment.html From Keefe.Hayes at sas.com Mon Nov 5 12:01:59 2007 From: Keefe.Hayes at sas.com (Keefe Hayes) Date: Mon, 5 Nov 2007 12:01:59 -0500 Subject: [raleigh.rb] RubyConf pics In-Reply-To: References: Message-ID: Thanks for the links. The last one with Nathaniel is perfect, capturing the key point of his talk as well. and my picture shows how badly I need a haircut Keefe From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Matthew Bass Sent: Monday, November 05, 2007 11:51 AM To: Raleigh.rb Subject: [raleigh.rb] RubyConf pics RubyConf was a blast! I saw lots of familiar raleigh.rb faces there, some of which are turning up on the flickr streams: http://www.flickr.com/photos/dwortlehock/1859294107/ http://www.flickr.com/photos/dwortlehock/1832571956/ http://www.flickr.com/photos/dwortlehock/1845120918/ http://www.flickr.com/photos/dwortlehock/1865207508/ http://www.flickr.com/photos/dwortlehock/1865202646/ http://www.flickr.com/photos/dwortlehock/1865211210/ http://www.flickr.com/photos/jremsikjr/1830466937/ http://www.flickr.com/photos/jremsikjr/1830537339/ http://www.flickr.com/photos/jremsikjr/1831355146/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071105/52c28006/attachment.html From mark.bennett.mail at gmail.com Mon Nov 5 18:02:30 2007 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Mon, 5 Nov 2007 18:02:30 -0500 Subject: [raleigh.rb] RubyConf pics In-Reply-To: References: Message-ID: Thanks for pulling out my mugshot. I look so serious. Mark On 11/5/07, Keefe Hayes wrote: > > Thanks for the links. The last one with Nathaniel is perfect, capturing > the key point of his talk as well. > > > > and my picture shows how badly I need a haircut > > Keefe > > > > *From:* raleigh-rb-members-bounces at rubyforge.org [mailto: > raleigh-rb-members-bounces at rubyforge.org] *On Behalf Of *Matthew Bass > *Sent:* Monday, November 05, 2007 11:51 AM > *To:* Raleigh.rb > *Subject:* [raleigh.rb] RubyConf pics > > > > RubyConf was a blast! > > > > I saw lots of familiar raleigh.rb faces there, some of which are turning > up on the flickr streams: > > > > http://www.flickr.com/photos/dwortlehock/1859294107/ > > > > http://www.flickr.com/photos/dwortlehock/1832571956/ > > > > http://www.flickr.com/photos/dwortlehock/1845120918/ > > > > http://www.flickr.com/photos/dwortlehock/1865207508/ > > > > http://www.flickr.com/photos/dwortlehock/1865202646/ > > > > http://www.flickr.com/photos/dwortlehock/1865211210/ > > > > http://www.flickr.com/photos/jremsikjr/1830466937/ > > > > http://www.flickr.com/photos/jremsikjr/1830537339/ > > > > http://www.flickr.com/photos/jremsikjr/1831355146/ > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071105/ca4514df/attachment-0001.html From rick.denatale at gmail.com Tue Nov 6 07:32:24 2007 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 6 Nov 2007 07:32:24 -0500 Subject: [raleigh.rb] RubyConf pics In-Reply-To: References: Message-ID: On 11/5/07, Keefe Hayes wrote: > Thanks for the links. The last one with Nathaniel is perfect, capturing the > key point of his talk as well. I remember twittering at that point, something like "feed your inner hacker, and your inner hacker will feed you!" I'm impressed by the quality of the photos, particularly the ones by dwortlehock I wonder who he/she is? -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From veganjenny at gmail.com Tue Nov 6 18:46:45 2007 From: veganjenny at gmail.com (jenny w) Date: Tue, 6 Nov 2007 18:46:45 -0500 Subject: [raleigh.rb] Game/hack night at Duke University's Franklin Center on Wed.? Message-ID: Hi, everyone, Sorry for the late notice ... My sweetie is participating in Duke's ISIS (Information Science + Information Studies) program's game night. The night is usually about learning about ISIS and playing computer games. But I thought it might be fun to write a computer game in Ruby. I was inspired by some RubyConf talks -- Andrea O.K. Wright's presentation on Ruby game frameworks and also Jay Phillips' talk on Adhearsion where he mentined Phone Phone Revolution. If you're interested, let me know ... here's the invite to Duke's ISIS program's game night. The Franklin Center is at 2204 Erwin Road, Durham, NC. Begin forwarded message: > Date: November 5, 2007 11:37:43 AM EST > To: isis-announce at duke.edu > Subject: 11/7/07 ISIS Game Night, 9pm-12am, Franklin Center IMPS > > > ISIS Game Night > Wednesday, November 7, 2007, 9:00 PM-12:00 AM > John Hope Franklin Center 230/232 (IMPS) > > > ISIS is hosting the second Game Night of the 2007-2008 school year. Come out to the Interactive Multimedia Project Space (IMPS) in the Franklin Center and enjoy Playstation 3, Wii, XBOX 360 with Guitar Hero, Playstation: PS2, PC, Atari gaming along with board games. We will have pizza, soda and information about ISIS. Feel free to bring your own consoles and games. > > > Parking is available behind the Franklin Center as well as in the Pickens Clinic lot across the street. > > > The event is FREE, so bring a friend and have a good time. From nospam at tonyspencer.com Fri Nov 9 20:38:34 2007 From: nospam at tonyspencer.com (NoSpam) Date: Fri, 9 Nov 2007 20:38:34 -0500 Subject: [raleigh.rb] OpenSocial anyone? Message-ID: <022968E2-3A8A-4C34-A8B5-BFD12F18BFDE@tonyspencer.com> My company has been actively developing a couple social web apps throughout the past year and I feel it may be wise to spend some resources investigating OpenSocial (http://code.google.com/apis/ opensocial/) and working out how to integrate. Does anyone have any experience or interest? I'd love to chat with you about it and here what your plans are and how/if Ruby and/or Rails will play a role for you. Tony From pelargir at gmail.com Sun Nov 11 21:03:46 2007 From: pelargir at gmail.com (Matthew Bass) Date: Sun, 11 Nov 2007 21:03:46 -0500 Subject: [raleigh.rb] iMac still for sale Message-ID: So, I listed my iMac on eBay and the winning bidder was from Canada (despite my stating "U.S. bidders only") and refused to pay for the item because he didn't want to pay customs fees. I'm not sure how he expected to keep from paying them by bidding on a U.S. auction in the first place, but anyway... The iMac is still for sale, and at the price I would have sold it for on eBay (minus shipping, of course) which is $1025. Full details: https://accounts.craigslist.org/post/shwpst?pii=456848964&db=lv Drop me a line if you're interested. I'm in Wake Forest, but would be happy to meet you somewhere if you'd rather not drive all the way up here. The warranty ends on November 14th (Wednesday) but can be renewed for 2 additional years for $165 upon request (as long as the renewal is made before the 14th). I'll be listing the item on eBay again if I don't hear from anyone by Wednesday. Matthew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071111/03c9c717/attachment.html From adam at thewilliams.ws Sun Nov 11 21:26:52 2007 From: adam at thewilliams.ws (Adam Williams) Date: Sun, 11 Nov 2007 21:26:52 -0500 Subject: [raleigh.rb] iMac still for sale In-Reply-To: References: Message-ID: On Nov 11, 2007, at 9:03 PM, Matthew Bass wrote: > The iMac is still for sale, and at the price I would have sold it > for on eBay (minus shipping, of course) which is $1025. Full details: > > https://accounts.craigslist.org/post/shwpst?pii=456848964&db=lv It seems that is a link that requires one to login to craigslist. I did so, but then was told there was a problem with the listing. I bet they're doing something like this: current_account.posts.find(456848964) adam ;) From pelargir at gmail.com Sun Nov 11 21:30:19 2007 From: pelargir at gmail.com (Matthew Bass) Date: Sun, 11 Nov 2007 21:30:19 -0500 Subject: [raleigh.rb] iMac still for sale In-Reply-To: References: Message-ID: Heh. Thanks. Okay, howz about this? http://raleigh.craigslist.org/sys/456543102.html Matthew On 11/11/07, Adam Williams wrote: > > On Nov 11, 2007, at 9:03 PM, Matthew Bass wrote: > > > The iMac is still for sale, and at the price I would have sold it > > for on eBay (minus shipping, of course) which is $1025. Full details: > > > > https://accounts.craigslist.org/post/shwpst?pii=456848964&db=lv > > It seems that is a link that requires one to login to craigslist. I > did so, but then was told there was a problem with the listing. I bet > they're doing something like this: > > current_account.posts.find(456848964) > > adam ;) > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071111/1935b90e/attachment.html From fmedlin at gmail.com Mon Nov 12 09:07:27 2007 From: fmedlin at gmail.com (Fred Medlin) Date: Mon, 12 Nov 2007 09:07:27 -0500 Subject: [raleigh.rb] OpenSocial anyone? In-Reply-To: <022968E2-3A8A-4C34-A8B5-BFD12F18BFDE@tonyspencer.com> References: <022968E2-3A8A-4C34-A8B5-BFD12F18BFDE@tonyspencer.com> Message-ID: <579ca95c0711120607u7da6fbe5ncc8ae9ccc5274d54@mail.gmail.com> Tony, Check out Phillip Rhodes' work developing OpenQabal < https://openqabal.dev.java.net/>. Phillip is a local guy and hangs out in #openqabal and #trilug. The project is Java, but he's a smart guy in the space and has been talking about the OpenSocial apis recently. Fred On Nov 9, 2007 8:38 PM, NoSpam wrote: > My company has been actively developing a couple social web apps > throughout the past year and I feel it may be wise to spend some > resources investigating OpenSocial ( http://code.google.com/apis/ > opensocial/) and working out how to integrate. Does anyone have any > experience or interest? I'd love to chat with you about it and here > what your plans are and how/if Ruby and/or Rails will play a role for > you. > > Tony > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071112/8df300f3/attachment.html From nathaniel at talbott.ws Tue Nov 13 12:15:08 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 13 Nov 2007 12:15:08 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> Message-ID: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> As usual, anyone who's available is invited to join me at 5:30 tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner and some Ruby chatter before heading over to Red Hat for the meeting. While by no means required, a quick RSVP (just reply to this email with "In!" or somesuch) would be great. Looking forward to it, -- Nathaniel Talbott <:((>< From pelargir at gmail.com Tue Nov 13 12:18:31 2007 From: pelargir at gmail.com (Matthew Bass) Date: Tue, 13 Nov 2007 12:18:31 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: In. On 11/13/07, Nathaniel Talbott wrote: > > As usual, anyone who's available is invited to join me at 5:30 > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > and some Ruby chatter before heading over to Red Hat for the meeting. > > While by no means required, a quick RSVP (just reply to this email > with "In!" or somesuch) would be great. > > Looking forward to it, > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071113/da5ce36a/attachment-0001.html From rick.denatale at gmail.com Tue Nov 13 12:22:55 2007 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 13 Nov 2007 12:22:55 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: in But I guess you knew that On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > > As usual, anyone who's available is invited to join me at 5:30 > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > and some Ruby chatter before heading over to Red Hat for the meeting. > > While by no means required, a quick RSVP (just reply to this email > with "In!" or somesuch) would be great. > > Looking forward to it, > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From jeffm.keating at gmail.com Tue Nov 13 12:26:33 2007 From: jeffm.keating at gmail.com (Jeff Keating) Date: Tue, 13 Nov 2007 12:26:33 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: in. On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > As usual, anyone who's available is invited to join me at 5:30 > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > and some Ruby chatter before heading over to Red Hat for the meeting. > > While by no means required, a quick RSVP (just reply to this email > with "In!" or somesuch) would be great. > > Looking forward to it, > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- "Oh billions of taxpayer dollars, is there no problem you cannot solve?" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071113/205351e7/attachment.html From robert.horvick at gmail.com Tue Nov 13 12:31:03 2007 From: robert.horvick at gmail.com (Robert Horvick) Date: Tue, 13 Nov 2007 12:31:03 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: in. On Nov 13, 2007 12:26 PM, Jeff Keating wrote: > in. > > > On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > > > > As usual, anyone who's available is invited to join me at 5:30 > > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > > and some Ruby chatter before heading over to Red Hat for the meeting. > > > > While by no means required, a quick RSVP (just reply to this email > > with "In!" or somesuch) would be great. > > > > Looking forward to it, > > > > > > -- > > Nathaniel Talbott > > <:((>< > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > -- > "Oh billions of taxpayer dollars, is there no problem you cannot solve?" > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From david.lanouette at gmail.com Tue Nov 13 13:30:25 2007 From: david.lanouette at gmail.com (David) Date: Tue, 13 Nov 2007 13:30:25 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: in On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > As usual, anyone who's available is invited to join me at 5:30 > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > and some Ruby chatter before heading over to Red Hat for the meeting. > > While by no means required, a quick RSVP (just reply to this email > with "In!" or somesuch) would be great. > > Looking forward to it, > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071113/62053359/attachment.html From larry.karnowski at gmail.com Tue Nov 13 14:53:59 2007 From: larry.karnowski at gmail.com (Larry Karnowski) Date: Tue, 13 Nov 2007 14:53:59 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: <2b27183e0711131153q663985b7ld7ab2edda04beada@mail.gmail.com> In. And I'll be most likely be down at Cup A Joe's for a bit before the dinner even. (Like an hour or two.) Larry On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > > As usual, anyone who's available is invited to join me at 5:30 > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > and some Ruby chatter before heading over to Red Hat for the meeting. > > While by no means required, a quick RSVP (just reply to this email > with "In!" or somesuch) would be great. > > Looking forward to it, > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From redinger at gmail.com Tue Nov 13 16:05:35 2007 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 13 Nov 2007 16:05:35 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <2b27183e0711131153q663985b7ld7ab2edda04beada@mail.gmail.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> <2b27183e0711131153q663985b7ld7ab2edda04beada@mail.gmail.com> Message-ID: <681d4e8f0711131305o5d8e3049y60efe429448ee003@mail.gmail.com> In with the family On Nov 13, 2007 2:53 PM, Larry Karnowski wrote: > In. > > And I'll be most likely be down at Cup A Joe's for a bit before the > dinner even. (Like an hour or two.) > > Larry > > On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > > > > > As usual, anyone who's available is invited to join me at 5:30 > > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > > and some Ruby chatter before heading over to Red Hat for the meeting. > > > > While by no means required, a quick RSVP (just reply to this email > > with "In!" or somesuch) would be great. > > > > Looking forward to it, > > > > > > -- > > Nathaniel Talbott > > <:((>< > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From randomutterings at gmail.com Tue Nov 13 16:29:29 2007 From: randomutterings at gmail.com (Chris Barnes) Date: Tue, 13 Nov 2007 16:29:29 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <681d4e8f0711131305o5d8e3049y60efe429448ee003@mail.gmail.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> <2b27183e0711131153q663985b7ld7ab2edda04beada@mail.gmail.com> <681d4e8f0711131305o5d8e3049y60efe429448ee003@mail.gmail.com> Message-ID: <52c57d810711131329u76e48572vd8239ca72ebed8d6@mail.gmail.com> This is going to be my first meeting. I live about 45 minutes from Raleigh and the nearest laptop that I have access to is about 25 minutes in the opposite direction. I was wondering if I should make the effort to bring it. On Nov 13, 2007 4:05 PM, Christopher Redinger wrote: > In with the family > > On Nov 13, 2007 2:53 PM, Larry Karnowski > wrote: > > In. > > > > And I'll be most likely be down at Cup A Joe's for a bit before the > > dinner even. (Like an hour or two.) > > > > Larry > > > > On Nov 13, 2007 12:15 PM, Nathaniel Talbott > wrote: > > > > > > > > As usual, anyone who's available is invited to join me at 5:30 > > > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > > > and some Ruby chatter before heading over to Red Hat for the meeting. > > > > > > While by no means required, a quick RSVP (just reply to this email > > > with "In!" or somesuch) would be great. > > > > > > Looking forward to it, > > > > > > > > > -- > > > Nathaniel Talbott > > > <:((>< > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071113/a03a05e9/attachment.html From fmedlin at gmail.com Tue Nov 13 16:32:04 2007 From: fmedlin at gmail.com (Fred Medlin) Date: Tue, 13 Nov 2007 16:32:04 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: <579ca95c0711131332w29d6e3a3y86a858be767935ab@mail.gmail.com> in On Nov 13, 2007 12:15 PM, Nathaniel Talbott wrote: > As usual, anyone who's available is invited to join me at 5:30 > tonight at Baja Burrito (http://rubyurl.com/CGF) to grab dinner > and some Ruby chatter before heading over to Red Hat for the meeting. > > While by no means required, a quick RSVP (just reply to this email > with "In!" or somesuch) would be great. > > Looking forward to it, > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071113/1107c823/attachment-0001.html From nathaniel at talbott.ws Tue Nov 13 16:36:31 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Tue, 13 Nov 2007 16:36:31 -0500 Subject: [raleigh.rb] Pre-Meeting Chow In-Reply-To: <52c57d810711131329u76e48572vd8239ca72ebed8d6@mail.gmail.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> <2b27183e0711131153q663985b7ld7ab2edda04beada@mail.gmail.com> <681d4e8f0711131305o5d8e3049y60efe429448ee003@mail.gmail.com> <52c57d810711131329u76e48572vd8239ca72ebed8d6@mail.gmail.com> Message-ID: <4ce336a20711131336i3cfc42er62f8a112b714a91@mail.gmail.com> On 11/13/07, Chris Barnes wrote: > This is going to be my first meeting. I live about 45 minutes from Raleigh > and the nearest laptop that I have access to is about 25 minutes in the > opposite direction. I was wondering if I should make the effort to bring > it. For hack night I would say yes, but for the regular meeting it's not too important. I'm sure Adam and John will keep us plenty entertained tonight :-) -- Nathaniel Talbott <:((>< From mindcrime at cpphacker.co.uk Mon Nov 12 12:07:45 2007 From: mindcrime at cpphacker.co.uk (Phillip Rhodes) Date: Mon, 12 Nov 2007 12:07:45 -0500 Subject: [raleigh.rb] OpenSocial Message-ID: <47388861.3020302@cpphacker.co.uk> I'm far from an expert on OpenSocial, but FWIW, there is some really good discussion of the subject on the OpenSocial Container Developers Google Group: . I'm following that as it's very likely that we'll want to implement an OpenSocial container for OpenQabal. For people writing apps (not containers) using OpenSocial, there is this group: . Anyone interested in OS may find some good info there. I wish I had more useful info to contribute on the subject, but my focus the last couple of days has been SIOC: which is probably more directly related to the goals of OpenQabal. TTYL, Phil -------------- next part -------------- A non-text attachment was scrubbed... Name: mindcrime.vcf Type: text/x-vcard Size: 224 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071112/fa6da513/attachment.vcf From rhooker at cisco.com Wed Nov 14 07:49:23 2007 From: rhooker at cisco.com (Raymond Hooker (rhooker)) Date: Wed, 14 Nov 2007 07:49:23 -0500 Subject: [raleigh.rb] RAILS, Filtering and Paginate In-Reply-To: References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com><6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> Message-ID: <848DB51F3E58E146B08D188F803DCB6F05465B79@xmb-rtp-20c.amer.cisco.com> I am unclear as to whether there is the capability of doing filtered lists. I see where you can associate various models together with has_many and belongs_to. Such as people have dogs. So when listing dogs, we show the dogs associated with person "A" only. I could probably code up my own paginate function using a select but do prefer to use the built in features. Note that I do have the Agile Development for Rails but do not see where this might be covered. I also know that Streamlined offers similar capability though it seems a challenge to fully customize it the way that I want... it is cool though. Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/ee176e9e/attachment.html From ryan.daigle at gmail.com Wed Nov 14 07:56:21 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 14 Nov 2007 07:56:21 -0500 Subject: [raleigh.rb] RAILS, Filtering and Paginate In-Reply-To: <848DB51F3E58E146B08D188F803DCB6F05465B79@xmb-rtp-20c.amer.cisco.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> <848DB51F3E58E146B08D188F803DCB6F05465B79@xmb-rtp-20c.amer.cisco.com> Message-ID: <748ff3ff0711140456y5380797dxb3e8c372eb6f69a2@mail.gmail.com> I'm not sure what you mean by filtered lists, are you wanting to see something like this? person.dogs #=> [, ] person.dogs.terriers #=> [] If so, then you should look up association extensions in ActiveRecord and maybe even the scope_out plugin. -Ryan On 11/14/07, Raymond Hooker (rhooker) wrote: > > I am unclear as to whether there is the capability of doing filtered > lists. I see where you can associate various models together with has_many > and belongs_to. Such as people have dogs. So when listing dogs, we show > the dogs associated with person "A" only. > > I could probably code up my own paginate function using a select but do > prefer to use the built in features. Note that I do have the Agile > Development for Rails but do not see where this might be covered. I also > know that Streamlined offers similar capability though it seems a challenge > to fully customize it the way that I want... it is cool though. > > Ray > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/96f0d643/attachment.html From rhooker at cisco.com Wed Nov 14 07:58:09 2007 From: rhooker at cisco.com (Raymond Hooker (rhooker)) Date: Wed, 14 Nov 2007 07:58:09 -0500 Subject: [raleigh.rb] RAILS, Filtering and Paginate In-Reply-To: <748ff3ff0711140456y5380797dxb3e8c372eb6f69a2@mail.gmail.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com><6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws><848DB51F3E58E146B08D188F803DCB6F05465B79@xmb-rtp-20c.amer.cisco.com> <748ff3ff0711140456y5380797dxb3e8c372eb6f69a2@mail.gmail.com> Message-ID: <848DB51F3E58E146B08D188F803DCB6F05465B7E@xmb-rtp-20c.amer.cisco.com> Thanks... Ray ________________________________ From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Ryan Daigle Sent: Wednesday, November 14, 2007 7:56 AM To: The mailing list of raleigh.rb Subject: Re: [raleigh.rb] RAILS, Filtering and Paginate I'm not sure what you mean by filtered lists, are you wanting to see something like this? person.dogs #=> [, ] person.dogs.terriers #=> [] If so, then you should look up association extensions in ActiveRecord and maybe even the scope_out plugin. -Ryan On 11/14/07, Raymond Hooker (rhooker) wrote: I am unclear as to whether there is the capability of doing filtered lists. I see where you can associate various models together with has_many and belongs_to. Such as people have dogs. So when listing dogs, we show the dogs associated with person "A" only. I could probably code up my own paginate function using a select but do prefer to use the built in features. Note that I do have the Agile Development for Rails but do not see where this might be covered. I also know that Streamlined offers similar capability though it seems a challenge to fully customize it the way that I want... it is cool though. Ray _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/c2ca93df/attachment.html From randomutterings at gmail.com Wed Nov 14 08:47:29 2007 From: randomutterings at gmail.com (Chris Barnes) Date: Wed, 14 Nov 2007 08:47:29 -0500 Subject: [raleigh.rb] RAILS, Filtering and Paginate In-Reply-To: <848DB51F3E58E146B08D188F803DCB6F05465B7E@xmb-rtp-20c.amer.cisco.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> <848DB51F3E58E146B08D188F803DCB6F05465B79@xmb-rtp-20c.amer.cisco.com> <748ff3ff0711140456y5380797dxb3e8c372eb6f69a2@mail.gmail.com> <848DB51F3E58E146B08D188F803DCB6F05465B7E@xmb-rtp-20c.amer.cisco.com> Message-ID: <52c57d810711140547r22698b0fr43181ed400fdb7f4@mail.gmail.com> I just recently looked at scope_out but decided to go with has_finder instead. You can find out the differences at http://www.pivotalblabs.com/articles/2007/09/02/hasfinder-its-now-easier-than-ever-to-create-complex-re-usable-sql-queries On Nov 14, 2007 7:58 AM, Raymond Hooker (rhooker) wrote: > Thanks... > > Ray > > ------------------------------ > *From:* raleigh-rb-members-bounces at rubyforge.org [mailto: > raleigh-rb-members-bounces at rubyforge.org] *On Behalf Of *Ryan Daigle > *Sent:* Wednesday, November 14, 2007 7:56 AM > *To:* The mailing list of raleigh.rb > *Subject:* Re: [raleigh.rb] RAILS, Filtering and Paginate > > I'm not sure what you mean by filtered lists, are you wanting to see > something like this? > > person.dogs #=> [, ] > person.dogs.terriers #=> [] > > If so, then you should look up association extensions in ActiveRecord and > maybe even the scope_out plugin. > > -Ryan > > On 11/14/07, Raymond Hooker (rhooker) wrote: > > > > I am unclear as to whether there is the capability of doing filtered > > lists. I see where you can associate various models together with has_many > > and belongs_to. Such as people have dogs. So when listing dogs, we show > > the dogs associated with person "A" only. > > > > I could probably code up my own paginate function using a select but do > > prefer to use the built in features. Note that I do have the Agile > > Development for Rails but do not see where this might be covered. I also > > know that Streamlined offers similar capability though it seems a challenge > > to fully customize it the way that I want... it is cool though. > > > > Ray > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/a2b7f884/attachment-0001.html From ddmichaelson at gmail.com Wed Nov 14 08:54:40 2007 From: ddmichaelson at gmail.com (David Michaelson) Date: Wed, 14 Nov 2007 08:54:40 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box Message-ID: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> I have an application currently in production, and now I have decided that I wanted to make one of the fields a drop down box. I add the data to the model that is to be displayed/stored in the database, and then modify the view as follows <%= form.select :fieldname, model::MODEL_FIELD %> and I am getting an error was wondering if there was something I was supposed to do besides modifying the model and the view. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/fd749110/attachment.html From ryan.daigle at gmail.com Wed Nov 14 09:45:01 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 14 Nov 2007 09:45:01 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> Message-ID: <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> It'd be great to see the actual error and the actual view snippet... On 11/14/07, David Michaelson wrote: > > I have an application currently in production, and now I have decided that > I wanted to make one of the fields a drop down box. I add the data to the > model that is to be displayed/stored in the database, and then modify the > view as follows > > <%= form.select :fieldname, model::MODEL_FIELD %> > > and I am getting an error was wondering if there was something I was > supposed to do besides modifying the model and the view. > > Thanks, > > David > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/0c10624b/attachment.html From ryan.daigle at gmail.com Wed Nov 14 09:47:16 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 14 Nov 2007 09:47:16 -0500 Subject: [raleigh.rb] RAILS, Filtering and Paginate In-Reply-To: <52c57d810711140547r22698b0fr43181ed400fdb7f4@mail.gmail.com> References: <4ce336a20707170621y546e1e71la3ff050d5dc2de8@mail.gmail.com> <6EB2EEB4-CC9B-46BF-A9B0-8AD831E3BC83@talbott.ws> <848DB51F3E58E146B08D188F803DCB6F05465B79@xmb-rtp-20c.amer.cisco.com> <748ff3ff0711140456y5380797dxb3e8c372eb6f69a2@mail.gmail.com> <848DB51F3E58E146B08D188F803DCB6F05465B7E@xmb-rtp-20c.amer.cisco.com> <52c57d810711140547r22698b0fr43181ed400fdb7f4@mail.gmail.com> Message-ID: <748ff3ff0711140647s72a118ben2182ab3f8c4462d2@mail.gmail.com> I like it. Hadn't seen it before today - thanks for the pointer. On 11/14/07, Chris Barnes wrote: > > I just recently looked at scope_out but decided to go with has_finder > instead. You can find out the differences at > http://www.pivotalblabs.com/articles/2007/09/02/hasfinder-its-now-easier-than-ever-to-create-complex-re-usable-sql-queries > > On Nov 14, 2007 7:58 AM, Raymond Hooker (rhooker) < rhooker at cisco.com> > wrote: > > > Thanks... > > > > Ray > > > > ------------------------------ > > *From:* raleigh-rb-members-bounces at rubyforge.org [mailto: > > raleigh-rb-members-bounces at rubyforge.org] *On Behalf Of *Ryan Daigle > > *Sent:* Wednesday, November 14, 2007 7:56 AM > > *To:* The mailing list of raleigh.rb > > *Subject:* Re: [raleigh.rb] RAILS, Filtering and Paginate > > > > I'm not sure what you mean by filtered lists, are you wanting to see > > something like this? > > > > person.dogs #=> [, ] > > person.dogs.terriers #=> [] > > > > If so, then you should look up association extensions in ActiveRecord > > and maybe even the scope_out plugin. > > > > -Ryan > > > > On 11/14/07, Raymond Hooker (rhooker) wrote: > > > > > > I am unclear as to whether there is the capability of doing filtered > > > lists. I see where you can associate various models together with has_many > > > and belongs_to. Such as people have dogs. So when listing dogs, we show > > > the dogs associated with person "A" only. > > > > > > I could probably code up my own paginate function using a select but > > > do prefer to use the built in features. Note that I do have the Agile > > > Development for Rails but do not see where this might be covered. I also > > > know that Streamlined offers similar capability though it seems a challenge > > > to fully customize it the way that I want... it is cool though. > > > > > > Ray > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/34ff72dc/attachment.html From ddmichaelson at gmail.com Wed Nov 14 11:00:57 2007 From: ddmichaelson at gmail.com (David Michaelson) Date: Wed, 14 Nov 2007 11:00:57 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> Message-ID: <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> the code snippet in the view is:
<%= form.select :school_attended, Professional::SCHOOL, :prompt => "-- Select school --" %> The error I get as soon as I hit submit is: NoMethodError in SurveyController#createprofessional undefined method `weekend=' for # RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `send' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `attributes=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `each' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `attributes=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in `initialize_without_callbacks' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in `initialize' app/controllers/survey_controller.rb:38:in `new' app/controllers/survey_controller.rb:38:in `createprofessional' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `send' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `attributes=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `each' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `attributes=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in `initialize_without_callbacks' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `send' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in `attributes=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `each' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `attributes=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in `initialize_without_callbacks' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in `initialize' app/controllers/survey_controller.rb:38:in `new' app/controllers/survey_controller.rb:38:in `createprofessional' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 Request *Parameters*: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} Show session dump --- :demographic: &id001 !ruby/object:Demographic attributes: ethnicity: Black income_level: "75" age_range: "45" state: CT errors: !ruby/object:ActiveRecord::Errors base: *id001 errors: {} new_record: true :membership: &id002 !ruby/object:Membership attributes: primary_weakness: "" member: "yes" rate_mission: "3" should_offer: "" primary_activities: B primary_strengths: "" demographic_id: errors: !ruby/object:ActiveRecord::Errors base: *id002 errors: {} new_record: true flash: !map:ActionController::Flash::FlashHash {} :professional: &id003 !ruby/object:Professional attributes: certificate_program: quality_of_training: digits: length: primary_business: ayurveda_profession: school_attended: type_of_course: income: demographic_id: hours_per_week: errors: !ruby/object:ActiveRecord::Errors base: *id003 errors: digits: - Enter a number for length of training. quality_of_training: - can't be blank length: - can't be blank certificate_program: - can't be blank primary_business: - can't be blank school_attended: - can't be blank ayurveda_profession: - can't be blank income: - can't be blank new_record: true Response *Headers*: {"cookie"=>[], "Cache-Control"=>"no-cache"} Thanks, David On Nov 14, 2007 9:45 AM, Ryan Daigle wrote: > It'd be great to see the actual error and the actual view snippet... > > On 11/14/07, David Michaelson wrote: > > > I have an application currently in production, and now I have decided > > that I wanted to make one of the fields a drop down box. I add the data to > > the model that is to be displayed/stored in the database, and then modify > > the view as follows > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > and I am getting an error was wondering if there was something I was > > supposed to do besides modifying the model and the view. > > > > Thanks, > > > > David > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/cd66f3ad/attachment-0001.html From tj at stank.us Wed Nov 14 11:10:04 2007 From: tj at stank.us (TJ Stankus) Date: Wed, 14 Nov 2007 11:10:04 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> Message-ID: Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks like you have a form field for professional[weekend] in there that's the source of the error message. -TJ On Nov 14, 2007 11:00 AM, David Michaelson wrote: > the code snippet in the view is: > >
> <%= form.select :school_attended, Professional::SCHOOL, > :prompt => "-- Select school --" > %> > > The error I get as soon as I hit submit is: > > NoMethodError in SurveyController#createprofessional undefined method > `weekend=' for # > > > RAILS_ROOT: script/../config/.. > Application Trace | Framework Trace | Full Trace > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > `method_missing' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > `send' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > `attributes=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > `initialize_without_callbacks' > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > app/controllers/survey_controller.rb:38:in `new' > app/controllers/survey_controller.rb:38:in `createprofessional' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > `method_missing' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > `attributes=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > `attributes=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > `initialize_without_callbacks' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > `perform_action_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in > `call_filter' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in > `perform_action_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > `perform_action_without_rescue' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in > `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > `load' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > script/server:3 > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > `method_missing' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > `attributes=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > `attributes=' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > `initialize_without_callbacks' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > `initialize' > app/controllers/survey_controller.rb:38:in `new' > app/controllers/survey_controller.rb:38:in `createprofessional' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > `perform_action_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in > `call_filter' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in > `perform_action_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > `perform_action_without_rescue' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > `perform_action_without_rescue' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in > `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in > `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > `load' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > script/server:3 > > Request > > Parameters: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > Show session dump > --- > :demographic: &id001 !ruby/object:Demographic > attributes: > ethnicity: Black > income_level: "75" > age_range: "45" > state: CT > errors: !ruby/object:ActiveRecord::Errors > base: *id001 > errors: {} > > new_record: true > :membership: &id002 !ruby/object:Membership > attributes: > primary_weakness: "" > member: "yes" > rate_mission: "3" > should_offer: "" > primary_activities: B > primary_strengths: "" > demographic_id: > errors: !ruby/object:ActiveRecord::Errors > base: *id002 > errors: {} > > new_record: true > flash: !map:ActionController::Flash::FlashHash {} > > :professional: &id003 !ruby/object:Professional > attributes: > certificate_program: > quality_of_training: > digits: > length: > primary_business: > ayurveda_profession: > school_attended: > type_of_course: > income: > demographic_id: > hours_per_week: > errors: !ruby/object:ActiveRecord::Errors > base: *id003 > errors: > digits: > - Enter a number for length of training. > quality_of_training: > - can't be blank > length: > - can't be blank > certificate_program: > - can't be blank > primary_business: > - can't be blank > school_attended: > - can't be blank > ayurveda_profession: > - can't be blank > income: > - can't be blank > new_record: true > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > Thanks, > > David > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle wrote: > > It'd be great to see the actual error and the actual view snippet... > > > > > > > > > > > > On 11/14/07, David Michaelson wrote: > > > > > > > > > > > > I have an application currently in production, and now I have decided > that I wanted to make one of the fields a drop down box. I add the data to > the model that is to be displayed/stored in the database, and then modify > the view as follows > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > and I am getting an error was wondering if there was something I was > supposed to do besides modifying the model and the view. > > > > > > Thanks, > > > > > > David > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From ryan.daigle at gmail.com Wed Nov 14 11:44:00 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 14 Nov 2007 11:44:00 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> Message-ID: <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> ditto On 11/14/07, TJ Stankus wrote: > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks > like you have a form field for professional[weekend] in there that's > the source of the error message. > > -TJ > > On Nov 14, 2007 11:00 AM, David Michaelson wrote: > > the code snippet in the view is: > > > >
> > <%= form.select :school_attended, Professional::SCHOOL, > > :prompt => "-- Select school --" > > %> > > > > The error I get as soon as I hit submit is: > > > > NoMethodError in SurveyController#createprofessional undefined method > > `weekend=' for # > > > > > > RAILS_ROOT: script/../config/.. > > Application Trace | Framework Trace | Full Trace > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1857:in > > `method_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1672:in > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1672:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1671:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1505:in > > `initialize_without_callbacks' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > app/controllers/survey_controller.rb:38:in `new' > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1857:in > > `method_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1672:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1672:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1671:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1671:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1505:in > > `initialize_without_callbacks' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/callbacks.rb:225:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:1095:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:1095:in > > `perform_action_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/filters.rb:632:in > > `call_filter' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/filters.rb:619:in > > `perform_action_without_benchmark' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/rescue.rb:83:in > > `perform_action' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:430:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:430:in > > `process_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/filters.rb:624:in > > `process_without_session_management_support' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/session_management.rb:114:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:330:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > > `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/rails.rb:78:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/rails.rb:76:in > > `synchronize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/rails.rb:76:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:271:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:270:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:270:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/command.rb:211:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > /lib/commands/servers/mongrel.rb:60 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > script/server:3 > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1857:in > > `method_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1672:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1672:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1671:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1671:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/base.rb:1505:in > > `initialize_without_callbacks' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > /lib/active_record/callbacks.rb:225:in > > `initialize' > > app/controllers/survey_controller.rb:38:in `new' > > app/controllers/survey_controller.rb:38:in `createprofessional' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:1095:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:1095:in > > `perform_action_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/filters.rb:632:in > > `call_filter' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/filters.rb:619:in > > `perform_action_without_benchmark' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/rescue.rb:83:in > > `perform_action' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:430:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:430:in > > `process_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/filters.rb:624:in > > `process_without_session_management_support' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/session_management.rb:114:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > /lib/action_controller/base.rb:330:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > > `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/rails.rb:78:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/rails.rb:76:in > > `synchronize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/rails.rb:76:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:271:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:270:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/configurator.rb:270:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /lib/mongrel/command.rb:211:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > /lib/commands/servers/mongrel.rb:60 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > /lib/active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > script/server:3 > > > > Request > > > > Parameters: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > Show session dump > > --- > > :demographic: &id001 !ruby/object:Demographic > > attributes: > > ethnicity: Black > > income_level: "75" > > age_range: "45" > > state: CT > > errors: !ruby/object:ActiveRecord::Errors > > base: *id001 > > errors: {} > > > > new_record: true > > :membership: &id002 !ruby/object:Membership > > attributes: > > primary_weakness: "" > > member: "yes" > > rate_mission: "3" > > should_offer: "" > > primary_activities: B > > primary_strengths: "" > > demographic_id: > > errors: !ruby/object:ActiveRecord::Errors > > base: *id002 > > errors: {} > > > > new_record: true > > flash: !map:ActionController::Flash::FlashHash {} > > > > :professional: &id003 !ruby/object:Professional > > attributes: > > certificate_program: > > quality_of_training: > > digits: > > length: > > primary_business: > > ayurveda_profession: > > school_attended: > > type_of_course: > > income: > > demographic_id: > > hours_per_week: > > errors: !ruby/object:ActiveRecord::Errors > > base: *id003 > > errors: > > digits: > > - Enter a number for length of training. > > quality_of_training: > > - can't be blank > > length: > > - can't be blank > > certificate_program: > > - can't be blank > > primary_business: > > - can't be blank > > school_attended: > > - can't be blank > > ayurveda_profession: > > - can't be blank > > income: > > - can't be blank > > new_record: true > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > Thanks, > > > > David > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle wrote: > > > It'd be great to see the actual error and the actual view snippet... > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson wrote: > > > > > > > > > > > > > > > > I have an application currently in production, and now I have > decided > > that I wanted to make one of the fields a drop down box. I add the data > to > > the model that is to be displayed/stored in the database, and then > modify > > the view as follows > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > and I am getting an error was wondering if there was something I was > > supposed to do besides modifying the model and the view. > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/92935176/attachment-0001.html From ddmichaelson at gmail.com Wed Nov 14 13:31:11 2007 From: ddmichaelson at gmail.com (David Michaelson) Date: Wed, 14 Nov 2007 13:31:11 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> Message-ID: <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> The weekend field is a checkbox in the professional model that is stored as an integer in the database it is listed as follows: Weekend <%= form.check_box :weekend %> Does this need a default value somewhere, perhaps in the model it should be set=0? -David On Nov 14, 2007 11:44 AM, Ryan Daigle wrote: > ditto > > > On 11/14/07, TJ Stankus wrote: > > > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks > > like you have a form field for professional[weekend] in there that's > > the source of the error message. > > > > -TJ > > > > On Nov 14, 2007 11:00 AM, David Michaelson < ddmichaelson at gmail.com> > > wrote: > > > the code snippet in the view is: > > > > > >
> > > <%= form.select :school_attended, Professional::SCHOOL, > > > :prompt => "-- Select school --" > > > %> > > > > > > The error I get as soon as I hit submit is: > > > > > > NoMethodError in SurveyController#createprofessional undefined method > > > `weekend=' for # > > > > > > > > > RAILS_ROOT: script/../config/.. > > > Application Trace | Framework Trace | Full Trace > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1857:in > > > `method_missing' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1672:in > > > `attributes=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > > `initialize_without_callbacks' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > > app/controllers/survey_controller.rb:38:in `new' > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1857:in > > > `method_missing' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1672:in > > > `send' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1672:in > > > `attributes=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1671:in > > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1671:in > > > `attributes=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1505:in > > > `initialize_without_callbacks' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > > > > > `initialize' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/base.rb:1095:in > > > `send' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > > `perform_action_without_filters' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/filters.rb:632:in > > > `call_filter' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > /lib/action_controller/filters.rb:619:in > > > `perform_action_without_benchmark' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/benchmarking.rb:66:in > > > `perform_action_without_rescue' > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/benchmarking.rb:66:in > > > `perform_action_without_rescue' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > /lib/action_controller/rescue.rb:83:in > > > `perform_action' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/base.rb:430:in > > > `send' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > /lib/action_controller/base.rb:430:in > > > `process_without_filters' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/filters.rb:624:in > > > `process_without_session_management_support' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/session_management.rb:114:in > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > > > `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/rails.rb:78:in > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/rails.rb:76:in > > > `synchronize' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/rails.rb:76:in > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > > > `process_client' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > `process_client' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `initialize' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `new' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:720:in > > > `initialize' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `new' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/configurator.rb:271:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/configurator.rb:270:in > > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/configurator.rb:270:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /bin/mongrel_rails:127:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > /lib/mongrel/command.rb:211:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > `load' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:488:in > > > `load' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > > `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:488:in > > > `load' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > /lib/active_support/dependencies.rb:495:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:342:in > > > `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > /lib/active_support/dependencies.rb:495:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > /lib/commands/server.rb:39 > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > > script/server:3 > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > > > `method_missing' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1672:in > > > `send' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > /lib/active_record/base.rb:1672:in > > > `attributes=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1671:in > > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > /lib/active_record/base.rb:1671:in > > > `attributes=' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > /lib/active_record/base.rb:1505:in > > > `initialize_without_callbacks' > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > /lib/active_record/callbacks.rb:225:in > > > `initialize' > > > app/controllers/survey_controller.rb:38:in `new' > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > /lib/action_controller/base.rb:1095:in > > > `send' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/base.rb:1095:in > > > `perform_action_without_filters' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > /lib/action_controller/filters.rb:632:in > > > `call_filter' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/filters.rb:619:in > > > `perform_action_without_benchmark' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/benchmarking.rb:66:in > > > `perform_action_without_rescue' > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > /lib/action_controller/benchmarking.rb:66:in > > > `perform_action_without_rescue' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/rescue.rb:83:in > > > `perform_action' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/base.rb:430:in > > > `send' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/base.rb:430:in > > > `process_without_filters' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/filters.rb:624:in > > > `process_without_session_management_support' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > /lib/action_controller/base.rb:330:in > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > > > `dispatch' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/rails.rb:78:in > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/rails.rb:76:in > > > `synchronize' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/rails.rb:76:in > > > `process' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > > `process_client' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:617:in > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > `process_client' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `initialize' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > `new' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > `initialize' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `new' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/configurator.rb:271:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > /lib/mongrel/configurator.rb:270:in > > > `each' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/configurator.rb:270:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > /lib/mongrel/command.rb:211:in > > > `run' > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:488:in > > > `load' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > `load' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:342:in > > > `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > `load' > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > /lib/commands/servers/mongrel.rb:60 > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:495:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > /lib/active_support/dependencies.rb:342:in > > > `new_constants_in' > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > /lib/active_support/dependencies.rb:495:in > > > `require' > > > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3 > > /lib/commands/server.rb:39 > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `gem_original_require' > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `require' > > > script/server:3 > > > > > > Request > > > > > > Parameters: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", > > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > > > Show session dump > > > --- > > > :demographic: &id001 !ruby/object:Demographic > > > attributes: > > > ethnicity: Black > > > income_level: "75" > > > age_range: "45" > > > state: CT > > > errors: !ruby/object:ActiveRecord::Errors > > > base: *id001 > > > errors: {} > > > > > > new_record: true > > > :membership: &id002 !ruby/object:Membership > > > attributes: > > > primary_weakness: "" > > > member: "yes" > > > rate_mission: "3" > > > should_offer: "" > > > primary_activities: B > > > primary_strengths: "" > > > demographic_id: > > > errors: !ruby/object:ActiveRecord::Errors > > > base: *id002 > > > errors: {} > > > > > > new_record: true > > > flash: !map:ActionController::Flash::FlashHash {} > > > > > > :professional: &id003 !ruby/object:Professional > > > attributes: > > > certificate_program: > > > quality_of_training: > > > digits: > > > length: > > > primary_business: > > > ayurveda_profession: > > > school_attended: > > > type_of_course: > > > income: > > > demographic_id: > > > hours_per_week: > > > errors: !ruby/object:ActiveRecord::Errors > > > base: *id003 > > > errors: > > > digits: > > > - Enter a number for length of training. > > > quality_of_training: > > > - can't be blank > > > length: > > > - can't be blank > > > certificate_program: > > > - can't be blank > > > primary_business: > > > - can't be blank > > > school_attended: > > > - can't be blank > > > ayurveda_profession: > > > - can't be blank > > > income: > > > - can't be blank > > > new_record: true > > > > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > > > Thanks, > > > > > > David > > > > > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle wrote: > > > > It'd be great to see the actual error and the actual view snippet... > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson wrote: > > > > > > > > > > > > > > > > > > > > I have an application currently in production, and now I have > > decided > > > that I wanted to make one of the fields a drop down box. I add the > > data to > > > the model that is to be displayed/stored in the database, and then > > modify > > > the view as follows > > > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > > > and I am getting an error was wondering if there was something I > > was > > > supposed to do besides modifying the model and the view. > > > > > > > > > > Thanks, > > > > > > > > > > David > > > > > > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/b8ab78cd/attachment-0001.html From tj at stank.us Wed Nov 14 13:37:07 2007 From: tj at stank.us (TJ Stankus) Date: Wed, 14 Nov 2007 13:37:07 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> Message-ID: Just as a sanity check, take a look at your schema.rb file. Is the weekend field what you expect it to be there? -TJ On Nov 14, 2007 1:31 PM, David Michaelson wrote: > The weekend field is a checkbox in the professional model that is stored as > an integer in the database it is listed as follows: > > Weekend <%= form.check_box :weekend %> > > Does this need a default value somewhere, perhaps in the model it should be > set=0? > > -David > > > > On Nov 14, 2007 11:44 AM, Ryan Daigle wrote: > > > > > > > > ditto > > > > > > > > > > > > On 11/14/07, TJ Stankus wrote: > > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks > > > like you have a form field for professional[weekend] in there that's > > > the source of the error message. > > > > > > -TJ > > > > > > On Nov 14, 2007 11:00 AM, David Michaelson < ddmichaelson at gmail.com> > wrote: > > > > the code snippet in the view is: > > > > > > > >
> > > > <%= form.select :school_attended, Professional::SCHOOL, > > > > :prompt => "-- Select school --" > > > > %> > > > > > > > > The error I get as soon as I hit submit is: > > > > > > > > NoMethodError in SurveyController#createprofessional undefined method > > > > `weekend=' for # > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > > > Application Trace | Framework Trace | Full Trace > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > > > > `method_missing' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > `send' > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > `initialize_without_callbacks' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > > > app/controllers/survey_controller.rb:38:in `new' > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > > > > `method_missing' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > `initialize_without_callbacks' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > > > > `initialize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > `perform_action_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in > > > > `call_filter' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.13.3/lib/action_controller/filters.rb:619:in > > > > `perform_action_without_benchmark' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.13.3/lib/action_controller/rescue.rb:83:in > > > > `perform_action' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.13.3/lib/action_controller/base.rb:430:in > > > > `process_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in > > > > `process_without_session_management_support' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > > > > `dispatch' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > > > `synchronize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:618:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:720:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 1.0.1/lib/mongrel/command.rb:211:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- > 1.4.2/lib/active_support/dependencies.rb:495:in > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- > 1.4.2/lib/active_support/dependencies.rb:495:in > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > > > script/server:3 > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > /lib/active_record/base.rb:1857:in > > > > `method_missing' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.15.3/lib/active_record/base.rb:1672:in > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.15.3/lib/active_record/base.rb:1671:in > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > `initialize_without_callbacks' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > 1.15.3/lib/active_record/callbacks.rb:225:in > > > > `initialize' > > > > app/controllers/survey_controller.rb:38:in `new' > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.13.3/lib/action_controller/base.rb:1095:in > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > `perform_action_without_filters' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.13.3/lib/action_controller/filters.rb:632:in > > > > `call_filter' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in > > > > `perform_action_without_benchmark' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.13.3/lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in > > > > `perform_action' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in > > > > `process_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in > > > > `process_without_session_management_support' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in > > > > `dispatch' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > > > `synchronize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:617:in > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- > 1.0.1/lib/mongrel/configurator.rb:270:in > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > /bin/mongrel_rails:127:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- > 1.4.2/lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails- > 1.2.3/lib/commands/server.rb:39 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > > > > script/server:3 > > > > > > > > Request > > > > > > > > Parameters: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", > > > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > > > > > Show session dump > > > > --- > > > > :demographic: &id001 !ruby/object:Demographic > > > > attributes: > > > > ethnicity: Black > > > > income_level: "75" > > > > age_range: "45" > > > > state: CT > > > > errors: !ruby/object:ActiveRecord::Errors > > > > base: *id001 > > > > errors: {} > > > > > > > > new_record: true > > > > :membership: &id002 !ruby/object:Membership > > > > attributes: > > > > primary_weakness: "" > > > > member: "yes" > > > > rate_mission: "3" > > > > should_offer: "" > > > > primary_activities: B > > > > primary_strengths: "" > > > > demographic_id: > > > > errors: !ruby/object:ActiveRecord::Errors > > > > base: *id002 > > > > errors: {} > > > > > > > > new_record: true > > > > flash: !map:ActionController::Flash::FlashHash {} > > > > > > > > :professional: &id003 !ruby/object:Professional > > > > attributes: > > > > certificate_program: > > > > quality_of_training: > > > > digits: > > > > length: > > > > primary_business: > > > > ayurveda_profession: > > > > school_attended: > > > > type_of_course: > > > > income: > > > > demographic_id: > > > > hours_per_week: > > > > errors: !ruby/object:ActiveRecord::Errors > > > > base: *id003 > > > > errors: > > > > digits: > > > > - Enter a number for length of training. > > > > quality_of_training: > > > > - can't be blank > > > > length: > > > > - can't be blank > > > > certificate_program: > > > > - can't be blank > > > > primary_business: > > > > - can't be blank > > > > school_attended: > > > > - can't be blank > > > > ayurveda_profession: > > > > - can't be blank > > > > income: > > > > - can't be blank > > > > new_record: true > > > > > > > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle wrote: > > > > > It'd be great to see the actual error and the actual view snippet... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson wrote: > > > > > > > > > > > > > > > > > > > > > > > > I have an application currently in production, and now I have > decided > > > > that I wanted to make one of the fields a drop down box. I add the > data to > > > > the model that is to be displayed/stored in the database, and then > modify > > > > the view as follows > > > > > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > > > > > and I am getting an error was wondering if there was something I > was > > > > supposed to do besides modifying the model and the view. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > David > > > > > > > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From ryan.daigle at gmail.com Wed Nov 14 13:38:10 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 14 Nov 2007 13:38:10 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> Message-ID: <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> I don't know, it appears as though there's no Professional#weekend method defined at all. Are you sure your db as a weekend column? In script/console can you do something like: Professional.new.weekend without getting an error? -Ryan On 11/14/07, David Michaelson wrote: > > The weekend field is a checkbox in the professional model that is stored > as an integer in the database it is listed as follows: > > Weekend <%= form.check_box :weekend %> > > Does this need a default value somewhere, perhaps in the model it should > be set=0? > > -David > > On Nov 14, 2007 11:44 AM, Ryan Daigle wrote: > > > ditto > > > > > > On 11/14/07, TJ Stankus wrote: > > > > > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks > > > like you have a form field for professional[weekend] in there that's > > > the source of the error message. > > > > > > -TJ > > > > > > On Nov 14, 2007 11:00 AM, David Michaelson < ddmichaelson at gmail.com> > > > wrote: > > > > the code snippet in the view is: > > > > > > > >
> > > > <%= form.select :school_attended, Professional::SCHOOL, > > > > :prompt => "-- Select school --" > > > > %> > > > > > > > > The error I get as soon as I hit submit is: > > > > > > > > NoMethodError in SurveyController#createprofessional undefined > > > method > > > > `weekend=' for # > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > > > Application Trace | Framework Trace | Full Trace > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1857:in > > > > `method_missing' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > > > > `send' > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1672:in > > > > `attributes=' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > > > > `initialize_without_callbacks' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > > > app/controllers/survey_controller.rb:38:in `new' > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1857:in > > > > `method_missing' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1672:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1672:in > > > > `attributes=' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1671:in > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1671:in > > > > `attributes=' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1505:in > > > > `initialize_without_callbacks' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > > > > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/base.rb:1095:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > > > > `perform_action_without_filters' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/filters.rb:632:in > > > > `call_filter' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > /lib/action_controller/filters.rb:619:in > > > > `perform_action_without_benchmark' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > /lib/action_controller/rescue.rb:83:in > > > > `perform_action' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/base.rb:430:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > /lib/action_controller/base.rb:430:in > > > > `process_without_filters' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/filters.rb:624:in > > > > `process_without_session_management_support' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/session_management.rb:114:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > /lib/dispatcher.rb:41:in > > > > `dispatch' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/rails.rb:78:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/rails.rb:76:in > > > > `synchronize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/rails.rb:76:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > /lib/mongrel.rb:618:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel.rb:736:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > /lib/mongrel.rb:720:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/configurator.rb:271:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/configurator.rb:270:in > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/configurator.rb:270:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /bin/mongrel_rails:127:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > /lib/mongrel/command.rb:211:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /bin/mongrel_rails:243 > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > `load' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:488:in > > > > `load' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > > > > `new_constants_in' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:488:in > > > > `load' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > /lib/active_support/dependencies.rb:495:in > > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > /lib/active_support/dependencies.rb:495:in > > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > /lib/commands/server.rb:39 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > > script/server:3 > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/base.rb:1857:in > > > > `method_missing' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1672:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > /lib/active_record/base.rb:1672:in > > > > `attributes=' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1671:in > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > /lib/active_record/base.rb:1671:in > > > > `attributes=' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > /lib/active_record/base.rb:1505:in > > > > `initialize_without_callbacks' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > /lib/active_record/callbacks.rb:225:in > > > > `initialize' > > > > app/controllers/survey_controller.rb:38:in `new' > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > /lib/action_controller/base.rb:1095:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/base.rb:1095:in > > > > `perform_action_without_filters' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > /lib/action_controller/filters.rb:632:in > > > > `call_filter' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/filters.rb:619:in > > > > `perform_action_without_benchmark' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > /lib/action_controller/benchmarking.rb:66:in > > > > `perform_action_without_rescue' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/rescue.rb:83:in > > > > `perform_action' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/base.rb:430:in > > > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/base.rb:430:in > > > > `process_without_filters' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/filters.rb:624:in > > > > `process_without_session_management_support' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > /lib/action_controller/base.rb:330:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > /lib/dispatcher.rb:41:in > > > > `dispatch' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/rails.rb:78:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/rails.rb:76:in > > > > `synchronize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/rails.rb:76:in > > > > `process' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel.rb:618:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:617:in > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel.rb:617:in > > > > `process_client' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel.rb:736:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel.rb:720:in > > > > `initialize' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > `new' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/configurator.rb:271:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > /lib/mongrel/configurator.rb:270:in > > > > `each' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/configurator.rb:270:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > /lib/mongrel/command.rb:211:in > > > > `run' > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:488:in > > > > `load' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > `load' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > `load' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > /lib/commands/servers/mongrel.rb:60 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:495:in > > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > /lib/active_support/dependencies.rb:342:in > > > > `new_constants_in' > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > /lib/active_support/dependencies.rb:495:in > > > > `require' > > > > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3 > > > /lib/commands/server.rb:39 > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `gem_original_require' > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > `require' > > > > script/server:3 > > > > > > > > Request > > > > > > > > Parameters: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", > > > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > > > > > Show session dump > > > > --- > > > > :demographic: &id001 !ruby/object:Demographic > > > > attributes: > > > > ethnicity: Black > > > > income_level: "75" > > > > age_range: "45" > > > > state: CT > > > > errors: !ruby/object:ActiveRecord::Errors > > > > base: *id001 > > > > errors: {} > > > > > > > > new_record: true > > > > :membership: &id002 !ruby/object:Membership > > > > attributes: > > > > primary_weakness: "" > > > > member: "yes" > > > > rate_mission: "3" > > > > should_offer: "" > > > > primary_activities: B > > > > primary_strengths: "" > > > > demographic_id: > > > > errors: !ruby/object:ActiveRecord::Errors > > > > base: *id002 > > > > errors: {} > > > > > > > > new_record: true > > > > flash: !map:ActionController::Flash::FlashHash {} > > > > > > > > :professional: &id003 !ruby/object:Professional > > > > attributes: > > > > certificate_program: > > > > quality_of_training: > > > > digits: > > > > length: > > > > primary_business: > > > > ayurveda_profession: > > > > school_attended: > > > > type_of_course: > > > > income: > > > > demographic_id: > > > > hours_per_week: > > > > errors: !ruby/object:ActiveRecord::Errors > > > > base: *id003 > > > > errors: > > > > digits: > > > > - Enter a number for length of training. > > > > quality_of_training: > > > > - can't be blank > > > > length: > > > > - can't be blank > > > > certificate_program: > > > > - can't be blank > > > > primary_business: > > > > - can't be blank > > > > school_attended: > > > > - can't be blank > > > > ayurveda_profession: > > > > - can't be blank > > > > income: > > > > - can't be blank > > > > new_record: true > > > > > > > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle wrote: > > > > > It'd be great to see the actual error and the actual view > > > snippet... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson wrote: > > > > > > > > > > > > > > > > > > > > > > > > I have an application currently in production, and now I have > > > decided > > > > that I wanted to make one of the fields a drop down box. I add the > > > data to > > > > the model that is to be displayed/stored in the database, and then > > > modify > > > > the view as follows > > > > > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > > > > > and I am getting an error was wondering if there was something I > > > was > > > > supposed to do besides modifying the model and the view. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > David > > > > > > > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/59533e4d/attachment-0001.html From ddmichaelson at gmail.com Wed Nov 14 14:05:19 2007 From: ddmichaelson at gmail.com (David Michaelson) Date: Wed, 14 Nov 2007 14:05:19 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> Message-ID: <9ff8f6bc0711141105jffe1b3au8c6c61589a56fdeb@mail.gmail.com> Ryan: When I type in the command Professional.new.weekend from the console I get a NoMethodError: undefined method 'weekend' TJ: Upon looking at the weekend field in the schema.rb it is stored as an integer, I assume this is correct since it is linked to a checkbox that outputs 1 or 0. -David On Nov 14, 2007 1:38 PM, Ryan Daigle wrote: > I don't know, it appears as though there's no Professional#weekend method > defined at all. Are you sure your db as a weekend column? > > In script/console can you do something like: > > Professional.new.weekend > > without getting an error? > > -Ryan > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com> wrote: > > > The weekend field is a checkbox in the professional model that is stored > > as an integer in the database it is listed as follows: > > > > Weekend <%= form.check_box :weekend %> > > > > Does this need a default value somewhere, perhaps in the model it should > > be set=0? > > > > -David > > > > On Nov 14, 2007 11:44 AM, Ryan Daigle < ryan.daigle at gmail.com> wrote: > > > > > ditto > > > > > > > > > On 11/14/07, TJ Stankus < tj at stank.us> wrote: > > > > > > > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. > > > > Looks > > > > like you have a form field for professional[weekend] in there that's > > > > the source of the error message. > > > > > > > > -TJ > > > > > > > > On Nov 14, 2007 11:00 AM, David Michaelson < ddmichaelson at gmail.com> > > > > wrote: > > > > > the code snippet in the view is: > > > > > > > > > >
> > > > > <%= form.select :school_attended, Professional::SCHOOL, > > > > > :prompt => "-- Select school --" > > > > > %> > > > > > > > > > > The error I get as soon as I hit submit is: > > > > > > > > > > NoMethodError in SurveyController#createprofessional undefined > > > > method > > > > > `weekend=' for # > > > > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > > > > Application Trace | Framework Trace | Full Trace > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1857:in > > > > > `method_missing' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > > > > > > `send' > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1672:in > > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > > > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > > > > > > `initialize_without_callbacks' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > > > > app/controllers/survey_controller.rb:38:in `new' > > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1857:in > > > > > `method_missing' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1672:in > > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1672:in > > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1671:in > > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1671:in > > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1505:in > > > > > `initialize_without_callbacks' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > > > > > > > > > `initialize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/base.rb:1095:in > > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > > > > > > `perform_action_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/filters.rb:632:in > > > > > `call_filter' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > /lib/action_controller/filters.rb:619:in > > > > > `perform_action_without_benchmark' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > `perform_action_without_rescue' > > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > `perform_action_without_rescue' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > /lib/action_controller/rescue.rb:83:in > > > > > `perform_action' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/base.rb:430:in > > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > /lib/action_controller/base.rb:430:in > > > > > `process_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/filters.rb:624:in > > > > > `process_without_session_management_support' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/session_management.rb:114:in > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > /lib/dispatcher.rb:41:in > > > > > `dispatch' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/rails.rb:78:in > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/rails.rb:76:in > > > > > `synchronize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/rails.rb:76:in > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > /lib/mongrel.rb:618:in > > > > > `process_client' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > > > > > > `process_client' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel.rb:736:in > > > > > `initialize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `new' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > /lib/mongrel.rb:720:in > > > > > `initialize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > `new' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/configurator.rb:271:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/configurator.rb:270:in > > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/configurator.rb:270:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /bin/mongrel_rails:127:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > /lib/mongrel/command.rb:211:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /bin/mongrel_rails:243 > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:488:in > > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > > > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:488:in > > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > `gem_original_require' > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > /lib/active_support/dependencies.rb:495:in > > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:342:in > > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > /lib/active_support/dependencies.rb:495:in > > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > /lib/commands/server.rb:39 > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > > > > `gem_original_require' > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `require' > > > > > script/server:3 > > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/base.rb:1857:in > > > > > `method_missing' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1672:in > > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > /lib/active_record/base.rb:1672:in > > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1671:in > > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > /lib/active_record/base.rb:1671:in > > > > > `attributes=' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > /lib/active_record/base.rb:1505:in > > > > > `initialize_without_callbacks' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > /lib/active_record/callbacks.rb:225:in > > > > > `initialize' > > > > > app/controllers/survey_controller.rb:38:in `new' > > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > /lib/action_controller/base.rb:1095:in > > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/base.rb:1095:in > > > > > `perform_action_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > /lib/action_controller/filters.rb:632:in > > > > > `call_filter' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/filters.rb:619:in > > > > > `perform_action_without_benchmark' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > `perform_action_without_rescue' > > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > `perform_action_without_rescue' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/rescue.rb:83:in > > > > > `perform_action' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/base.rb:430:in > > > > > `send' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/base.rb:430:in > > > > > `process_without_filters' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/filters.rb:624:in > > > > > `process_without_session_management_support' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > /lib/action_controller/base.rb:330:in > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > /lib/dispatcher.rb:41:in > > > > > `dispatch' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/rails.rb:78:in > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/rails.rb:76:in > > > > > `synchronize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/rails.rb:76:in > > > > > `process' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel.rb:618:in > > > > > `process_client' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:617:in > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel.rb:617:in > > > > > `process_client' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel.rb:736:in > > > > > `initialize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > `new' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel.rb:720:in > > > > > `initialize' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > `new' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/configurator.rb:271:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > /lib/mongrel/configurator.rb:270:in > > > > > `each' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/configurator.rb:270:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > /lib/mongrel/command.rb:211:in > > > > > `run' > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:488:in > > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:342:in > > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > `load' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > /lib/commands/servers/mongrel.rb:60 > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > `gem_original_require' > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:495:in > > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > /lib/active_support/dependencies.rb:342:in > > > > > `new_constants_in' > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > /lib/active_support/dependencies.rb:495:in > > > > > `require' > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3 > > > > /lib/commands/server.rb:39 > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > `gem_original_require' > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > `require' > > > > > script/server:3 > > > > > > > > > > Request > > > > > > > > > > Parameters: {"commit"=>"Next Page", > > > > "professional"=>{"weekend"=>"0", > > > > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > > > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > > > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > > > > > > > Show session dump > > > > > --- > > > > > :demographic: &id001 !ruby/object:Demographic > > > > > attributes: > > > > > ethnicity: Black > > > > > income_level: "75" > > > > > age_range: "45" > > > > > state: CT > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > base: *id001 > > > > > errors: {} > > > > > > > > > > new_record: true > > > > > :membership: &id002 !ruby/object:Membership > > > > > attributes: > > > > > primary_weakness: "" > > > > > member: "yes" > > > > > rate_mission: "3" > > > > > should_offer: "" > > > > > primary_activities: B > > > > > primary_strengths: "" > > > > > demographic_id: > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > base: *id002 > > > > > errors: {} > > > > > > > > > > new_record: true > > > > > flash: !map:ActionController::Flash::FlashHash {} > > > > > > > > > > :professional: &id003 !ruby/object:Professional > > > > > attributes: > > > > > certificate_program: > > > > > quality_of_training: > > > > > digits: > > > > > length: > > > > > primary_business: > > > > > ayurveda_profession: > > > > > school_attended: > > > > > type_of_course: > > > > > income: > > > > > demographic_id: > > > > > hours_per_week: > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > base: *id003 > > > > > errors: > > > > > digits: > > > > > - Enter a number for length of training. > > > > > quality_of_training: > > > > > - can't be blank > > > > > length: > > > > > - can't be blank > > > > > certificate_program: > > > > > - can't be blank > > > > > primary_business: > > > > > - can't be blank > > > > > school_attended: > > > > > - can't be blank > > > > > ayurveda_profession: > > > > > - can't be blank > > > > > income: > > > > > - can't be blank > > > > > new_record: true > > > > > > > > > > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > > > > > > > Thanks, > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle < ryan.daigle at gmail.com> > > > > wrote: > > > > > > It'd be great to see the actual error and the actual view > > > > snippet... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have an application currently in production, and now I have > > > > decided > > > > > that I wanted to make one of the fields a drop down box. I add the > > > > data to > > > > > the model that is to be displayed/stored in the database, and then > > > > modify > > > > > the view as follows > > > > > > > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > > > > > > > and I am getting an error was wondering if there was something > > > > I was > > > > > supposed to do besides modifying the model and the view. > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > David > > > > > > > > > > > > > > _______________________________________________ > > > > > > > raleigh-rb-members mailing list > > > > > > > raleigh-rb-members at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/e66d475b/attachment-0001.html From jared.haworth at gmail.com Wed Nov 14 14:12:58 2007 From: jared.haworth at gmail.com (Jared Haworth) Date: Wed, 14 Nov 2007 14:12:58 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <9ff8f6bc0711141105jffe1b3au8c6c61589a56fdeb@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> <9ff8f6bc0711141105jffe1b3au8c6c61589a56fdeb@mail.gmail.com> Message-ID: <6EB248BD-79BB-4CEE-A139-4B1ABF20E25A@gmail.com> David, Is it possible the field exists in your schema, but hasn't been added to the database itself? Are your migrations all up to date? - Jared On Nov 14, 2007, at 2:05 PM, David Michaelson wrote: > Ryan: > > When I type in the command Professional.new.weekend from the > console I get a NoMethodError: undefined method 'weekend' > > TJ: > > Upon looking at the weekend field in the schema.rb it is stored as > an integer, I assume this is correct since it is linked to a > checkbox that outputs 1 or 0. > > -David > > On Nov 14, 2007 1:38 PM, Ryan Daigle wrote: > I don't know, it appears as though there's no Professional#weekend > method defined at all. Are you sure your db as a weekend column? > > In script/console can you do something like: > > Professional.new.weekend > > without getting an error? > > -Ryan > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com> wrote: > The weekend field is a checkbox in the professional model that is > stored as an integer in the database it is listed as follows: > > Weekend <%= form.check_box :weekend %> > > Does this need a default value somewhere, perhaps in the model it > should be set=0? > > -David > > On Nov 14, 2007 11:44 AM, Ryan Daigle < ryan.daigle at gmail.com> wrote: > ditto > > > On 11/14/07, TJ Stankus < tj at stank.us> wrote: > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks > like you have a form field for professional[weekend] in there that's > the source of the error message. > > -TJ > > On Nov 14, 2007 11:00 AM, David Michaelson < > ddmichaelson at gmail.com> wrote: > > the code snippet in the view is: > > > >
> > <%= form.select :school_attended, Professional::SCHOOL, > > :prompt => "-- Select school --" > > %> > > > > The error I get as soon as I hit submit is: > > > > NoMethodError in SurveyController#createprofessional undefined > method > > `weekend=' for # > > > > > > RAILS_ROOT: script/../config/.. > > Application Trace | Framework Trace | Full Trace > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1857:in > > `method_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1672:in > > `send' > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1672:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1671:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1505:in > > `initialize_without_callbacks' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > app/controllers/survey_controller.rb:38:in `new' > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1857:in > > `method_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1672:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1672:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1671:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1671:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1505:in > > `initialize_without_callbacks' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/callbacks.rb:225:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:1095:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:1095:in > > `perform_action_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/filters.rb:632:in > > `call_filter' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ > action_controller/filters.rb:619:in > > `perform_action_without_benchmark' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ > action_controller/rescue.rb:83:in > > `perform_action' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:430:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ > action_controller/base.rb:430:in > > `process_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/filters.rb:624:in > > `process_without_session_management_support' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/session_management.rb:114:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:330:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb: > 41:in > > `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:78:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:76:in > > `synchronize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:76:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: > 618:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 617:in `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 617:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: > 720:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 720:in `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 720:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 127:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel/ > command.rb:211:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 243 > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ > servers/mongrel.rb:60 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2/lib/ > active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2/lib/ > active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ > server.rb:39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > > script/server:3 > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 /lib/ > active_record/base.rb:1857:in > > `method_missing' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1672:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ > active_record/base.rb:1672:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1671:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ > active_record/base.rb:1671:in > > `attributes=' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ > active_record/base.rb:1505:in > > `initialize_without_callbacks' > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ > active_record/callbacks.rb:225:in > > `initialize' > > app/controllers/survey_controller.rb:38:in `new' > > app/controllers/survey_controller.rb:38:in `createprofessional' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ > action_controller/base.rb:1095:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:1095:in > > `perform_action_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ > action_controller/filters.rb:632:in > > `call_filter' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/filters.rb:619:in > > `perform_action_without_benchmark' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ > action_controller/benchmarking.rb:66:in > > `perform_action_without_rescue' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/rescue.rb:83:in > > `perform_action' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:430:in > > `send' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:430:in > > `process_without_filters' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/filters.rb:624:in > > `process_without_session_management_support' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/session_management.rb:114:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ > action_controller/base.rb:330:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb: > 41:in > > `dispatch' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:78:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:76:in > > `synchronize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > rails.rb:76:in > > `process' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 618:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: > 617:in `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 617:in > > `process_client' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 736:in `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: > 736:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 720:in > > `initialize' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 720:in `new' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: > 720:in `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:271:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel/ > configurator.rb:270:in > > `each' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > configurator.rb:270:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 /bin/ > mongrel_rails:127:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ > command.rb:211:in > > `run' > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails: > 243 > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:488:in > > `load' > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ > servers/mongrel.rb:60 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2/lib/ > active_support/dependencies.rb:342:in > > `new_constants_in' > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ > active_support/dependencies.rb:495:in > > `require' > > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3/lib/commands/ > server.rb:39 > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require' > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > > script/server:3 > > > > Request > > > > Parameters: {"commit"=>"Next Page", "professional"=>{"weekend"=>"0", > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > Show session dump > > --- > > :demographic: &id001 !ruby/object:Demographic > > attributes: > > ethnicity: Black > > income_level: "75" > > age_range: "45" > > state: CT > > errors: !ruby/object:ActiveRecord::Errors > > base: *id001 > > errors: {} > > > > new_record: true > > :membership: &id002 !ruby/object:Membership > > attributes: > > primary_weakness: "" > > member: "yes" > > rate_mission: "3" > > should_offer: "" > > primary_activities: B > > primary_strengths: "" > > demographic_id: > > errors: !ruby/object:ActiveRecord::Errors > > base: *id002 > > errors: {} > > > > new_record: true > > flash: !map:ActionController::Flash::FlashHash {} > > > > :professional: &id003 !ruby/object:Professional > > attributes: > > certificate_program: > > quality_of_training: > > digits: > > length: > > primary_business: > > ayurveda_profession: > > school_attended: > > type_of_course: > > income: > > demographic_id: > > hours_per_week: > > errors: !ruby/object:ActiveRecord::Errors > > base: *id003 > > errors: > > digits: > > - Enter a number for length of training. > > quality_of_training: > > - can't be blank > > length: > > - can't be blank > > certificate_program: > > - can't be blank > > primary_business: > > - can't be blank > > school_attended: > > - can't be blank > > ayurveda_profession: > > - can't be blank > > income: > > - can't be blank > > new_record: true > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > Thanks, > > > > David > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle < ryan.daigle at gmail.com> wrote: > > > It'd be great to see the actual error and the actual view > snippet... > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com > wrote: > > > > > > > > > > > > > > > > I have an application currently in production, and now I have > decided > > that I wanted to make one of the fields a drop down box. I add > the data to > > the model that is to be displayed/stored in the database, and > then modify > > the view as follows > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > and I am getting an error was wondering if there was > something I was > > supposed to do besides modifying the model and the view. > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/7368e67b/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/7368e67b/attachment-0001.bin From ddmichaelson at gmail.com Wed Nov 14 14:23:33 2007 From: ddmichaelson at gmail.com (David Michaelson) Date: Wed, 14 Nov 2007 14:23:33 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <6EB248BD-79BB-4CEE-A139-4B1ABF20E25A@gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> <9ff8f6bc0711141105jffe1b3au8c6c61589a56fdeb@mail.gmail.com> <6EB248BD-79BB-4CEE-A139-4B1ABF20E25A@gmail.com> Message-ID: <9ff8f6bc0711141123t77ebb5c1maaa6d6098e597967@mail.gmail.com> That was it! it was a migration problem, thought I was on the same migration as the production server, but this was not the case, got the migration to run and it seems to work fine, sorry if I was wasting your time, guess I just needed a fresh mind on it, amazing how we can forget the little things. Thank you guys so much for all your help -David On Nov 14, 2007 2:12 PM, Jared Haworth wrote: > David, > Is it possible the field exists in your schema, but hasn't been added to > the database itself? Are your migrations all up to date? > > - Jared > > On Nov 14, 2007, at 2:05 PM, David Michaelson wrote: > > Ryan: > > When I type in the command Professional.new.weekend from the console I get > a NoMethodError: undefined method 'weekend' > > TJ: > > Upon looking at the weekend field in the schema.rb it is stored as an > integer, I assume this is correct since it is linked to a checkbox that > outputs 1 or 0. > > -David > > On Nov 14, 2007 1:38 PM, Ryan Daigle wrote: > > > I don't know, it appears as though there's no Professional#weekend > > method defined at all. Are you sure your db as a weekend column? > > > > In script/console can you do something like: > > > > Professional.new.weekend > > > > without getting an error? > > > > -Ryan > > > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com> wrote: > > > > > The weekend field is a checkbox in the professional model that is > > > stored as an integer in the database it is listed as follows: > > > > > > Weekend <%= form.check_box :weekend %> > > > > > > Does this need a default value somewhere, perhaps in the model it > > > should be set=0? > > > > > > -David > > > > > > On Nov 14, 2007 11:44 AM, Ryan Daigle < ryan.daigle at gmail.com> wrote: > > > > > > > ditto > > > > > > > > > > > > On 11/14/07, TJ Stankus < tj at stank.us> wrote: > > > > > > > > > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. > > > > > Looks > > > > > like you have a form field for professional[weekend] in there > > > > > that's > > > > > the source of the error message. > > > > > > > > > > -TJ > > > > > > > > > > On Nov 14, 2007 11:00 AM, David Michaelson < > > > > > ddmichaelson at gmail.com> wrote: > > > > > > the code snippet in the view is: > > > > > > > > > > > >
> > > > > > <%= form.select :school_attended, Professional::SCHOOL, > > > > > > :prompt => "-- Select school --" > > > > > > %> > > > > > > > > > > > > The error I get as soon as I hit submit is: > > > > > > > > > > > > NoMethodError in SurveyController#createprofessional undefined > > > > > method > > > > > > `weekend=' for # > > > > > > > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > > > > > Application Trace | Framework Trace | Full Trace > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1857:in > > > > > > `method_missing' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > > > > > > > > `send' > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1672:in > > > > > > `attributes=' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > > > > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > > > > > > > > `initialize_without_callbacks' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > > > > > app/controllers/survey_controller.rb:38:in `new' > > > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1857:in > > > > > > `method_missing' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1672:in > > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1672:in > > > > > > `attributes=' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1671:in > > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1671:in > > > > > > `attributes=' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1505:in > > > > > > `initialize_without_callbacks' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in > > > > > > > > > > > `initialize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/base.rb:1095:in > > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in > > > > > > > > > > > `perform_action_without_filters' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/filters.rb:632:in > > > > > > `call_filter' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > /lib/action_controller/filters.rb:619:in > > > > > > `perform_action_without_benchmark' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > `perform_action_without_rescue' > > > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > `perform_action_without_rescue' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > /lib/action_controller/rescue.rb:83:in > > > > > > `perform_action' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/base.rb:430:in > > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > /lib/action_controller/base.rb:430:in > > > > > > `process_without_filters' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/filters.rb:624:in > > > > > > `process_without_session_management_support' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/session_management.rb:114:in > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > > > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > /lib/dispatcher.rb:41:in > > > > > > `dispatch' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/rails.rb:78:in > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/rails.rb:76:in > > > > > > `synchronize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/rails.rb:76:in > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > /lib/mongrel.rb:618:in > > > > > > `process_client' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > > > > > > > > `process_client' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel.rb:736:in > > > > > > `initialize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > `new' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > /lib/mongrel.rb:720:in > > > > > > `initialize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > `new' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/configurator.rb:271:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /bin/mongrel_rails:127:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > /lib/mongrel/command.rb:211:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /bin/mongrel_rails:243 > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > > > `load' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:488:in > > > > > > `load' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > > > > > > > > `new_constants_in' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:488:in > > > > > > `load' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > `gem_original_require' > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > `require' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:342:in > > > > > > `new_constants_in' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > `require' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > /lib/commands/server.rb:39 > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > `gem_original_require' > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > script/server:3 > > > > > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/base.rb:1857:in > > > > > > `method_missing' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1672:in > > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > > /lib/active_record/base.rb:1672:in > > > > > > `attributes=' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1671:in > > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > > /lib/active_record/base.rb:1671:in > > > > > > `attributes=' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > /lib/active_record/base.rb:1505:in > > > > > > `initialize_without_callbacks' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > > /lib/active_record/callbacks.rb:225:in > > > > > > `initialize' > > > > > > app/controllers/survey_controller.rb:38:in `new' > > > > > > app/controllers/survey_controller.rb:38:in `createprofessional' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > /lib/action_controller/base.rb:1095:in > > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/base.rb:1095:in > > > > > > `perform_action_without_filters' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > /lib/action_controller/filters.rb:632:in > > > > > > `call_filter' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/filters.rb:619:in > > > > > > `perform_action_without_benchmark' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > `perform_action_without_rescue' > > > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > `perform_action_without_rescue' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/rescue.rb:83:in > > > > > > `perform_action' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/base.rb:430:in > > > > > > `send' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/base.rb:430:in > > > > > > `process_without_filters' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/filters.rb:624:in > > > > > > `process_without_session_management_support' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > > > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > /lib/action_controller/base.rb:330:in > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > /lib/dispatcher.rb:41:in > > > > > > `dispatch' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/rails.rb:78:in > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/rails.rb:76:in > > > > > > `synchronize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/rails.rb:76:in > > > > > > `process' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel.rb:618:in > > > > > > `process_client' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:617:in > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel.rb:617:in > > > > > > `process_client' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel.rb:736:in > > > > > > `initialize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > `new' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel.rb:720:in > > > > > > `initialize' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > `new' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/configurator.rb:271:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > `each' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > /lib/mongrel/command.rb:211:in > > > > > > `run' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:488:in > > > > > > `load' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > > > `load' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:342:in > > > > > > `new_constants_in' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > > > `load' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > /lib/commands/servers/mongrel.rb:60 > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > `gem_original_require' > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > `require' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > > /lib/active_support/dependencies.rb:342:in > > > > > > `new_constants_in' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > `require' > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3 > > > > > /lib/commands/server.rb:39 > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > `gem_original_require' > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > > > > > > script/server:3 > > > > > > > > > > > > Request > > > > > > > > > > > > Parameters: {"commit"=>"Next Page", > > > > > "professional"=>{"weekend"=>"0", > > > > > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > > > > > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", > > > > > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > > > > > > > > > Show session dump > > > > > > --- > > > > > > :demographic: &id001 !ruby/object:Demographic > > > > > > attributes: > > > > > > ethnicity: Black > > > > > > income_level: "75" > > > > > > age_range: "45" > > > > > > state: CT > > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > > base: *id001 > > > > > > errors: {} > > > > > > > > > > > > new_record: true > > > > > > :membership: &id002 !ruby/object:Membership > > > > > > attributes: > > > > > > primary_weakness: "" > > > > > > member: "yes" > > > > > > rate_mission: "3" > > > > > > should_offer: "" > > > > > > primary_activities: B > > > > > > primary_strengths: "" > > > > > > demographic_id: > > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > > base: *id002 > > > > > > errors: {} > > > > > > > > > > > > new_record: true > > > > > > flash: !map:ActionController::Flash::FlashHash {} > > > > > > > > > > > > :professional: &id003 !ruby/object:Professional > > > > > > attributes: > > > > > > certificate_program: > > > > > > quality_of_training: > > > > > > digits: > > > > > > length: > > > > > > primary_business: > > > > > > ayurveda_profession: > > > > > > school_attended: > > > > > > type_of_course: > > > > > > income: > > > > > > demographic_id: > > > > > > hours_per_week: > > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > > base: *id003 > > > > > > errors: > > > > > > digits: > > > > > > - Enter a number for length of training. > > > > > > quality_of_training: > > > > > > - can't be blank > > > > > > length: > > > > > > - can't be blank > > > > > > certificate_program: > > > > > > - can't be blank > > > > > > primary_business: > > > > > > - can't be blank > > > > > > school_attended: > > > > > > - can't be blank > > > > > > ayurveda_profession: > > > > > > - can't be blank > > > > > > income: > > > > > > - can't be blank > > > > > > new_record: true > > > > > > > > > > > > > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > > > > > > > > > Thanks, > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle < ryan.daigle at gmail.com> > > > > > wrote: > > > > > > > It'd be great to see the actual error and the actual view > > > > > snippet... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have an application currently in production, and now I > > > > > have decided > > > > > > that I wanted to make one of the fields a drop down box. I add > > > > > the data to > > > > > > the model that is to be displayed/stored in the database, and > > > > > then modify > > > > > > the view as follows > > > > > > > > > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > > > > > > > > > and I am getting an error was wondering if there was > > > > > something I was > > > > > > supposed to do besides modifying the model and the view. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > raleigh-rb-members mailing list > > > > > > > > raleigh-rb-members at rubyforge.org > > > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > raleigh-rb-members mailing list > > > > > > > raleigh-rb-members at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/595ae93c/attachment-0001.html From ryan.daigle at gmail.com Wed Nov 14 14:44:02 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Wed, 14 Nov 2007 14:44:02 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <9ff8f6bc0711141123t77ebb5c1maaa6d6098e597967@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> <9ff8f6bc0711141105jffe1b3au8c6c61589a56fdeb@mail.gmail.com> <6EB248BD-79BB-4CEE-A139-4B1ABF20E25A@gmail.com> <9ff8f6bc0711141123t77ebb5c1maaa6d6098e597967@mail.gmail.com> Message-ID: <748ff3ff0711141144w3575844ev92d721fc7cc70a96@mail.gmail.com> we like the little things - they're easy to figure out :) On 11/14/07, David Michaelson wrote: > > That was it! it was a migration problem, thought I was on the same > migration as the production server, but this was not the case, got the > migration to run and it seems to work fine, sorry if I was wasting your > time, guess I just needed a fresh mind on it, amazing how we can forget the > little things. Thank you guys so much for all your help > > -David > > On Nov 14, 2007 2:12 PM, Jared Haworth wrote: > > > David, > > Is it possible the field exists in your schema, but hasn't been added to > > the database itself? Are your migrations all up to date? > > > > - Jared > > > > On Nov 14, 2007, at 2:05 PM, David Michaelson wrote: > > > > Ryan: > > > > When I type in the command Professional.new.weekend from the console I > > get a NoMethodError: undefined method 'weekend' > > > > TJ: > > > > Upon looking at the weekend field in the schema.rb it is stored as an > > integer, I assume this is correct since it is linked to a checkbox that > > outputs 1 or 0. > > > > -David > > > > On Nov 14, 2007 1:38 PM, Ryan Daigle wrote: > > > > > I don't know, it appears as though there's no Professional#weekend > > > method defined at all. Are you sure your db as a weekend column? > > > > > > In script/console can you do something like: > > > > > > Professional.new.weekend > > > > > > without getting an error? > > > > > > -Ryan > > > > > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com> wrote: > > > > > > > The weekend field is a checkbox in the professional model that is > > > > stored as an integer in the database it is listed as follows: > > > > > > > > Weekend <%= form.check_box :weekend %> > > > > > > > > Does this need a default value somewhere, perhaps in the model it > > > > should be set=0? > > > > > > > > -David > > > > > > > > On Nov 14, 2007 11:44 AM, Ryan Daigle < ryan.daigle at gmail.com> > > > > wrote: > > > > > > > > > ditto > > > > > > > > > > > > > > > On 11/14/07, TJ Stankus < tj at stank.us> wrote: > > > > > > > > > > > > Hmmm.. Rails is looking for the Professional#weekend= 'setter'. > > > > > > Looks > > > > > > like you have a form field for professional[weekend] in there > > > > > > that's > > > > > > the source of the error message. > > > > > > > > > > > > -TJ > > > > > > > > > > > > On Nov 14, 2007 11:00 AM, David Michaelson < > > > > > > ddmichaelson at gmail.com> wrote: > > > > > > > the code snippet in the view is: > > > > > > > > > > > > > >
> > > > > > > <%= form.select :school_attended, > > > > > > Professional::SCHOOL, > > > > > > > :prompt => "-- Select school --" > > > > > > > %> > > > > > > > > > > > > > > The error I get as soon as I hit submit is: > > > > > > > > > > > > > > NoMethodError in SurveyController#createprofessional > > > > > > undefined method > > > > > > > `weekend=' for # > > > > > > > > > > > > > > > > > > > > > RAILS_ROOT: script/../config/.. > > > > > > > Application Trace | Framework Trace | Full Trace > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1857:in > > > > > > > `method_missing' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > > > > > > > > > > `send' > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1672:in > > > > > > > `attributes=' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > > > > > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > > > > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in > > > > > > > > > > > > > `initialize_without_callbacks' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- > > > > > > > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' > > > > > > > app/controllers/survey_controller.rb:38:in `new' > > > > > > > app/controllers/survey_controller.rb:38:in > > > > > > `createprofessional' > > > > > > > > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in > > > > > > > > > > > > > `method_missing' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1672:in > > > > > > > `send' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1672:in > > > > > > > > > > > > > `attributes=' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1671:in > > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in > > > > > > > > > > > > > `attributes=' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1505:in > > > > > > > `initialize_without_callbacks' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/callbacks.rb:225:in > > > > > > > > > > > > > `initialize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/base.rb:1095:in > > > > > > > `send' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/action_controller/base.rb:1095:in > > > > > > > > > > > > > `perform_action_without_filters' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/filters.rb:632:in > > > > > > > `call_filter' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > > /lib/action_controller/filters.rb:619:in > > > > > > > `perform_action_without_benchmark' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > > `perform_action_without_rescue' > > > > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > > `perform_action_without_rescue' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > > /lib/action_controller/rescue.rb:83:in > > > > > > > `perform_action' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/base.rb:430:in > > > > > > > `send' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > > /lib/action_controller/base.rb:430:in > > > > > > > `process_without_filters' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/filters.rb:624:in > > > > > > > `process_without_session_management_support' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/session_management.rb:114:in > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in > > > > > > > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > > /lib/dispatcher.rb:41:in > > > > > > > `dispatch' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/rails.rb:78:in > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/rails.rb:76:in > > > > > > > `synchronize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/rails.rb:76:in > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > > /lib/mongrel.rb:618:in > > > > > > > `process_client' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in > > > > > > > > > > > > > `process_client' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel.rb:736:in > > > > > > > `initialize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > > `new' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > > /lib/mongrel.rb:720:in > > > > > > > `initialize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > > `new' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/configurator.rb:271:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /bin/mongrel_rails:127:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > > /lib/mongrel/command.rb:211:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /bin/mongrel_rails:243 > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > > > > > `load' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:488:in > > > > > > > `load' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in > > > > > > > > > > > > > `new_constants_in' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:488:in > > > > > > > `load' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60 > > > > > > > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > > `gem_original_require' > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > > `require' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:342:in > > > > > > > `new_constants_in' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > > `require' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > > /lib/commands/server.rb:39 > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > > `gem_original_require' > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > > script/server:3 > > > > > > > > > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/active_record/base.rb:1857:in > > > > > > > `method_missing' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1672:in > > > > > > > `send' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > > > /lib/active_record/base.rb:1672:in > > > > > > > `attributes=' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1671:in > > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > > > /lib/active_record/base.rb:1671:in > > > > > > > `attributes=' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 > > > > > > /lib/active_record/base.rb:1505:in > > > > > > > `initialize_without_callbacks' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 > > > > > > /lib/active_record/callbacks.rb:225:in > > > > > > > `initialize' > > > > > > > app/controllers/survey_controller.rb:38:in `new' > > > > > > > app/controllers/survey_controller.rb:38:in > > > > > > `createprofessional' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > > /lib/action_controller/base.rb:1095:in > > > > > > > `send' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/base.rb:1095:in > > > > > > > `perform_action_without_filters' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > > /lib/action_controller/filters.rb:632:in > > > > > > > `call_filter' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/filters.rb:619:in > > > > > > > `perform_action_without_benchmark' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > > `perform_action_without_rescue' > > > > > > > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3 > > > > > > /lib/action_controller/benchmarking.rb:66:in > > > > > > > `perform_action_without_rescue' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/rescue.rb:83:in > > > > > > > `perform_action' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/base.rb:430:in > > > > > > > `send' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/base.rb:430:in > > > > > > > `process_without_filters' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/filters.rb:624:in > > > > > > > `process_without_session_management_support' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in > > > > > > > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3 > > > > > > /lib/action_controller/base.rb:330:in > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > > /lib/dispatcher.rb:41:in > > > > > > > `dispatch' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/rails.rb:78:in > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/rails.rb:76:in > > > > > > > `synchronize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/rails.rb:76:in > > > > > > > `process' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel.rb:618:in > > > > > > > `process_client' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:617:in > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel.rb:617:in > > > > > > > `process_client' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel.rb:736:in > > > > > > > `initialize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in > > > > > > `new' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb:736:in > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel.rb:720:in > > > > > > > `initialize' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > > `new' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/configurator.rb:271:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1 > > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > > `each' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/configurator.rb:270:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 > > > > > > /lib/mongrel/command.rb:211:in > > > > > > > `run' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 > > > > > > > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:488:in > > > > > > > `load' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > > > > > `load' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:342:in > > > > > > > `new_constants_in' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in > > > > > > > > > > > > > `load' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3 > > > > > > /lib/commands/servers/mongrel.rb:60 > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > > `gem_original_require' > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > > `require' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2 > > > > > > /lib/active_support/dependencies.rb:342:in > > > > > > > `new_constants_in' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2 > > > > > > /lib/active_support/dependencies.rb:495:in > > > > > > > `require' > > > > > > > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3 > > > > > > /lib/commands/server.rb:39 > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > > > > > > > `gem_original_require' > > > > > > > > > > > > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > > > > > > > > > > > > > script/server:3 > > > > > > > > > > > > > > Request > > > > > > > > > > > > > > Parameters: {"commit"=>"Next Page", > > > > > > "professional"=>{"weekend"=>"0", > > > > > > > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", > > > > > > > "quality_of_training"=>"", "digits"=>"", > > > > > > "primary_business"=>"", > > > > > > > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} > > > > > > > > > > > > > > Show session dump > > > > > > > --- > > > > > > > :demographic: &id001 !ruby/object:Demographic > > > > > > > attributes: > > > > > > > ethnicity: Black > > > > > > > income_level: "75" > > > > > > > age_range: "45" > > > > > > > state: CT > > > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > > > base: *id001 > > > > > > > errors: {} > > > > > > > > > > > > > > new_record: true > > > > > > > :membership: &id002 !ruby/object:Membership > > > > > > > attributes: > > > > > > > primary_weakness: "" > > > > > > > member: "yes" > > > > > > > rate_mission: "3" > > > > > > > should_offer: "" > > > > > > > primary_activities: B > > > > > > > primary_strengths: "" > > > > > > > demographic_id: > > > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > > > base: *id002 > > > > > > > errors: {} > > > > > > > > > > > > > > new_record: true > > > > > > > flash: !map:ActionController::Flash::FlashHash {} > > > > > > > > > > > > > > :professional: &id003 !ruby/object:Professional > > > > > > > attributes: > > > > > > > certificate_program: > > > > > > > quality_of_training: > > > > > > > digits: > > > > > > > length: > > > > > > > primary_business: > > > > > > > ayurveda_profession: > > > > > > > school_attended: > > > > > > > type_of_course: > > > > > > > income: > > > > > > > demographic_id: > > > > > > > hours_per_week: > > > > > > > errors: !ruby/object:ActiveRecord::Errors > > > > > > > base: *id003 > > > > > > > errors: > > > > > > > digits: > > > > > > > - Enter a number for length of training. > > > > > > > quality_of_training: > > > > > > > - can't be blank > > > > > > > length: > > > > > > > - can't be blank > > > > > > > certificate_program: > > > > > > > - can't be blank > > > > > > > primary_business: > > > > > > > - can't be blank > > > > > > > school_attended: > > > > > > > - can't be blank > > > > > > > ayurveda_profession: > > > > > > > - can't be blank > > > > > > > income: > > > > > > > - can't be blank > > > > > > > new_record: true > > > > > > > > > > > > > > > > > > > > > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Nov 14, 2007 9:45 AM, Ryan Daigle < ryan.daigle at gmail.com> > > > > > > wrote: > > > > > > > > It'd be great to see the actual error and the actual view > > > > > > snippet... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have an application currently in production, and now I > > > > > > have decided > > > > > > > that I wanted to make one of the fields a drop down box. I add > > > > > > the data to > > > > > > > the model that is to be displayed/stored in the database, and > > > > > > then modify > > > > > > > the view as follows > > > > > > > > > > > > > > > > > > <%= form.select :fieldname, model::MODEL_FIELD %> > > > > > > > > > > > > > > > > > > and I am getting an error was wondering if there was > > > > > > something I was > > > > > > > supposed to do besides modifying the model and the view. > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > raleigh-rb-members mailing list > > > > > > > > > raleigh-rb-members at rubyforge.org > > > > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > raleigh-rb-members mailing list > > > > > > > > raleigh-rb-members at rubyforge.org > > > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > raleigh-rb-members mailing list > > > > > > > raleigh-rb-members at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/c7936571/attachment-0001.html From jared.haworth at gmail.com Wed Nov 14 14:47:53 2007 From: jared.haworth at gmail.com (Jared Haworth) Date: Wed, 14 Nov 2007 14:47:53 -0500 Subject: [raleigh.rb] Having some problems with a form drop down box In-Reply-To: <748ff3ff0711141144w3575844ev92d721fc7cc70a96@mail.gmail.com> References: <9ff8f6bc0711140554m6bb28487x2fb3d93330f30575@mail.gmail.com> <748ff3ff0711140645v310e62b7v265604a4d276c6fe@mail.gmail.com> <9ff8f6bc0711140800p67d5d31fr9b480345cd2082f9@mail.gmail.com> <748ff3ff0711140844y21c3db6fo1bdd79cce853c53a@mail.gmail.com> <9ff8f6bc0711141031w55644156o53f7c84d5a57b9fc@mail.gmail.com> <748ff3ff0711141038g751443b4q6bca10b8e8a2a64d@mail.gmail.com> <9ff8f6bc0711141105jffe1b3au8c6c61589a56fdeb@mail.gmail.com> <6EB248BD-79BB-4CEE-A139-4B1ABF20E25A@gmail.com> <9ff8f6bc0711141123t77ebb5c1maaa6d6098e597967@mail.gmail.com> <748ff3ff0711141144w3575844ev92d721fc7cc70a96@mail.gmail.com> Message-ID: <40C90138-0BAD-4749-8551-417F58CB6CC4@gmail.com> Absolutely... that was a hell of a lot more fun than trying to unravel timezone support! On Nov 14, 2007, at 2:44 PM, Ryan Daigle wrote: > we like the little things - they're easy to figure out :) > > On 11/14/07, David Michaelson wrote: > That was it! it was a migration problem, thought I was on the same > migration as the production server, but this was not the case, got > the migration to run and it seems to work fine, sorry if I was > wasting your time, guess I just needed a fresh mind on it, amazing > how we can forget the little things. Thank you guys so much for all > your help > > -David > > On Nov 14, 2007 2:12 PM, Jared Haworth < jared.haworth at gmail.com> > wrote: > David, > > Is it possible the field exists in your schema, but hasn't been > added to the database itself? Are your migrations all up to date? > > - Jared > > On Nov 14, 2007, at 2:05 PM, David Michaelson wrote: > >> Ryan: >> >> When I type in the command Professional.new.weekend from the >> console I get a NoMethodError: undefined method 'weekend' >> >> TJ: >> >> Upon looking at the weekend field in the schema.rb it is stored as >> an integer, I assume this is correct since it is linked to a >> checkbox that outputs 1 or 0. >> >> -David >> >> On Nov 14, 2007 1:38 PM, Ryan Daigle wrote: >> I don't know, it appears as though there's no Professional#weekend >> method defined at all. Are you sure your db as a weekend column? >> >> In script/console can you do something like: >> >> Professional.new.weekend >> >> without getting an error? >> >> -Ryan >> >> On 11/14/07, David Michaelson < ddmichaelson at gmail.com> wrote: >> The weekend field is a checkbox in the professional model that is >> stored as an integer in the database it is listed as follows: >> >> Weekend <%= form.check_box :weekend %> >> >> Does this need a default value somewhere, perhaps in the model it >> should be set=0? >> >> -David >> >> On Nov 14, 2007 11:44 AM, Ryan Daigle < ryan.daigle at gmail.com> wrote: >> ditto >> >> >> On 11/14/07, TJ Stankus < tj at stank.us> wrote: >> Hmmm.. Rails is looking for the Professional#weekend= 'setter'. Looks >> like you have a form field for professional[weekend] in there that's >> the source of the error message. >> >> -TJ >> >> On Nov 14, 2007 11:00 AM, David Michaelson < >> ddmichaelson at gmail.com> wrote: >> > the code snippet in the view is: >> > >> >
>> > <%= form.select :school_attended, Professional::SCHOOL, >> > :prompt => "-- Select school --" >> > %> >> > >> > The error I get as soon as I hit submit is: >> > >> > NoMethodError in SurveyController#createprofessional undefined >> method >> > `weekend=' for # >> > >> > >> > RAILS_ROOT: script/../config/.. >> > Application Trace | Framework Trace | Full Trace >> > >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1857:in >> > `method_missing' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1672:in >> > `send' >> > >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1672:in >> > `attributes=' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1671:in >> > `each' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- >> > 1.15.3/lib/active_record/base.rb:1671:in `attributes=' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1505:in >> > `initialize_without_callbacks' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- >> > 1.15.3/lib/active_record/callbacks.rb:225:in `initialize' >> > app/controllers/survey_controller.rb:38:in `new' >> > app/controllers/survey_controller.rb:38:in `createprofessional' >> > >> > >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1857:in >> > `method_missing' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1672:in >> > `send' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1672:in >> > `attributes=' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1671:in >> > `each' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1671:in >> > `attributes=' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1505:in >> > `initialize_without_callbacks' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ >> active_record/callbacks.rb:225:in >> > `initialize' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:1095:in >> > `send' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/base.rb:1095:in >> > `perform_action_without_filters' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/filters.rb:632:in >> > `call_filter' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/filters.rb:619:in >> > `perform_action_without_benchmark' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/benchmarking.rb:66:in >> > `perform_action_without_rescue' >> > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/benchmarking.rb:66:in >> > `perform_action_without_rescue' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/rescue.rb:83:in >> > `perform_action' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:430:in >> > `send' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/base.rb:430:in >> > `process_without_filters' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/filters.rb:624:in >> > `process_without_session_management_support' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/session_management.rb:114:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:330:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb: >> 41:in >> > `dispatch' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> rails.rb:78:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> rails.rb:76:in >> > `synchronize' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> rails.rb:76:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 618:in >> > `process_client' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 617:in `each' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 617:in >> > `process_client' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in >> > `initialize' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in `new' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 720:in >> > `initialize' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 720:in `new' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 720:in `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in >> > `each' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ >> mongrel_rails:127:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel/ >> command.rb:211:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ >> mongrel_rails:243 >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:488:in >> > `load' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:488:in >> > `load' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:342:in >> > `new_constants_in' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:488:in >> > `load' >> > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ >> servers/mongrel.rb:60 >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require' >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 27:in `require' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2/lib/ >> active_support/dependencies.rb:495:in >> > `require' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:342:in >> > `new_constants_in' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2/lib/ >> active_support/dependencies.rb:495:in >> > `require' >> > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ >> server.rb:39 >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require' >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 27:in `require' >> > script/server:3 >> > >> > >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 /lib/ >> active_record/base.rb:1857:in >> > `method_missing' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1672:in >> > `send' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ >> active_record/base.rb:1672:in >> > `attributes=' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1671:in >> > `each' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ >> active_record/base.rb:1671:in >> > `attributes=' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ >> active_record/base.rb:1505:in >> > `initialize_without_callbacks' >> > /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3/lib/ >> active_record/callbacks.rb:225:in >> > `initialize' >> > app/controllers/survey_controller.rb:38:in `new' >> > app/controllers/survey_controller.rb:38:in `createprofessional' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/base.rb:1095:in >> > `send' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:1095:in >> > `perform_action_without_filters' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/filters.rb:632:in >> > `call_filter' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/filters.rb:619:in >> > `perform_action_without_benchmark' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/benchmarking.rb:66:in >> > `perform_action_without_rescue' >> > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack- 1.13.3/lib/ >> action_controller/benchmarking.rb:66:in >> > `perform_action_without_rescue' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/rescue.rb:83:in >> > `perform_action' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:430:in >> > `send' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:430:in >> > `process_without_filters' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/filters.rb:624:in >> > `process_without_session_management_support' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/session_management.rb:114:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ >> action_controller/base.rb:330:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb: >> 41:in >> > `dispatch' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> rails.rb:78:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> rails.rb:76:in >> > `synchronize' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> rails.rb:76:in >> > `process' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 618:in >> > `process_client' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 617:in `each' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 617:in >> > `process_client' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in >> > `initialize' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 736:in `new' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel.rb: >> 736:in `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 720:in >> > `initialize' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 720:in `new' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb: >> 720:in `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:271:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel- 1.0.1/lib/mongrel/ >> configurator.rb:270:in >> > `each' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> configurator.rb:270:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1 /bin/ >> mongrel_rails:127:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/ >> command.rb:211:in >> > `run' >> > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/ >> mongrel_rails:243 >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:488:in >> > `load' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:488:in >> > `load' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:342:in >> > `new_constants_in' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:488:in >> > `load' >> > /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/ >> servers/mongrel.rb:60 >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require' >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 27:in `require' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:495:in >> > `require' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport- 1.4.2/lib/ >> active_support/dependencies.rb:342:in >> > `new_constants_in' >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ >> active_support/dependencies.rb:495:in >> > `require' >> > /usr/local/lib/ruby/gems/1.8/gems/rails- 1.2.3/lib/commands/ >> server.rb:39 >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require' >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 27:in `require' >> > script/server:3 >> > >> > Request >> > >> > Parameters: {"commit"=>"Next Page", "professional"=> >> {"weekend"=>"0", >> > "correspondence"=>"0", "fulltime"=>"0", "length"=>"H", >> > "quality_of_training"=>"", "digits"=>"", "primary_business"=>"", >> > "school_attended"=>"", "income"=>"", "hours_per_week"=>""}} >> > >> > Show session dump >> > --- >> > :demographic: &id001 !ruby/object:Demographic >> > attributes: >> > ethnicity: Black >> > income_level: "75" >> > age_range: "45" >> > state: CT >> > errors: !ruby/object:ActiveRecord::Errors >> > base: *id001 >> > errors: {} >> > >> > new_record: true >> > :membership: &id002 !ruby/object:Membership >> > attributes: >> > primary_weakness: "" >> > member: "yes" >> > rate_mission: "3" >> > should_offer: "" >> > primary_activities: B >> > primary_strengths: "" >> > demographic_id: >> > errors: !ruby/object:ActiveRecord::Errors >> > base: *id002 >> > errors: {} >> > >> > new_record: true >> > flash: !map:ActionController::Flash::FlashHash {} >> > >> > :professional: &id003 !ruby/object:Professional >> > attributes: >> > certificate_program: >> > quality_of_training: >> > digits: >> > length: >> > primary_business: >> > ayurveda_profession: >> > school_attended: >> > type_of_course: >> > income: >> > demographic_id: >> > hours_per_week: >> > errors: !ruby/object:ActiveRecord::Errors >> > base: *id003 >> > errors: >> > digits: >> > - Enter a number for length of training. >> > quality_of_training: >> > - can't be blank >> > length: >> > - can't be blank >> > certificate_program: >> > - can't be blank >> > primary_business: >> > - can't be blank >> > school_attended: >> > - can't be blank >> > ayurveda_profession: >> > - can't be blank >> > income: >> > - can't be blank >> > new_record: true >> > >> > >> > Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} >> > >> > Thanks, >> > >> > David >> > >> > >> > >> > On Nov 14, 2007 9:45 AM, Ryan Daigle < ryan.daigle at gmail.com> >> wrote: >> > > It'd be great to see the actual error and the actual view >> snippet... >> > > >> > > >> > > >> > > >> > > >> > > On 11/14/07, David Michaelson < ddmichaelson at gmail.com > wrote: >> > > > >> > > > >> > > > >> > > > I have an application currently in production, and now I >> have decided >> > that I wanted to make one of the fields a drop down box. I add >> the data to >> > the model that is to be displayed/stored in the database, and >> then modify >> > the view as follows >> > > > >> > > > <%= form.select :fieldname, model::MODEL_FIELD %> >> > > > >> > > > and I am getting an error was wondering if there was >> something I was >> > supposed to do besides modifying the model and the view. >> > > > >> > > > Thanks, >> > > > >> > > > David >> > > > >> > > > _______________________________________________ >> > > > raleigh-rb-members mailing list >> > > > raleigh-rb-members at rubyforge.org >> > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > >> > > >> > > >> > > _______________________________________________ >> > > raleigh-rb-members mailing list >> > > raleigh-rb-members at rubyforge.org >> > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > >> > >> > >> > _______________________________________________ >> > raleigh-rb-members mailing list >> > raleigh-rb-members at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> _______________________________________________ >> >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/bd5d0809/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071114/bd5d0809/attachment-0001.bin From nathaniel at talbott.ws Thu Nov 15 11:57:05 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Thu, 15 Nov 2007 11:57:05 -0500 Subject: [raleigh.rb] December Schedule Message-ID: <1C1055A3-B071-45BB-9095-6D9AA1AFE7EB@talbott.ws> We're going to be doing two activities in December: - HACK NIGHT WILL BE AS USUAL, on December 6th at 6pm at Panera in Brier Creek. Details: http://ruby.meetup.com/3/calendar/6747149/. - THE REGULAR MEETING IS MERGING WITH TRILUG'S DECEMBER SOCIAL on December 13th at 7pm at the Doubletree in RTP. Details: http://ruby.meetup.com/3/calendar/6747130 I'm hoping these two opportunities will give everyone a chance to get their Ruby community fix going in to the holidays, and maybe even inspire us all to do some extra hacking over Christmas vacation. Speaking of which, it'll be time for some lightning talks early next year... Hope to see you sometime in December, but if not, have a safe and fun holidays and I'll see you next year! -- Nathaniel Talbott <:((>< From nospam at tonyspencer.com Thu Nov 15 16:06:26 2007 From: nospam at tonyspencer.com (NoSpam) Date: Thu, 15 Nov 2007 16:06:26 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users Message-ID: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> We have an app that has been live for several months now and a few users have emailed to say that they don't understand how to navigate some parts of the sites because they don't see any links. At first I dismissed it as user error but later discovered that there is a serious problem. I was able to get a couple of the users to send me screenshots and HTML source and sure enough the links are completely missing. I don't think its a browser issue because I've tested with many versions of browser and the source code shows that the HTML is all present on the page *except* for the HTML that should be generated by: <%= link_to category.name, :controller => :ads, :action => :new, :category_id => category.id %> I'm completely boggled by this one. I don't even see this behavior when I'm logged in as that user. Has anyone experienced issues with link_to not rendering anything? From ryan.daigle at gmail.com Thu Nov 15 17:56:36 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Thu, 15 Nov 2007 17:56:36 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> Message-ID: <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> Any chance category.name is sometimes nil..? On Nov 15, 2007 4:06 PM, NoSpam wrote: > We have an app that has been live for several months now and a few > users have emailed to say that they don't understand how to navigate > some parts of the sites because they don't see any links. At first I > dismissed it as user error but later discovered that there is a > serious problem. I was able to get a couple of the users to send me > screenshots and HTML source and sure enough the links are completely > missing. I don't think its a browser issue because I've tested with > many versions of browser and the source code shows that the HTML is > all present on the page *except* for the HTML that should be generated > by: > > <%= link_to category.name, :controller => :ads, :action > => :new, :category_id => category.id %> > > I'm completely boggled by this one. I don't even see this behavior > when I'm logged in as that user. Has anyone experienced issues with > link_to not rendering anything? > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/4a6f8547/attachment.html From nospam at tonyspencer.com Thu Nov 15 23:01:04 2007 From: nospam at tonyspencer.com (NoSpam) Date: Thu, 15 Nov 2007 23:01:04 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> Message-ID: <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> Just for a sanity check I tried purposely setting category.name to nil and the link_to method will still generate a link using the relative url as the anchor text. On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > Any chance category.name is sometimes nil..? > > On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > We have an app that has been live for several months now and a few > users have emailed to say that they don't understand how to navigate > some parts of the sites because they don't see any links. At first I > dismissed it as user error but later discovered that there is a > serious problem. I was able to get a couple of the users to send me > screenshots and HTML source and sure enough the links are completely > missing. I don't think its a browser issue because I've tested with > many versions of browser and the source code shows that the HTML is > all present on the page *except* for the HTML that should be generated > by: > > <%= link_to category.name , :controller => :ads, :action > => :new, :category_id => category.id %> > > I'm completely boggled by this one. I don't even see this behavior > when I'm logged in as that user. Has anyone experienced issues with > link_to not rendering anything? > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/472337f9/attachment.html From tj at stank.us Thu Nov 15 23:05:32 2007 From: tj at stank.us (TJ Stankus) Date: Thu, 15 Nov 2007 23:05:32 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> Message-ID: Hmmm... is there some conditional code around the link_to? For it not to be rendered at all, maybe ERB is not getting to it. -TJ On Nov 15, 2007 11:01 PM, NoSpam wrote: > Just for a sanity check I tried purposely setting category.name to nil and > the link_to method will still generate a link using the relative url as the > anchor text. > > > > On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > Any chance category.name is sometimes nil..? > > On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > > We have an app that has been live for several months now and a few > > users have emailed to say that they don't understand how to navigate > > some parts of the sites because they don't see any links. At first I > > dismissed it as user error but later discovered that there is a > > serious problem. I was able to get a couple of the users to send me > > screenshots and HTML source and sure enough the links are completely > > missing. I don't think its a browser issue because I've tested with > > many versions of browser and the source code shows that the HTML is > > all present on the page *except* for the HTML that should be generated > > by: > > > > <%= link_to category.name , :controller => :ads, :action > > => :new, :category_id => category.id %> > > > > I'm completely boggled by this one. I don't even see this behavior > > when I'm logged in as that user. Has anyone experienced issues with > > link_to not rendering anything? > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From nospam at tonyspencer.com Thu Nov 15 23:15:15 2007 From: nospam at tonyspencer.com (NoSpam) Date: Thu, 15 Nov 2007 23:15:15 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> Message-ID: <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> To be totally clear we are seeing this behavior in many places in the site so I don't think its just one bad piece of code in one view or controller. Very weird. but here is the code chunk: <% @categories.each_with_index {|category, i| depth = (category.depth == nil) ? 0 : category.depth j = 0 %> <% (depth).times do %>   <% end %> <% if depth == 0 %> <%= category.name%> <% else %> <%= link_to category.name, :controller => :ads, :action => :new, :category_id => category.id %> <% end %> <% } %> and here is the page that looks normal for most: http://raleigh.ohsohandy.com/categories/list On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > Hmmm... is there some conditional code around the link_to? For it not > to be rendered at all, maybe ERB is not getting to it. > > -TJ > > On Nov 15, 2007 11:01 PM, NoSpam wrote: >> Just for a sanity check I tried purposely setting category.name to >> nil and >> the link_to method will still generate a link using the relative >> url as the >> anchor text. >> >> >> >> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: >> Any chance category.name is sometimes nil..? >> >> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: >>> We have an app that has been live for several months now and a few >>> users have emailed to say that they don't understand how to navigate >>> some parts of the sites because they don't see any links. At >>> first I >>> dismissed it as user error but later discovered that there is a >>> serious problem. I was able to get a couple of the users to send me >>> screenshots and HTML source and sure enough the links are completely >>> missing. I don't think its a browser issue because I've tested with >>> many versions of browser and the source code shows that the HTML is >>> all present on the page *except* for the HTML that should be >>> generated >>> by: >>> >>> <%= link_to category.name , :controller => :ads, :action >>> => :new, :category_id => category.id %> >>> >>> I'm completely boggled by this one. I don't even see this behavior >>> when I'm logged in as that user. Has anyone experienced issues with >>> link_to not rendering anything? >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From randomutterings at gmail.com Thu Nov 15 23:19:35 2007 From: randomutterings at gmail.com (Chris Barnes) Date: Thu, 15 Nov 2007 23:19:35 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> Message-ID: <52c57d810711152019u3e9c53aep9075c8460d77bf44@mail.gmail.com> When the links don't get rendered, are they all not rendered or does the problem only affect specific links? On Nov 15, 2007 11:15 PM, NoSpam wrote: > To be totally clear we are seeing this behavior in many places in the > site so I don't think its just one bad piece of code in one view or > controller. Very weird. > > but here is the code chunk: > > <% > @categories.each_with_index {|category, i| > depth = (category.depth == nil) ? 0 : category.depth > j = 0 > %> > > <% (depth).times do %>   <% end %> > <% if depth == 0 %> > <%= category.name% > > > <% else %> > <%= link_to category.name, > :controller => :ads, :action > => :new, :category_id => category.id %> > <% end %> > > > <% } %> > > and here is the page that looks normal for most: > > http://raleigh.ohsohandy.com/categories/list > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > Hmmm... is there some conditional code around the link_to? For it not > > to be rendered at all, maybe ERB is not getting to it. > > > > -TJ > > > > On Nov 15, 2007 11:01 PM, NoSpam wrote: > >> Just for a sanity check I tried purposely setting category.name to > >> nil and > >> the link_to method will still generate a link using the relative > >> url as the > >> anchor text. > >> > >> > >> > >> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > >> Any chance category.name is sometimes nil..? > >> > >> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > >>> We have an app that has been live for several months now and a few > >>> users have emailed to say that they don't understand how to navigate > >>> some parts of the sites because they don't see any links. At > >>> first I > >>> dismissed it as user error but later discovered that there is a > >>> serious problem. I was able to get a couple of the users to send me > >>> screenshots and HTML source and sure enough the links are completely > >>> missing. I don't think its a browser issue because I've tested with > >>> many versions of browser and the source code shows that the HTML is > >>> all present on the page *except* for the HTML that should be > >>> generated > >>> by: > >>> > >>> <%= link_to category.name , :controller => :ads, :action > >>> => :new, :category_id => category.id %> > >>> > >>> I'm completely boggled by this one. I don't even see this behavior > >>> when I'm logged in as that user. Has anyone experienced issues with > >>> link_to not rendering anything? > >>> _______________________________________________ > >>> raleigh-rb-members mailing list > >>> raleigh-rb-members at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >>> > >> > >> _______________________________________________ > >> raleigh-rb-members mailing list > >> raleigh-rb-members at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >> > >> _______________________________________________ > >> raleigh-rb-members mailing list > >> raleigh-rb-members at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >> > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/e35bc991/attachment-0001.html From nospam at tonyspencer.com Thu Nov 15 23:34:09 2007 From: nospam at tonyspencer.com (NoSpam) Date: Thu, 15 Nov 2007 23:34:09 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <52c57d810711152019u3e9c53aep9075c8460d77bf44@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <52c57d810711152019u3e9c53aep9075c8460d77bf44@mail.gmail.com> Message-ID: attached is the actual source from the user's browser. you can see that no links are rendered. On Nov 15, 2007, at 11:19 PM, Chris Barnes wrote: > When the links don't get rendered, are they all not rendered or does > the problem only affect specific links? > > On Nov 15, 2007 11:15 PM, NoSpam < nospam at tonyspencer.com> wrote: > To be totally clear we are seeing this behavior in many places in the > site so I don't think its just one bad piece of code in one view or > controller. Very weird. > > but here is the code chunk: > > <% > @categories.each_with_index {|category, i| > depth = (category.depth == nil) ? 0 : category.depth > j = 0 > %> > > <% (depth).times do %>   <% end %> > <% if depth == 0 %> > <%= category.name%> strong> > <% else %> > <%= link_to > category.name, :controller => :ads, :action > => :new, :category_id => category.id %> > <% end %> > > > <% } %> > > and here is the page that looks normal for most: > > http://raleigh.ohsohandy.com/categories/list > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > Hmmm... is there some conditional code around the link_to? For it > not > > to be rendered at all, maybe ERB is not getting to it. > > > > -TJ > > > > On Nov 15, 2007 11:01 PM, NoSpam < nospam at tonyspencer.com> wrote: > >> Just for a sanity check I tried purposely setting category.name to > >> nil and > >> the link_to method will still generate a link using the relative > >> url as the > >> anchor text. > >> > >> > >> > >> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > >> Any chance category.name is sometimes nil..? > >> > >> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > >>> We have an app that has been live for several months now and a few > >>> users have emailed to say that they don't understand how to > navigate > >>> some parts of the sites because they don't see any links. At > >>> first I > >>> dismissed it as user error but later discovered that there is a > >>> serious problem. I was able to get a couple of the users to > send me > >>> screenshots and HTML source and sure enough the links are > completely > >>> missing. I don't think its a browser issue because I've tested > with > >>> many versions of browser and the source code shows that the HTML > is > >>> all present on the page *except* for the HTML that should be > >>> generated > >>> by: > >>> > >>> <%= link_to category.name , :controller => :ads, :action > >>> => :new, :category_id => category.id %> > >>> > >>> I'm completely boggled by this one. I don't even see this > behavior > >>> when I'm logged in as that user. Has anyone experienced issues > with > >>> link_to not rendering anything? > >>> _______________________________________________ > >>> raleigh-rb-members mailing list > >>> raleigh-rb-members at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >>> > >> > >> _______________________________________________ > >> raleigh-rb-members mailing list > >> raleigh-rb-members at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >> > >> _______________________________________________ > >> raleigh-rb-members mailing list > >> raleigh-rb-members at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >> > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/de6fe367/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ohsohandy.txt Url: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/de6fe367/attachment.txt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/de6fe367/attachment-0001.html From randomutterings at gmail.com Thu Nov 15 23:45:27 2007 From: randomutterings at gmail.com (Chris Barnes) Date: Thu, 15 Nov 2007 23:45:27 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <52c57d810711152019u3e9c53aep9075c8460d77bf44@mail.gmail.com> Message-ID: <52c57d810711152045x4c3b7431iec0c8bf7c1a56050@mail.gmail.com> Check to see if there is anything of interest in your logs. On Nov 15, 2007 11:34 PM, NoSpam wrote: > attached is the actual source from the user's browser. you can see that > no links are rendered. > > > On Nov 15, 2007, at 11:19 PM, Chris Barnes wrote: > > When the links don't get rendered, are they all not rendered or does the > problem only affect specific links? > > On Nov 15, 2007 11:15 PM, NoSpam < nospam at tonyspencer.com> wrote: > > > To be totally clear we are seeing this behavior in many places in the > > site so I don't think its just one bad piece of code in one view or > > controller. Very weird. > > > > but here is the code chunk: > > > > <% > > @categories.each_with_index {|category, i| > > depth = (category.depth == nil) ? 0 : category.depth > > j = 0 > > %> > > > > <% (depth).times do %>   <% end %> > > <% if depth == 0 %> > > <%= category.name% > > > > > <% else %> > > <%= link_to category.name, > > :controller => :ads, :action > > => :new, :category_id => category.id %> > > <% end %> > > > > > > <% } %> > > > > and here is the page that looks normal for most: > > > > http://raleigh.ohsohandy.com/categories/list > > > > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > > > Hmmm... is there some conditional code around the link_to? For it not > > > to be rendered at all, maybe ERB is not getting to it. > > > > > > -TJ > > > > > > On Nov 15, 2007 11:01 PM, NoSpam < nospam at tonyspencer.com> wrote: > > >> Just for a sanity check I tried purposely setting category.name to > > >> nil and > > >> the link_to method will still generate a link using the relative > > >> url as the > > >> anchor text. > > >> > > >> > > >> > > >> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > > >> Any chance category.name is sometimes nil..? > > >> > > >> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > > >>> We have an app that has been live for several months now and a few > > >>> users have emailed to say that they don't understand how to navigate > > >>> some parts of the sites because they don't see any links. At > > >>> first I > > >>> dismissed it as user error but later discovered that there is a > > >>> serious problem. I was able to get a couple of the users to send me > > >>> screenshots and HTML source and sure enough the links are completely > > >>> missing. I don't think its a browser issue because I've tested with > > >>> many versions of browser and the source code shows that the HTML is > > >>> all present on the page *except* for the HTML that should be > > >>> generated > > >>> by: > > >>> > > >>> <%= link_to category.name , :controller => :ads, :action > > >>> => :new, :category_id => category.id %> > > >>> > > >>> I'm completely boggled by this one. I don't even see this behavior > > >>> when I'm logged in as that user. Has anyone experienced issues with > > >>> link_to not rendering anything? > > >>> _______________________________________________ > > >>> raleigh-rb-members mailing list > > >>> raleigh-rb-members at rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>> > > >> > > >> _______________________________________________ > > >> raleigh-rb-members mailing list > > >> raleigh-rb-members at rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >> > > >> _______________________________________________ > > >> raleigh-rb-members mailing list > > >> raleigh-rb-members at rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >> > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/eecf743e/attachment-0001.html From nospam at tonyspencer.com Thu Nov 15 23:56:10 2007 From: nospam at tonyspencer.com (NoSpam) Date: Thu, 15 Nov 2007 23:56:10 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <52c57d810711152045x4c3b7431iec0c8bf7c1a56050@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <52c57d810711152019u3e9c53aep9075c8460d77bf44@mail.gmail.com> <52c57d810711152045x4c3b7431iec0c8bf7c1a56050@mail.gmail.com> Message-ID: I have. Nothing. On Nov 15, 2007, at 11:45 PM, Chris Barnes wrote: > Check to see if there is anything of interest in your logs. > > On Nov 15, 2007 11:34 PM, NoSpam wrote: > attached is the actual source from the user's browser. you can see > that no links are rendered. > > > > On Nov 15, 2007, at 11:19 PM, Chris Barnes wrote: > >> When the links don't get rendered, are they all not rendered or >> does the problem only affect specific links? >> >> On Nov 15, 2007 11:15 PM, NoSpam < nospam at tonyspencer.com> wrote: >> To be totally clear we are seeing this behavior in many places in the >> site so I don't think its just one bad piece of code in one view or >> controller. Very weird. >> >> but here is the code chunk: >> >> <% >> @categories.each_with_index {|category, i| >> depth = (category.depth == nil) ? 0 : category.depth >> j = 0 >> %> >> >> <% (depth).times do %>   <% end %> >> <% if depth == 0 %> >> <%= category.name%>> strong> >> <% else %> >> <%= link_to >> category.name, :controller => :ads, :action >> => :new, :category_id => category.id %> >> <% end %> >> >> >> <% } %> >> >> and here is the page that looks normal for most: >> >> http://raleigh.ohsohandy.com/categories/list >> >> >> On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: >> >> > Hmmm... is there some conditional code around the link_to? For it >> not >> > to be rendered at all, maybe ERB is not getting to it. >> > >> > -TJ >> > >> > On Nov 15, 2007 11:01 PM, NoSpam < nospam at tonyspencer.com> wrote: >> >> Just for a sanity check I tried purposely setting category.name to >> >> nil and >> >> the link_to method will still generate a link using the relative >> >> url as the >> >> anchor text. >> >> >> >> >> >> >> >> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: >> >> Any chance category.name is sometimes nil..? >> >> >> >> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: >> >>> We have an app that has been live for several months now and a >> few >> >>> users have emailed to say that they don't understand how to >> navigate >> >>> some parts of the sites because they don't see any links. At >> >>> first I >> >>> dismissed it as user error but later discovered that there is a >> >>> serious problem. I was able to get a couple of the users to >> send me >> >>> screenshots and HTML source and sure enough the links are >> completely >> >>> missing. I don't think its a browser issue because I've tested >> with >> >>> many versions of browser and the source code shows that the >> HTML is >> >>> all present on the page *except* for the HTML that should be >> >>> generated >> >>> by: >> >>> >> >>> <%= link_to category.name , :controller => :ads, :action >> >>> => :new, :category_id => category.id %> >> >>> >> >>> I'm completely boggled by this one. I don't even see this >> behavior >> >>> when I'm logged in as that user. Has anyone experienced issues >> with >> >>> link_to not rendering anything? >> >>> _______________________________________________ >> >>> raleigh-rb-members mailing list >> >>> raleigh-rb-members at rubyforge.org >> >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >>> >> >> >> >> _______________________________________________ >> >> raleigh-rb-members mailing list >> >> raleigh-rb-members at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> >> _______________________________________________ >> >> raleigh-rb-members mailing list >> >> raleigh-rb-members at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> > _______________________________________________ >> > raleigh-rb-members mailing list >> > raleigh-rb-members at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071115/0d3d6c71/attachment.html From jared.haworth at gmail.com Fri Nov 16 00:36:33 2007 From: jared.haworth at gmail.com (Jared Haworth) Date: Fri, 16 Nov 2007 00:36:33 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> Message-ID: <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> This is going to be kind of off the wall, but I think some of the problem might have to do with the scope of local variables... Can you simplify the code to look like this? <% @categories.each do |category| -%> <% if category.depth.nil? -%> <%= category.name%> <% else -%> <%= link_to category.name, :controller => :ads, :action => :new, :category_id => category.id %> <% end -%> <% end -%> For the time being, I took out the use of the   code to set up your indenting, honestly you might want to consider something like nested unordered lists with a list-style: none; in the CSS. I don't see where either i (the index) or J (initialized to 0) get used in that snippet, and they'd pass out of scope by the end of the snippet... - Jared On Nov 15, 2007, at 11:15 PM, NoSpam wrote: > To be totally clear we are seeing this behavior in many places in the > site so I don't think its just one bad piece of code in one view or > controller. Very weird. > > but here is the code chunk: > > <% > @categories.each_with_index {|category, i| > depth = (category.depth == nil) ? 0 : category.depth > j = 0 > %> > > <% (depth).times do %>   <% end %> > <% if depth == 0 %> > <%= category.name%> > <% else %> > <%= link_to category.name, :controller => :ads, :action > => :new, :category_id => category.id %> > <% end %> > > > <% } %> > > and here is the page that looks normal for most: > > http://raleigh.ohsohandy.com/categories/list > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > >> Hmmm... is there some conditional code around the link_to? For it not >> to be rendered at all, maybe ERB is not getting to it. >> >> -TJ >> >> On Nov 15, 2007 11:01 PM, NoSpam wrote: >>> Just for a sanity check I tried purposely setting category.name to >>> nil and >>> the link_to method will still generate a link using the relative >>> url as the >>> anchor text. >>> >>> >>> >>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: >>> Any chance category.name is sometimes nil..? >>> >>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: >>>> We have an app that has been live for several months now and a few >>>> users have emailed to say that they don't understand how to >>>> navigate >>>> some parts of the sites because they don't see any links. At >>>> first I >>>> dismissed it as user error but later discovered that there is a >>>> serious problem. I was able to get a couple of the users to >>>> send me >>>> screenshots and HTML source and sure enough the links are >>>> completely >>>> missing. I don't think its a browser issue because I've tested with >>>> many versions of browser and the source code shows that the HTML is >>>> all present on the page *except* for the HTML that should be >>>> generated >>>> by: >>>> >>>> <%= link_to category.name , :controller => :ads, :action >>>> => :new, :category_id => category.id %> >>>> >>>> I'm completely boggled by this one. I don't even see this behavior >>>> when I'm logged in as that user. Has anyone experienced issues >>>> with >>>> link_to not rendering anything? >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071116/3a96d55e/attachment.bin From z at zworkbench.com Fri Nov 16 08:45:36 2007 From: z at zworkbench.com (Chris Garrett) Date: Fri, 16 Nov 2007 08:45:36 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> Message-ID: <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> Quite a puzzler! Looking at the source for link_to, I don't see how it could not render without generating an exception. Some ideas: Have you modified or overridden link_to in any of your helpers or extensions? Is there any Javascript that might be removing the link from your DOM? Did the browser snippet you sent come from "view source" and not from Firebug? (Firebug sometimes strips out malformed HTML) On Nov 16, 2007 12:36 AM, Jared Haworth wrote: > This is going to be kind of off the wall, but I think some of the > problem might have to do with the scope of local variables... > > Can you simplify the code to look like this? > > <% @categories.each do |category| -%> > > > <% if category.depth.nil? -%> > <%= category.name%> > <% else -%> > <%= link_to category.name, :controller => :ads, :action > => :new, :category_id => category.id %> > <% end -%> > > > <% end -%> > > For the time being, I took out the use of the   code to set up > your indenting, honestly you might want to consider something like > nested unordered lists with a list-style: none; in the CSS. > > I don't see where either i (the index) or J (initialized to 0) get > used in that snippet, and they'd pass out of scope by the end of the > snippet... > > - Jared > > > On Nov 15, 2007, at 11:15 PM, NoSpam wrote: > > > To be totally clear we are seeing this behavior in many places in the > > site so I don't think its just one bad piece of code in one view or > > controller. Very weird. > > > > but here is the code chunk: > > > > <% > > @categories.each_with_index {|category, i| > > depth = (category.depth == nil) ? 0 : category.depth > > j = 0 > > %> > > > > <% (depth).times do %>   <% end %> > > <% if depth == 0 %> > > <%= category.name%> > > <% else %> > > <%= link_to category.name, :controller => :ads, :action > > => :new, :category_id => category.id %> > > <% end %> > > > > > > <% } %> > > > > and here is the page that looks normal for most: > > > > http://raleigh.ohsohandy.com/categories/list > > > > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > >> Hmmm... is there some conditional code around the link_to? For it not > >> to be rendered at all, maybe ERB is not getting to it. > >> > >> -TJ > >> > >> On Nov 15, 2007 11:01 PM, NoSpam wrote: > >>> Just for a sanity check I tried purposely setting category.name to > >>> nil and > >>> the link_to method will still generate a link using the relative > >>> url as the > >>> anchor text. > >>> > >>> > >>> > >>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > >>> Any chance category.name is sometimes nil..? > >>> > >>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > >>>> We have an app that has been live for several months now and a few > >>>> users have emailed to say that they don't understand how to > >>>> navigate > >>>> some parts of the sites because they don't see any links. At > >>>> first I > >>>> dismissed it as user error but later discovered that there is a > >>>> serious problem. I was able to get a couple of the users to > >>>> send me > >>>> screenshots and HTML source and sure enough the links are > >>>> completely > >>>> missing. I don't think its a browser issue because I've tested with > >>>> many versions of browser and the source code shows that the HTML is > >>>> all present on the page *except* for the HTML that should be > >>>> generated > >>>> by: > >>>> > >>>> <%= link_to category.name , :controller => :ads, :action > >>>> => :new, :category_id => category.id %> > >>>> > >>>> I'm completely boggled by this one. I don't even see this behavior > >>>> when I'm logged in as that user. Has anyone experienced issues > >>>> with > >>>> link_to not rendering anything? > >>>> _______________________________________________ > >>>> raleigh-rb-members mailing list > >>>> raleigh-rb-members at rubyforge.org > >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >>>> > >>> > >>> _______________________________________________ > >>> raleigh-rb-members mailing list > >>> raleigh-rb-members at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >>> > >>> _______________________________________________ > >>> raleigh-rb-members mailing list > >>> raleigh-rb-members at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > >>> > >> _______________________________________________ > >> raleigh-rb-members mailing list > >> raleigh-rb-members at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From robert.horvick at gmail.com Fri Nov 16 10:39:02 2007 From: robert.horvick at gmail.com (Robert Horvick) Date: Fri, 16 Nov 2007 10:39:02 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> Message-ID: Another place to look - If there is an exception or malformed html involved, routing/rewriting might also be involved. On Nov 16, 2007 8:45 AM, Chris Garrett wrote: > Quite a puzzler! > > Looking at the source for link_to, I don't see how it could not render > without generating an exception. > > Some ideas: > > Have you modified or overridden link_to in any of your helpers or extensions? > Is there any Javascript that might be removing the link from your DOM? > Did the browser snippet you sent come from "view source" and not from > Firebug? (Firebug sometimes strips out malformed HTML) > > > > > On Nov 16, 2007 12:36 AM, Jared Haworth wrote: > > This is going to be kind of off the wall, but I think some of the > > problem might have to do with the scope of local variables... > > > > Can you simplify the code to look like this? > > > > <% @categories.each do |category| -%> > > > > > > <% if category.depth.nil? -%> > > <%= category.name%> > > <% else -%> > > <%= link_to category.name, :controller => :ads, :action > > => :new, :category_id => category.id %> > > <% end -%> > > > > > > <% end -%> > > > > For the time being, I took out the use of the   code to set up > > your indenting, honestly you might want to consider something like > > nested unordered lists with a list-style: none; in the CSS. > > > > I don't see where either i (the index) or J (initialized to 0) get > > used in that snippet, and they'd pass out of scope by the end of the > > snippet... > > > > - Jared > > > > > > On Nov 15, 2007, at 11:15 PM, NoSpam wrote: > > > > > To be totally clear we are seeing this behavior in many places in the > > > site so I don't think its just one bad piece of code in one view or > > > controller. Very weird. > > > > > > but here is the code chunk: > > > > > > <% > > > @categories.each_with_index {|category, i| > > > depth = (category.depth == nil) ? 0 : category.depth > > > j = 0 > > > %> > > > > > > <% (depth).times do %>   <% end %> > > > <% if depth == 0 %> > > > <%= category.name%> > > > <% else %> > > > <%= link_to category.name, :controller => :ads, :action > > > => :new, :category_id => category.id %> > > > <% end %> > > > > > > > > > <% } %> > > > > > > and here is the page that looks normal for most: > > > > > > http://raleigh.ohsohandy.com/categories/list > > > > > > > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > > > >> Hmmm... is there some conditional code around the link_to? For it not > > >> to be rendered at all, maybe ERB is not getting to it. > > >> > > >> -TJ > > >> > > >> On Nov 15, 2007 11:01 PM, NoSpam wrote: > > >>> Just for a sanity check I tried purposely setting category.name to > > >>> nil and > > >>> the link_to method will still generate a link using the relative > > >>> url as the > > >>> anchor text. > > >>> > > >>> > > >>> > > >>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > > >>> Any chance category.name is sometimes nil..? > > >>> > > >>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > > >>>> We have an app that has been live for several months now and a few > > >>>> users have emailed to say that they don't understand how to > > >>>> navigate > > >>>> some parts of the sites because they don't see any links. At > > >>>> first I > > >>>> dismissed it as user error but later discovered that there is a > > >>>> serious problem. I was able to get a couple of the users to > > >>>> send me > > >>>> screenshots and HTML source and sure enough the links are > > >>>> completely > > >>>> missing. I don't think its a browser issue because I've tested with > > >>>> many versions of browser and the source code shows that the HTML is > > >>>> all present on the page *except* for the HTML that should be > > >>>> generated > > >>>> by: > > >>>> > > >>>> <%= link_to category.name , :controller => :ads, :action > > >>>> => :new, :category_id => category.id %> > > >>>> > > >>>> I'm completely boggled by this one. I don't even see this behavior > > >>>> when I'm logged in as that user. Has anyone experienced issues > > >>>> with > > >>>> link_to not rendering anything? > > >>>> _______________________________________________ > > >>>> raleigh-rb-members mailing list > > >>>> raleigh-rb-members at rubyforge.org > > >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>>> > > >>> > > >>> _______________________________________________ > > >>> raleigh-rb-members mailing list > > >>> raleigh-rb-members at rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>> > > >>> _______________________________________________ > > >>> raleigh-rb-members mailing list > > >>> raleigh-rb-members at rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>> > > >> _______________________________________________ > > >> raleigh-rb-members mailing list > > >> raleigh-rb-members at rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From z at zworkbench.com Fri Nov 16 11:10:05 2007 From: z at zworkbench.com (Chris Garrett) Date: Fri, 16 Nov 2007 11:10:05 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> Message-ID: <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> I just came across something else in my hunting. It could be an ad-blocking plugin. See if the users have some common plugin in their browser that hides ads. Also, see if there is some pattern to the links that are disappearing - e.g. some keyword or URL pattern. On Nov 16, 2007 8:45 AM, Chris Garrett wrote: > Quite a puzzler! > > Looking at the source for link_to, I don't see how it could not render > without generating an exception. > > Some ideas: > > Have you modified or overridden link_to in any of your helpers or extensions? > Is there any Javascript that might be removing the link from your DOM? > Did the browser snippet you sent come from "view source" and not from > Firebug? (Firebug sometimes strips out malformed HTML) > > > > > On Nov 16, 2007 12:36 AM, Jared Haworth wrote: > > This is going to be kind of off the wall, but I think some of the > > problem might have to do with the scope of local variables... > > > > Can you simplify the code to look like this? > > > > <% @categories.each do |category| -%> > > > > > > <% if category.depth.nil? -%> > > <%= category.name%> > > <% else -%> > > <%= link_to category.name, :controller => :ads, :action > > => :new, :category_id => category.id %> > > <% end -%> > > > > > > <% end -%> > > > > For the time being, I took out the use of the   code to set up > > your indenting, honestly you might want to consider something like > > nested unordered lists with a list-style: none; in the CSS. > > > > I don't see where either i (the index) or J (initialized to 0) get > > used in that snippet, and they'd pass out of scope by the end of the > > snippet... > > > > - Jared > > > > > > On Nov 15, 2007, at 11:15 PM, NoSpam wrote: > > > > > To be totally clear we are seeing this behavior in many places in the > > > site so I don't think its just one bad piece of code in one view or > > > controller. Very weird. > > > > > > but here is the code chunk: > > > > > > <% > > > @categories.each_with_index {|category, i| > > > depth = (category.depth == nil) ? 0 : category.depth > > > j = 0 > > > %> > > > > > > <% (depth).times do %>   <% end %> > > > <% if depth == 0 %> > > > <%= category.name%> > > > <% else %> > > > <%= link_to category.name, :controller => :ads, :action > > > => :new, :category_id => category.id %> > > > <% end %> > > > > > > > > > <% } %> > > > > > > and here is the page that looks normal for most: > > > > > > http://raleigh.ohsohandy.com/categories/list > > > > > > > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > > > >> Hmmm... is there some conditional code around the link_to? For it not > > >> to be rendered at all, maybe ERB is not getting to it. > > >> > > >> -TJ > > >> > > >> On Nov 15, 2007 11:01 PM, NoSpam wrote: > > >>> Just for a sanity check I tried purposely setting category.name to > > >>> nil and > > >>> the link_to method will still generate a link using the relative > > >>> url as the > > >>> anchor text. > > >>> > > >>> > > >>> > > >>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > > >>> Any chance category.name is sometimes nil..? > > >>> > > >>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > > >>>> We have an app that has been live for several months now and a few > > >>>> users have emailed to say that they don't understand how to > > >>>> navigate > > >>>> some parts of the sites because they don't see any links. At > > >>>> first I > > >>>> dismissed it as user error but later discovered that there is a > > >>>> serious problem. I was able to get a couple of the users to > > >>>> send me > > >>>> screenshots and HTML source and sure enough the links are > > >>>> completely > > >>>> missing. I don't think its a browser issue because I've tested with > > >>>> many versions of browser and the source code shows that the HTML is > > >>>> all present on the page *except* for the HTML that should be > > >>>> generated > > >>>> by: > > >>>> > > >>>> <%= link_to category.name , :controller => :ads, :action > > >>>> => :new, :category_id => category.id %> > > >>>> > > >>>> I'm completely boggled by this one. I don't even see this behavior > > >>>> when I'm logged in as that user. Has anyone experienced issues > > >>>> with > > >>>> link_to not rendering anything? > > >>>> _______________________________________________ > > >>>> raleigh-rb-members mailing list > > >>>> raleigh-rb-members at rubyforge.org > > >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>>> > > >>> > > >>> _______________________________________________ > > >>> raleigh-rb-members mailing list > > >>> raleigh-rb-members at rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>> > > >>> _______________________________________________ > > >>> raleigh-rb-members mailing list > > >>> raleigh-rb-members at rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > >>> > > >> _______________________________________________ > > >> raleigh-rb-members mailing list > > >> raleigh-rb-members at rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > From redinger at gmail.com Fri Nov 16 11:23:25 2007 From: redinger at gmail.com (Christopher Redinger) Date: Fri, 16 Nov 2007 11:23:25 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> Message-ID: <681d4e8f0711160823s5b676fd1sf8a1d542c252a89d@mail.gmail.com> That's a fantastic suggestion - the offending links do have the word 'ad' in the url... On Nov 16, 2007 11:10 AM, Chris Garrett wrote: > I just came across something else in my hunting. It could be an > ad-blocking plugin. See if the users have some common plugin in their > browser that hides ads. Also, see if there is some pattern to the > links that are disappearing - e.g. some keyword or URL pattern. > > > On Nov 16, 2007 8:45 AM, Chris Garrett wrote: > > > Quite a puzzler! > > > > Looking at the source for link_to, I don't see how it could not render > > without generating an exception. > > > > Some ideas: > > > > Have you modified or overridden link_to in any of your helpers or extensions? > > Is there any Javascript that might be removing the link from your DOM? > > Did the browser snippet you sent come from "view source" and not from > > Firebug? (Firebug sometimes strips out malformed HTML) > > > > > > > > > > On Nov 16, 2007 12:36 AM, Jared Haworth wrote: > > > This is going to be kind of off the wall, but I think some of the > > > problem might have to do with the scope of local variables... > > > > > > Can you simplify the code to look like this? > > > > > > <% @categories.each do |category| -%> > > > > > > > > > <% if category.depth.nil? -%> > > > <%= category.name%> > > > <% else -%> > > > <%= link_to category.name, :controller => :ads, :action > > > => :new, :category_id => category.id %> > > > <% end -%> > > > > > > > > > <% end -%> > > > > > > For the time being, I took out the use of the   code to set up > > > your indenting, honestly you might want to consider something like > > > nested unordered lists with a list-style: none; in the CSS. > > > > > > I don't see where either i (the index) or J (initialized to 0) get > > > used in that snippet, and they'd pass out of scope by the end of the > > > snippet... > > > > > > - Jared > > > > > > > > > On Nov 15, 2007, at 11:15 PM, NoSpam wrote: > > > > > > > To be totally clear we are seeing this behavior in many places in the > > > > site so I don't think its just one bad piece of code in one view or > > > > controller. Very weird. > > > > > > > > but here is the code chunk: > > > > > > > > <% > > > > @categories.each_with_index {|category, i| > > > > depth = (category.depth == nil) ? 0 : category.depth > > > > j = 0 > > > > %> > > > > > > > > <% (depth).times do %>   <% end %> > > > > <% if depth == 0 %> > > > > <%= category.name%> > > > > <% else %> > > > > <%= link_to category.name, :controller => :ads, :action > > > > => :new, :category_id => category.id %> > > > > <% end %> > > > > > > > > > > > > <% } %> > > > > > > > > and here is the page that looks normal for most: > > > > > > > > http://raleigh.ohsohandy.com/categories/list > > > > > > > > > > > > On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: > > > > > > > >> Hmmm... is there some conditional code around the link_to? For it not > > > >> to be rendered at all, maybe ERB is not getting to it. > > > >> > > > >> -TJ > > > >> > > > >> On Nov 15, 2007 11:01 PM, NoSpam wrote: > > > >>> Just for a sanity check I tried purposely setting category.name to > > > >>> nil and > > > >>> the link_to method will still generate a link using the relative > > > >>> url as the > > > >>> anchor text. > > > >>> > > > >>> > > > >>> > > > >>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: > > > >>> Any chance category.name is sometimes nil..? > > > >>> > > > >>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: > > > >>>> We have an app that has been live for several months now and a few > > > >>>> users have emailed to say that they don't understand how to > > > >>>> navigate > > > >>>> some parts of the sites because they don't see any links. At > > > >>>> first I > > > >>>> dismissed it as user error but later discovered that there is a > > > >>>> serious problem. I was able to get a couple of the users to > > > >>>> send me > > > >>>> screenshots and HTML source and sure enough the links are > > > >>>> completely > > > >>>> missing. I don't think its a browser issue because I've tested with > > > >>>> many versions of browser and the source code shows that the HTML is > > > >>>> all present on the page *except* for the HTML that should be > > > >>>> generated > > > >>>> by: > > > >>>> > > > >>>> <%= link_to category.name , :controller => :ads, :action > > > >>>> => :new, :category_id => category.id %> > > > >>>> > > > >>>> I'm completely boggled by this one. I don't even see this behavior > > > >>>> when I'm logged in as that user. Has anyone experienced issues > > > >>>> with > > > >>>> link_to not rendering anything? > > > >>>> _______________________________________________ > > > >>>> raleigh-rb-members mailing list > > > >>>> raleigh-rb-members at rubyforge.org > > > >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > >>>> > > > >>> > > > >>> _______________________________________________ > > > >>> raleigh-rb-members mailing list > > > >>> raleigh-rb-members at rubyforge.org > > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > >>> > > > >>> _______________________________________________ > > > >>> raleigh-rb-members mailing list > > > >>> raleigh-rb-members at rubyforge.org > > > >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > >>> > > > >> _______________________________________________ > > > >> raleigh-rb-members mailing list > > > >> raleigh-rb-members at rubyforge.org > > > >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From nospam at tonyspencer.com Fri Nov 16 12:13:07 2007 From: nospam at tonyspencer.com (NoSpam) Date: Fri, 16 Nov 2007 12:13:07 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> Message-ID: <44D3B023-B329-4B91-806B-7E8DE1352DCD@tonyspencer.com> I think that could be it! I did see in the access logs that this user was on IE 7 and I see that they have add-ons like Firefox now so I'm going to try to catch this guy on the phone so I can ask if he has some sort of ad blocker. Damn this will be frustrating to deal with if these ad blockers are this strict. On Nov 16, 2007, at 11:10 AM, Chris Garrett wrote: > I just came across something else in my hunting. It could be an > ad-blocking plugin. See if the users have some common plugin in their > browser that hides ads. Also, see if there is some pattern to the > links that are disappearing - e.g. some keyword or URL pattern. > > > On Nov 16, 2007 8:45 AM, Chris Garrett wrote: >> Quite a puzzler! >> >> Looking at the source for link_to, I don't see how it could not >> render >> without generating an exception. >> >> Some ideas: >> >> Have you modified or overridden link_to in any of your helpers or >> extensions? >> Is there any Javascript that might be removing the link from your >> DOM? >> Did the browser snippet you sent come from "view source" and not from >> Firebug? (Firebug sometimes strips out malformed HTML) >> >> >> >> >> On Nov 16, 2007 12:36 AM, Jared Haworth >> wrote: >>> This is going to be kind of off the wall, but I think some of the >>> problem might have to do with the scope of local variables... >>> >>> Can you simplify the code to look like this? >>> >>> <% @categories.each do |category| -%> >>> >>> >>> <% if category.depth.nil? -%> >>> <%= category.name%> >>> <% else -%> >>> <%= link_to >>> category.name, :controller => :ads, :action >>> => :new, :category_id => category.id %> >>> <% end -%> >>> >>> >>> <% end -%> >>> >>> For the time being, I took out the use of the   code to set up >>> your indenting, honestly you might want to consider something like >>> nested unordered lists with a list-style: none; in the CSS. >>> >>> I don't see where either i (the index) or J (initialized to 0) get >>> used in that snippet, and they'd pass out of scope by the end of the >>> snippet... >>> >>> - Jared >>> >>> >>> On Nov 15, 2007, at 11:15 PM, NoSpam wrote: >>> >>>> To be totally clear we are seeing this behavior in many places in >>>> the >>>> site so I don't think its just one bad piece of code in one view or >>>> controller. Very weird. >>>> >>>> but here is the code chunk: >>>> >>>> <% >>>> @categories.each_with_index {|category, i| >>>> depth = (category.depth == nil) ? 0 : category.depth >>>> j = 0 >>>> %> >>>> >>>> <% (depth).times do %>   <% >>>> end %> >>>> <% if depth == 0 %> >>>> <%= category.name%>>>> strong> >>>> <% else %> >>>> <%= link_to >>>> category.name, :controller => :ads, :action >>>> => :new, :category_id => category.id %> >>>> <% end %> >>>> >>>> >>>> <% } %> >>>> >>>> and here is the page that looks normal for most: >>>> >>>> http://raleigh.ohsohandy.com/categories/list >>>> >>>> >>>> On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: >>>> >>>>> Hmmm... is there some conditional code around the link_to? For >>>>> it not >>>>> to be rendered at all, maybe ERB is not getting to it. >>>>> >>>>> -TJ >>>>> >>>>> On Nov 15, 2007 11:01 PM, NoSpam wrote: >>>>>> Just for a sanity check I tried purposely setting category.name >>>>>> to >>>>>> nil and >>>>>> the link_to method will still generate a link using the relative >>>>>> url as the >>>>>> anchor text. >>>>>> >>>>>> >>>>>> >>>>>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: >>>>>> Any chance category.name is sometimes nil..? >>>>>> >>>>>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: >>>>>>> We have an app that has been live for several months now and a >>>>>>> few >>>>>>> users have emailed to say that they don't understand how to >>>>>>> navigate >>>>>>> some parts of the sites because they don't see any links. At >>>>>>> first I >>>>>>> dismissed it as user error but later discovered that there is a >>>>>>> serious problem. I was able to get a couple of the users to >>>>>>> send me >>>>>>> screenshots and HTML source and sure enough the links are >>>>>>> completely >>>>>>> missing. I don't think its a browser issue because I've tested >>>>>>> with >>>>>>> many versions of browser and the source code shows that the >>>>>>> HTML is >>>>>>> all present on the page *except* for the HTML that should be >>>>>>> generated >>>>>>> by: >>>>>>> >>>>>>> <%= link_to category.name , :controller => :ads, :action >>>>>>> => :new, :category_id => category.id %> >>>>>>> >>>>>>> I'm completely boggled by this one. I don't even see this >>>>>>> behavior >>>>>>> when I'm logged in as that user. Has anyone experienced issues >>>>>>> with >>>>>>> link_to not rendering anything? >>>>>>> _______________________________________________ >>>>>>> raleigh-rb-members mailing list >>>>>>> raleigh-rb-members at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> raleigh-rb-members mailing list >>>>>> raleigh-rb-members at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>>> >>>>>> _______________________________________________ >>>>>> raleigh-rb-members mailing list >>>>>> raleigh-rb-members at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>>> >>>>> _______________________________________________ >>>>> raleigh-rb-members mailing list >>>>> raleigh-rb-members at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>> >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From lists-jared at nc.rr.com Fri Nov 16 12:43:37 2007 From: lists-jared at nc.rr.com (Jared) Date: Fri, 16 Nov 2007 12:43:37 -0500 Subject: [raleigh.rb] Stumped : link_to not rendering for some users In-Reply-To: <44D3B023-B329-4B91-806B-7E8DE1352DCD@tonyspencer.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> <44D3B023-B329-4B91-806B-7E8DE1352DCD@tonyspencer.com> Message-ID: <85D8AB46-2AE8-4424-A788-DD1951F8069B@nc.rr.com> Could also be a corporate firewall doing the ad blocking Sent from my iPhone On Nov 16, 2007, at 12:13 PM, NoSpam wrote: > I think that could be it! I did see in the access logs that this user > was on IE 7 and I see that they have add-ons like Firefox now so I'm > going to try to catch this guy on the phone so I can ask if he has > some sort of ad blocker. Damn this will be frustrating to deal with > if these ad blockers are this strict. > > > On Nov 16, 2007, at 11:10 AM, Chris Garrett wrote: > >> I just came across something else in my hunting. It could be an >> ad-blocking plugin. See if the users have some common plugin in >> their >> browser that hides ads. Also, see if there is some pattern to the >> links that are disappearing - e.g. some keyword or URL pattern. >> >> >> On Nov 16, 2007 8:45 AM, Chris Garrett wrote: >>> Quite a puzzler! >>> >>> Looking at the source for link_to, I don't see how it could not >>> render >>> without generating an exception. >>> >>> Some ideas: >>> >>> Have you modified or overridden link_to in any of your helpers or >>> extensions? >>> Is there any Javascript that might be removing the link from your >>> DOM? >>> Did the browser snippet you sent come from "view source" and not >>> from >>> Firebug? (Firebug sometimes strips out malformed HTML) >>> >>> >>> >>> >>> On Nov 16, 2007 12:36 AM, Jared Haworth >>> wrote: >>>> This is going to be kind of off the wall, but I think some of the >>>> problem might have to do with the scope of local variables... >>>> >>>> Can you simplify the code to look like this? From jared.haworth at gmail.com Fri Nov 16 12:48:25 2007 From: jared.haworth at gmail.com (Jared Haworth) Date: Fri, 16 Nov 2007 12:48:25 -0500 Subject: [raleigh.rb] Heroku Beta Message-ID: <5CF8AF32-C93A-4AFD-87E7-7AEFD011C33B@gmail.com> I was fortunate enough to get into the Heroku beta test... anyone out there want to skip the waiting list with an invite? Just shoot me an email with the address to which you'd like me to send the invite. So far, I've been very impressed... I managed to bring my no-longer- trademark-infringing Rails Rumble project online in about 10 minutes, with only ActionMailer support not functioning as expected. - Jared -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071116/3bc5ab4c/attachment.bin From robert.horvick at gmail.com Fri Nov 16 12:53:29 2007 From: robert.horvick at gmail.com (Robert Horvick) Date: Fri, 16 Nov 2007 12:53:29 -0500 Subject: [raleigh.rb] Heroku Beta In-Reply-To: <5CF8AF32-C93A-4AFD-87E7-7AEFD011C33B@gmail.com> References: <5CF8AF32-C93A-4AFD-87E7-7AEFD011C33B@gmail.com> Message-ID: I don't mind waiting behind others - but if you find yourself having trouble giving away the invites I'd like to check it out. Thanks. On Nov 16, 2007 12:48 PM, Jared Haworth wrote: > I was fortunate enough to get into the Heroku beta test... anyone out > there want to skip the waiting list with an invite? Just shoot me an > email with the address to which you'd like me to send the invite. > > So far, I've been very impressed... I managed to bring my no-longer- > trademark-infringing Rails Rumble project online in about 10 minutes, > with only ActionMailer support not functioning as expected. > > - Jared > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From tj at stank.us Fri Nov 16 13:01:01 2007 From: tj at stank.us (TJ Stankus) Date: Fri, 16 Nov 2007 13:01:01 -0500 Subject: [raleigh.rb] Heroku Beta In-Reply-To: <5CF8AF32-C93A-4AFD-87E7-7AEFD011C33B@gmail.com> References: <5CF8AF32-C93A-4AFD-87E7-7AEFD011C33B@gmail.com> Message-ID: I signed up and I'm on the waiting list, but I'm impatient, so if you've got an extra invite I'll take one. :) tj at stank.us Thanks, -TJ On Nov 16, 2007 12:48 PM, Jared Haworth wrote: > I was fortunate enough to get into the Heroku beta test... anyone out > there want to skip the waiting list with an invite? Just shoot me an > email with the address to which you'd like me to send the invite. > > So far, I've been very impressed... I managed to bring my no-longer- > trademark-infringing Rails Rumble project online in about 10 minutes, > with only ActionMailer support not functioning as expected. > > - Jared > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From nospam at tonyspencer.com Wed Nov 21 14:20:54 2007 From: nospam at tonyspencer.com (NoSpam) Date: Wed, 21 Nov 2007 14:20:54 -0500 Subject: [raleigh.rb] SOLVED! WAS: Stumped : link_to not rendering for some users In-Reply-To: <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> References: <326F21FF-B54F-4DB9-BE85-2BF313F47923@tonyspencer.com> <748ff3ff0711151456h40243fb7r7f197395df0dd3d@mail.gmail.com> <233C5333-85DD-4316-96EC-563F3E90BEF8@tonyspencer.com> <14555A53-D251-466C-8C23-6240DE5C4368@tonyspencer.com> <8259D690-2BC2-49B5-8B2E-E1D702EC2FF9@gmail.com> <82883b650711160545p3068daf1wa9e3ef4d35795a0@mail.gmail.com> <82883b650711160810x961ea87i50ab1428a86296c5@mail.gmail.com> Message-ID: <3863DC71-1432-46DA-A923-B0B876F2AE44@tonyspencer.com> Mega BIG THANK YOU to Chris Garrett for this suggestion. I never would have thought of this. Mystery solved: http://www.tonyspencer.com/2007/11/21/ad-blockers-can-ruin-your-legitimate-web-app-that-isnt-even-serving-ads/ On Nov 16, 2007, at 11:10 AM, Chris Garrett wrote: > I just came across something else in my hunting. It could be an > ad-blocking plugin. See if the users have some common plugin in their > browser that hides ads. Also, see if there is some pattern to the > links that are disappearing - e.g. some keyword or URL pattern. > > > On Nov 16, 2007 8:45 AM, Chris Garrett wrote: >> Quite a puzzler! >> >> Looking at the source for link_to, I don't see how it could not >> render >> without generating an exception. >> >> Some ideas: >> >> Have you modified or overridden link_to in any of your helpers or >> extensions? >> Is there any Javascript that might be removing the link from your >> DOM? >> Did the browser snippet you sent come from "view source" and not from >> Firebug? (Firebug sometimes strips out malformed HTML) >> >> >> >> >> On Nov 16, 2007 12:36 AM, Jared Haworth >> wrote: >>> This is going to be kind of off the wall, but I think some of the >>> problem might have to do with the scope of local variables... >>> >>> Can you simplify the code to look like this? >>> >>> <% @categories.each do |category| -%> >>> >>> >>> <% if category.depth.nil? -%> >>> <%= category.name%> >>> <% else -%> >>> <%= link_to >>> category.name, :controller => :ads, :action >>> => :new, :category_id => category.id %> >>> <% end -%> >>> >>> >>> <% end -%> >>> >>> For the time being, I took out the use of the   code to set up >>> your indenting, honestly you might want to consider something like >>> nested unordered lists with a list-style: none; in the CSS. >>> >>> I don't see where either i (the index) or J (initialized to 0) get >>> used in that snippet, and they'd pass out of scope by the end of the >>> snippet... >>> >>> - Jared >>> >>> >>> On Nov 15, 2007, at 11:15 PM, NoSpam wrote: >>> >>>> To be totally clear we are seeing this behavior in many places in >>>> the >>>> site so I don't think its just one bad piece of code in one view or >>>> controller. Very weird. >>>> >>>> but here is the code chunk: >>>> >>>> <% >>>> @categories.each_with_index {|category, i| >>>> depth = (category.depth == nil) ? 0 : category.depth >>>> j = 0 >>>> %> >>>> >>>> <% (depth).times do %>   <% >>>> end %> >>>> <% if depth == 0 %> >>>> <%= category.name%>>>> strong> >>>> <% else %> >>>> <%= link_to >>>> category.name, :controller => :ads, :action >>>> => :new, :category_id => category.id %> >>>> <% end %> >>>> >>>> >>>> <% } %> >>>> >>>> and here is the page that looks normal for most: >>>> >>>> http://raleigh.ohsohandy.com/categories/list >>>> >>>> >>>> On Nov 15, 2007, at 11:05 PM, TJ Stankus wrote: >>>> >>>>> Hmmm... is there some conditional code around the link_to? For >>>>> it not >>>>> to be rendered at all, maybe ERB is not getting to it. >>>>> >>>>> -TJ >>>>> >>>>> On Nov 15, 2007 11:01 PM, NoSpam wrote: >>>>>> Just for a sanity check I tried purposely setting category.name >>>>>> to >>>>>> nil and >>>>>> the link_to method will still generate a link using the relative >>>>>> url as the >>>>>> anchor text. >>>>>> >>>>>> >>>>>> >>>>>> On Nov 15, 2007, at 5:56 PM, Ryan Daigle wrote: >>>>>> Any chance category.name is sometimes nil..? >>>>>> >>>>>> On Nov 15, 2007 4:06 PM, NoSpam < nospam at tonyspencer.com> wrote: >>>>>>> We have an app that has been live for several months now and a >>>>>>> few >>>>>>> users have emailed to say that they don't understand how to >>>>>>> navigate >>>>>>> some parts of the sites because they don't see any links. At >>>>>>> first I >>>>>>> dismissed it as user error but later discovered that there is a >>>>>>> serious problem. I was able to get a couple of the users to >>>>>>> send me >>>>>>> screenshots and HTML source and sure enough the links are >>>>>>> completely >>>>>>> missing. I don't think its a browser issue because I've tested >>>>>>> with >>>>>>> many versions of browser and the source code shows that the >>>>>>> HTML is >>>>>>> all present on the page *except* for the HTML that should be >>>>>>> generated >>>>>>> by: >>>>>>> >>>>>>> <%= link_to category.name , :controller => :ads, :action >>>>>>> => :new, :category_id => category.id %> >>>>>>> >>>>>>> I'm completely boggled by this one. I don't even see this >>>>>>> behavior >>>>>>> when I'm logged in as that user. Has anyone experienced issues >>>>>>> with >>>>>>> link_to not rendering anything? >>>>>>> _______________________________________________ >>>>>>> raleigh-rb-members mailing list >>>>>>> raleigh-rb-members at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> raleigh-rb-members mailing list >>>>>> raleigh-rb-members at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>>> >>>>>> _______________________________________________ >>>>>> raleigh-rb-members mailing list >>>>>> raleigh-rb-members at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>>> >>>>> _______________________________________________ >>>>> raleigh-rb-members mailing list >>>>> raleigh-rb-members at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>> >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From nospam at tonyspencer.com Fri Nov 23 13:30:31 2007 From: nospam at tonyspencer.com (NoSpam) Date: Fri, 23 Nov 2007 13:30:31 -0500 Subject: [raleigh.rb] Tiki bug tracking invites? Message-ID: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> Does anyone have any invites they could spare for Tiki? http://tikiden.com/ Lighthouse is really getting on my nerves. Buggy and getting buggier by the day. From nathaniel at talbott.ws Sat Nov 24 09:56:54 2007 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Sat, 24 Nov 2007 09:56:54 -0500 Subject: [raleigh.rb] Tiki bug tracking invites? In-Reply-To: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> References: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> Message-ID: <4ce336a20711240656x2c32ef54n5eb968b2df269f5f@mail.gmail.com> On 11/23/07, NoSpam wrote: > Does anyone have any invites they could spare for Tiki? > http://tikiden.com/ > > Lighthouse is really getting on my nerves. Buggy and getting buggier > by the day. No, but thanks for pointing it out... I've added myself to the invite list, as it looks very much like what Lighthouse promised to be. -- Nathaniel Talbott <:((>< From rsanheim at gmail.com Sat Nov 24 12:00:09 2007 From: rsanheim at gmail.com (Rob Sanheim) Date: Sat, 24 Nov 2007 12:00:09 -0500 Subject: [raleigh.rb] Tiki bug tracking invites? In-Reply-To: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> References: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> Message-ID: On Nov 23, 2007 1:30 PM, NoSpam wrote: > Does anyone have any invites they could spare for Tiki? > http://tikiden.com/ > > Lighthouse is really getting on my nerves. Buggy and getting buggier > by the day. What sort of issues have you seen with Lighthouse? - Rob From javery at infozerk.com Sun Nov 25 00:19:32 2007 From: javery at infozerk.com (James Avery) Date: Sun, 25 Nov 2007 00:19:32 -0500 Subject: [raleigh.rb] Rails Deployment Help Message-ID: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> I am trying to deploy my first rails app to a dedicated CentOS server and running into some problems (mostly due to me being in Windows land for years and having no clue what I am doing). Is there anyone out there who would like to help me out? I have no problem paying for a couple hours of someone's time to help me out. Thanks, James Avery -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071125/9170efa6/attachment.html From lists-jared at nc.rr.com Sun Nov 25 11:27:52 2007 From: lists-jared at nc.rr.com (Jared) Date: Sun, 25 Nov 2007 11:27:52 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> Message-ID: Is this a development or production deployment? Sent from my iPhone On Nov 25, 2007, at 12:19 AM, "James Avery" wrote: > I am trying to deploy my first rails app to a dedicated CentOS > server and running into some problems (mostly due to me being in > Windows land for years and having no clue what I am doing). Is there > anyone out there who would like to help me out? I have no problem > paying for a couple hours of someone's time to help me out. > > Thanks, > James Avery > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From javery at infozerk.com Sun Nov 25 12:09:51 2007 From: javery at infozerk.com (James Avery) Date: Sun, 25 Nov 2007 12:09:51 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> Message-ID: <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> Production deployment. I think I am pretty close, I followed the instructions here but Mongrel is not responding to requests (and nothing in the log) http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS -James On 11/25/07, Jared wrote: > > Is this a development or production deployment? > > > > Sent from my iPhone > > On Nov 25, 2007, at 12:19 AM, "James Avery" wrote: > > > I am trying to deploy my first rails app to a dedicated CentOS > > server and running into some problems (mostly due to me being in > > Windows land for years and having no clue what I am doing). Is there > > anyone out there who would like to help me out? I have no problem > > paying for a couple hours of someone's time to help me out. > > > > Thanks, > > James Avery > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071125/dd99c83d/attachment.html From lists-jared at nc.rr.com Sun Nov 25 14:16:34 2007 From: lists-jared at nc.rr.com (Jared) Date: Sun, 25 Nov 2007 14:16:34 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> Message-ID: <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> I was never able to get the Apache config up and running cleanly. When I switched over to Nginx, it was easy. http://agileartisans.com/main/blog/31 You might want to consider that nginx as an Apache replacement. But if you stick w/Apache, I'd use the Apache mod_proxy_balancer http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html instead of running apache through pen. But I never got it working either... :) Have you verified that pen is set up and configured properly? Here are my directions on how to do that from last year http://www.jaredrichardson.net/blog/2006/11/21/#installing-pound Once you know Pound is working, then move forward w/the Apache configuration. If Mongrel isn't responding to requests, is Pen? Off the top of my head, I'd be sure that Pen is set up to accept connections from localhost. I suspect that as people get back from Thanksgiving and start catching up on their email you're going to have a few Apache gurus chime in and solve the problem though. Jared http://6sa.com http://AgileArtisans.com On Nov 25, 2007, at 12:09 PM, James Avery wrote: > Production deployment. I think I am pretty close, I followed the > instructions here but Mongrel is not responding to requests (and > nothing in the log) > > http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS > > -James > > On 11/25/07, Jared wrote: > Is this a development or production deployment? > > > > Sent from my iPhone > > On Nov 25, 2007, at 12:19 AM, "James Avery" > wrote: > > > I am trying to deploy my first rails app to a dedicated CentOS > > server and running into some problems (mostly due to me being in > > Windows land for years and having no clue what I am doing). Is there > > anyone out there who would like to help me out? I have no problem > > paying for a couple hours of someone's time to help me out. > > > > Thanks, > > James Avery > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071125/fbe4ceff/attachment.html From javery at infozerk.com Sun Nov 25 16:53:30 2007 From: javery at infozerk.com (James Avery) Date: Sun, 25 Nov 2007 16:53:30 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> Message-ID: <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> To make sure my rails installation was OK I was trying to just start mongrel on port 81 and hit it directly but the connection times out. I am going to contact my hosting company, perhaps non-traditional ports are being blocked by their firewall. mod_proxy_balancer looks very promising, I will give that a shot if I can these other parts working. Thanks, James On 11/25/07, Jared wrote: > > I was never able to get the Apache config up and running cleanly. When I > switched over to Nginx, it was easy. > http://agileartisans.com/main/blog/31 > > You might want to consider that nginx as an Apache replacement. > > But if you stick w/Apache, I'd use the Apache mod_proxy_balancer > http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html instead of > running apache through pen. But I never got it working either... :) > > Have you verified that pen is set up and configured properly? Here are my > directions on how to do that from last year > > http://www.jaredrichardson.net/blog/2006/11/21/#installing-pound > > Once you know Pound is working, then move forward w/the Apache > configuration. If Mongrel isn't responding to requests, is Pen? Off the top > of my head, I'd be sure that Pen is set up to accept connections from > localhost. > > I suspect that as people get back from Thanksgiving and start catching up > on their email you're going to have a few Apache gurus chime in and solve > the problem though. > > Jared > http://6sa.com > http://AgileArtisans.com > > On Nov 25, 2007, at 12:09 PM, James Avery wrote: > > Production deployment. I think I am pretty close, I followed the > instructions here but Mongrel is not responding to requests (and nothing in > the log) > > http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS > > -James > > On 11/25/07, Jared wrote: > > > > Is this a development or production deployment? > > > > > > > > Sent from my iPhone > > > > On Nov 25, 2007, at 12:19 AM, "James Avery" wrote: > > > > > I am trying to deploy my first rails app to a dedicated CentOS > > > server and running into some problems (mostly due to me being in > > > Windows land for years and having no clue what I am doing). Is there > > > anyone out there who would like to help me out? I have no problem > > > paying for a couple hours of someone's time to help me out. > > > > > > Thanks, > > > James Avery > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071125/c0b8b9e6/attachment-0001.html From javery at infozerk.com Sun Nov 25 17:38:04 2007 From: javery at infozerk.com (James Avery) Date: Sun, 25 Nov 2007 17:38:04 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> Message-ID: <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> Ok, I got mongrel working. (had to add port 81 to iptables) I am going to keep going and try setting up mod_proxy_balancer, but I am still interested if anyone would like to help out. -James On 11/25/07, James Avery wrote: > > To make sure my rails installation was OK I was trying to just start > mongrel on port 81 and hit it directly but the connection times out. I am > going to contact my hosting company, perhaps non-traditional ports are being > blocked by their firewall. > > mod_proxy_balancer looks very promising, I will give that a shot if I can > these other parts working. > > Thanks, > James > > On 11/25/07, Jared wrote: > > > > I was never able to get the Apache config up and running cleanly. When I > > switched over to Nginx, it was easy. > > http://agileartisans.com/main/blog/31 > > > > You might want to consider that nginx as an Apache replacement. > > > > But if you stick w/Apache, I'd use the Apache mod_proxy_balancer http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html > > instead of running apache through pen. But I never got it working > > either... :) > > > > Have you verified that pen is set up and configured properly? Here are > > my directions on how to do that from last year > > > > http://www.jaredrichardson.net/blog/2006/11/21/#installing-pound > > > > Once you know Pound is working, then move forward w/the Apache > > configuration. If Mongrel isn't responding to requests, is Pen? Off the top > > of my head, I'd be sure that Pen is set up to accept connections from > > localhost. > > > > I suspect that as people get back from Thanksgiving and start catching > > up on their email you're going to have a few Apache gurus chime in and solve > > the problem though. > > > > Jared > > http://6sa.com > > http://AgileArtisans.com > > > > On Nov 25, 2007, at 12:09 PM, James Avery wrote: > > > > Production deployment. I think I am pretty close, I followed the > > instructions here but Mongrel is not responding to requests (and nothing in > > the log) > > > > http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS > > > > -James > > > > On 11/25/07, Jared wrote: > > > > > > Is this a development or production deployment? > > > > > > > > > > > > Sent from my iPhone > > > > > > On Nov 25, 2007, at 12:19 AM, "James Avery" > > > wrote: > > > > > > > I am trying to deploy my first rails app to a dedicated CentOS > > > > server and running into some problems (mostly due to me being in > > > > Windows land for years and having no clue what I am doing). Is there > > > > anyone out there who would like to help me out? I have no problem > > > > paying for a couple hours of someone's time to help me out. > > > > > > > > Thanks, > > > > James Avery > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071125/73304648/attachment.html From nospam at tonyspencer.com Sun Nov 25 19:07:37 2007 From: nospam at tonyspencer.com (NoSpam) Date: Sun, 25 Nov 2007 19:07:37 -0500 Subject: [raleigh.rb] Tiki bug tracking invites? In-Reply-To: References: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> Message-ID: <10190117-F3C7-4C26-BF63-74077C28F6EC@tonyspencer.com> Lots of nginx errors, blank white pages after posting comments to tickets, and default ticket bins mysteriously losing their ability to be default. On Nov 24, 2007, at 12:00 PM, Rob Sanheim wrote: > On Nov 23, 2007 1:30 PM, NoSpam wrote: >> Does anyone have any invites they could spare for Tiki? >> http://tikiden.com/ >> >> Lighthouse is really getting on my nerves. Buggy and getting buggier >> by the day. > > What sort of issues have you seen with Lighthouse? > > - Rob > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From randomutterings at gmail.com Mon Nov 26 14:10:33 2007 From: randomutterings at gmail.com (Chris Barnes) Date: Mon, 26 Nov 2007 14:10:33 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> Message-ID: <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> I am running mod_proxy_balancer on apache 2.2 with mongrel. If you have any specific questions, I would be happy to help. On Nov 25, 2007 5:38 PM, James Avery wrote: > Ok, I got mongrel working. (had to add port 81 to iptables) I am going to > keep going and try setting up mod_proxy_balancer, but I am still interested > if anyone would like to help out. > > -James > > > > On 11/25/07, James Avery wrote: > > > > To make sure my rails installation was OK I was trying to just start > > mongrel on port 81 and hit it directly but the connection times out. I am > > going to contact my hosting company, perhaps non-traditional ports are being > > blocked by their firewall. > > > > mod_proxy_balancer looks very promising, I will give that a shot if I > > can these other parts working. > > > > Thanks, > > James > > > > On 11/25/07, Jared wrote: > > > > > > I was never able to get the Apache config up and running cleanly. > > > When I switched over to Nginx, it was easy. > > > http://agileartisans.com/main/blog/31 > > > > > > You might want to consider that nginx as an Apache replacement. > > > > > > But if you stick w/Apache, I'd use the Apache mod_proxy_balancer http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html > > > instead of running apache through pen. But I never got it working > > > either... :) > > > > > > Have you verified that pen is set up and configured properly? Here are > > > my directions on how to do that from last year > > > > > > http://www.jaredrichardson.net/blog/2006/11/21/#installing-pound > > > > > > Once you know Pound is working, then move forward w/the Apache > > > configuration. If Mongrel isn't responding to requests, is Pen? Off the top > > > of my head, I'd be sure that Pen is set up to accept connections from > > > localhost. > > > > > > I suspect that as people get back from Thanksgiving and start catching > > > up on their email you're going to have a few Apache gurus chime in and solve > > > the problem though. > > > > > > Jared > > > http://6sa.com > > > http://AgileArtisans.com > > > > > > On Nov 25, 2007, at 12:09 PM, James Avery wrote: > > > > > > Production deployment. I think I am pretty close, I followed the > > > instructions here but Mongrel is not responding to requests (and nothing in > > > the log) > > > > > > http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS > > > > > > -James > > > > > > On 11/25/07, Jared wrote: > > > > > > > > Is this a development or production deployment? > > > > > > > > > > > > > > > > Sent from my iPhone > > > > > > > > On Nov 25, 2007, at 12:19 AM, "James Avery" > > > > wrote: > > > > > > > > > I am trying to deploy my first rails app to a dedicated CentOS > > > > > server and running into some problems (mostly due to me being in > > > > > Windows land for years and having no clue what I am doing). Is > > > > there > > > > > anyone out there who would like to help me out? I have no problem > > > > > paying for a couple hours of someone's time to help me out. > > > > > > > > > > Thanks, > > > > > James Avery > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > _______________________________________________ > > > raleigh-rb-members mailing list > > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071126/fc3edd27/attachment.html From fmedlin at gmail.com Mon Nov 26 14:31:06 2007 From: fmedlin at gmail.com (Fred Medlin) Date: Mon, 26 Nov 2007 14:31:06 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> Message-ID: <579ca95c0711261131i5a200b0etff58d4176e04b1c8@mail.gmail.com> This is the most amazing local list I've ever encountered. Just had to get my +1 in for the past few threads... On Nov 26, 2007 2:10 PM, Chris Barnes wrote: > I am running mod_proxy_balancer on apache 2.2 with mongrel. If you have > any specific questions, I would be happy to help. > > > On Nov 25, 2007 5:38 PM, James Avery < javery at infozerk.com> wrote: > > > Ok, I got mongrel working. (had to add port 81 to iptables) I am going > > to keep going and try setting up mod_proxy_balancer, but I am still > > interested if anyone would like to help out. > > > > -James > > > > > > > > On 11/25/07, James Avery wrote: > > > > > > To make sure my rails installation was OK I was trying to just start > > > mongrel on port 81 and hit it directly but the connection times out. I am > > > going to contact my hosting company, perhaps non-traditional ports are being > > > blocked by their firewall. > > > > > > mod_proxy_balancer looks very promising, I will give that a shot if I > > > can these other parts working. > > > > > > Thanks, > > > James > > > > > > On 11/25/07, Jared wrote: > > > > > > > > I was never able to get the Apache config up and running cleanly. > > > > When I switched over to Nginx, it was easy. > > > > http://agileartisans.com/main/blog/31 > > > > > > > > You might want to consider that nginx as an Apache replacement. > > > > > > > > But if you stick w/Apache, I'd use the Apache mod_proxy_balancer http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html > > > > instead of running apache through pen. But I never got it working > > > > either... :) > > > > > > > > Have you verified that pen is set up and configured properly? Here > > > > are my directions on how to do that from last year > > > > > > > > http://www.jaredrichardson.net/blog/2006/11/21/#installing-pound > > > > > > > > Once you know Pound is working, then move forward w/the Apache > > > > configuration. If Mongrel isn't responding to requests, is Pen? Off the top > > > > of my head, I'd be sure that Pen is set up to accept connections from > > > > localhost. > > > > > > > > I suspect that as people get back from Thanksgiving and start > > > > catching up on their email you're going to have a few Apache gurus chime in > > > > and solve the problem though. > > > > > > > > Jared > > > > http://6sa.com > > > > http://AgileArtisans.com > > > > > > > > On Nov 25, 2007, at 12:09 PM, James Avery wrote: > > > > > > > > Production deployment. I think I am pretty close, I followed the > > > > instructions here but Mongrel is not responding to requests (and nothing in > > > > the log) > > > > > > > > http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS > > > > > > > > -James > > > > > > > > On 11/25/07, Jared wrote: > > > > > > > > > > Is this a development or production deployment? > > > > > > > > > > > > > > > > > > > > Sent from my iPhone > > > > > > > > > > On Nov 25, 2007, at 12:19 AM, "James Avery" > > > > > wrote: > > > > > > > > > > > I am trying to deploy my first rails app to a dedicated CentOS > > > > > > server and running into some problems (mostly due to me being in > > > > > > > > > > > Windows land for years and having no clue what I am doing). Is > > > > > there > > > > > > anyone out there who would like to help me out? I have no > > > > > problem > > > > > > paying for a couple hours of someone's time to help me out. > > > > > > > > > > > > Thanks, > > > > > > James Avery > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071126/cce24934/attachment-0001.html From rhooker at cisco.com Tue Nov 27 13:19:34 2007 From: rhooker at cisco.com (Raymond Hooker (rhooker)) Date: Tue, 27 Nov 2007 13:19:34 -0500 Subject: [raleigh.rb] rjs and redirect_to In-Reply-To: <579ca95c0711261131i5a200b0etff58d4176e04b1c8@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com><20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com><69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com><20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com><20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com><52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> <579ca95c0711261131i5a200b0etff58d4176e04b1c8@mail.gmail.com> Message-ID: <848DB51F3E58E146B08D188F803DCB6F055B366D@xmb-rtp-20c.amer.cisco.com> I have both a specific question on the topic and a "how would I know" without search for various examples, splicing it together until it works. ... Before I go on, I do have some of the great references including "Rails for Java Developers" and "Agile Web Development with Rails". The other aspect is that we do have a moving target as Rails evolves. Anyhow, we have the following code: def create @review = Review.create!(params[:review]) respond_to do 'format' format.html { redirect_to product_path(@review.product_id) } format.js end end Much is obvious. Even the use of respond to seems reasonable in that we are responding to an AJAX call. What is add is the format.htm and the redirect_to. It is a litte confusing in that we are updating a div/ partial. In the older Rails way you simply did a render such as: render :action => "list_customers", :collection=>@email_templates = @server.email_templates.find(:all, :order =>"email_template_id") In that case the action points to the partial to be rendered with a collection to use. Render makes sense but "redirect_to" does not make semantic sense to me, nor is the particular syntax obvious. It does not apparently match any other options I see in the "Agile Web Development...". Based on some experimentation in my own code, it looks like it needs the data passed in html format along with js so that the js can operated on the returned data. Perhaps the only odd thing to me is "product_path"... since I don't have the project, I can just brute force look up to see what name the code is referring to... Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071127/6da387fc/attachment.html From ryan.daigle at gmail.com Tue Nov 27 13:32:10 2007 From: ryan.daigle at gmail.com (Ryan Daigle) Date: Tue, 27 Nov 2007 13:32:10 -0500 Subject: [raleigh.rb] rjs and redirect_to In-Reply-To: <848DB51F3E58E146B08D188F803DCB6F055B366D@xmb-rtp-20c.amer.cisco.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> <579ca95c0711261131i5a200b0etff58d4176e04b1c8@mail.gmail.com> <848DB51F3E58E146B08D188F803DCB6F055B366D@xmb-rtp-20c.amer.cisco.com> Message-ID: <748ff3ff0711271032p31bdd730u4fbf75e3bd25982c@mail.gmail.com> I'm sure there's a question buried in here somewhere - but I can't seem to find it. Mind spelling out your question/point of confusion for the dense ones amongst us (namely me)? Thanks. -Ryan On Nov 27, 2007 1:19 PM, Raymond Hooker (rhooker) wrote: > I have both a specific question on the topic and a "how would I know" > without search for various examples, splicing it together until it works. > ... Before I go on, I do have some of the great references including "Rails > for Java Developers" and "Agile Web Development with Rails". The other > aspect is that we do have a moving target as Rails evolves. > > Anyhow, we have the following code: > > def create > @review = Review.create!(params[:review]) > respond_to do 'format' > format.html { redirect_to product_path(@review.product_id) } > format.js > end > end > > Much is obvious. Even the use of respond to seems reasonable in that we > are responding to an AJAX call. What is add is the format.htm and the > redirect_to. It is a litte confusing in that we are updating a div/ > partial. In the older Rails way you simply did a render such as: render > :action => "list_customers", :collection=>@email_templates = @ > server.email_templates.find(:all, :order =>"email_template_id") > In that case the action points to the partial to be rendered with a > collection to use. Render makes sense but "redirect_to" does not make > semantic sense to me, nor is the particular syntax obvious. It does not > apparently match any other options I see in the "Agile Web Development...". > > Based on some experimentation in my own code, it looks like it needs the > data passed in html format along with js so that the js can operated on the > returned data. Perhaps the only odd thing to me is "product_path"... since > I don't have the project, I can just brute force look up to see what name > the code is referring to... > > Ray > > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071127/6fd9d13d/attachment.html From mark.bennett.mail at gmail.com Tue Nov 27 13:42:53 2007 From: mark.bennett.mail at gmail.com (Mark Bennett) Date: Tue, 27 Nov 2007 13:42:53 -0500 Subject: [raleigh.rb] rjs and redirect_to In-Reply-To: <848DB51F3E58E146B08D188F803DCB6F055B366D@xmb-rtp-20c.amer.cisco.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> <579ca95c0711261131i5a200b0etff58d4176e04b1c8@mail.gmail.com> <848DB51F3E58E146B08D188F803DCB6F055B366D@xmb-rtp-20c.amer.cisco.com> Message-ID: Ray, respond_to is like a case statement. If the request is plain old html then it will execute the block. In your case it is a redirect to the show page of the product that just got reviewed. If the request comes from an javascript ajaxy style request then the default action is to render the ' create.rjs' template (since there is nothing following format.js). You can search on 'rails RJS' to learn more. To learn more about where the product_path method comes from you should read more about restful resources. Mark On Nov 27, 2007 1:19 PM, Raymond Hooker (rhooker) wrote: > I have both a specific question on the topic and a "how would I know" > without search for various examples, splicing it together until it works. > ... Before I go on, I do have some of the great references including "Rails > for Java Developers" and "Agile Web Development with Rails". The other > aspect is that we do have a moving target as Rails evolves. > > Anyhow, we have the following code: > > def create > @review = Review.create!(params[:review]) > respond_to do 'format' > format.html { redirect_to product_path(@review.product_id) } > format.js > end > end > > Much is obvious. Even the use of respond to seems reasonable in that we > are responding to an AJAX call. What is add is the format.htm and the > redirect_to. It is a litte confusing in that we are updating a div/ > partial. In the older Rails way you simply did a render such as: render > :action => "list_customers", :collection=>@email_templates = @ > server.email_templates.find(:all, :order =>"email_template_id") > In that case the action points to the partial to be rendered with a > collection to use. Render makes sense but "redirect_to" does not make > semantic sense to me, nor is the particular syntax obvious. It does not > apparently match any other options I see in the "Agile Web Development...". > > Based on some experimentation in my own code, it looks like it needs the > data passed in html format along with js so that the js can operated on the > returned data. Perhaps the only odd thing to me is "product_path"... since > I don't have the project, I can just brute force look up to see what name > the code is referring to... > > Ray > > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071127/b371a7d7/attachment.html From rhooker at cisco.com Tue Nov 27 13:57:50 2007 From: rhooker at cisco.com (Raymond Hooker (rhooker)) Date: Tue, 27 Nov 2007 13:57:50 -0500 Subject: [raleigh.rb] rjs and redirect_to In-Reply-To: References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com><20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com><69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com><20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com><20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com><52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com><579ca95c0711261131i5a200b0etff58d4176e04b1c8@mail.gmail.com><848DB51F3E58E146B08D188F803DCB6F055B366D@xmb-rtp-20c.amer.cisco.com> Message-ID: <848DB51F3E58E146B08D188F803DCB6F055B3697@xmb-rtp-20c.amer.cisco.com> Cool. product_path is what confused me... I will take a look at rest. I had some videocasts that I planned to review on it... Thanks, Ray ________________________________ From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Mark Bennett Sent: Tuesday, November 27, 2007 1:43 PM To: The mailing list of raleigh.rb Subject: Re: [raleigh.rb] rjs and redirect_to Ray, respond_to is like a case statement. If the request is plain old html then it will execute the block. In your case it is a redirect to the show page of the product that just got reviewed. If the request comes from an javascript ajaxy style request then the default action is to render the ' create.rjs' template (since there is nothing following format.js). You can search on 'rails RJS' to learn more. To learn more about where the product_path method comes from you should read more about restful resources. Mark On Nov 27, 2007 1:19 PM, Raymond Hooker (rhooker) wrote: I have both a specific question on the topic and a "how would I know" without search for various examples, splicing it together until it works. ... Before I go on, I do have some of the great references including "Rails for Java Developers" and "Agile Web Development with Rails". The other aspect is that we do have a moving target as Rails evolves. Anyhow, we have the following code: def create @review = Review.create!(params[:review]) respond_to do 'format' format.html { redirect_to product_path(@review.product_id) } format.js end end Much is obvious. Even the use of respond to seems reasonable in that we are responding to an AJAX call. What is add is the format.htm and the redirect_to. It is a litte confusing in that we are updating a div/ partial. In the older Rails way you simply did a render such as: render :action => "list_customers", :collection=>@email_templates = @server.email_templates.find(:all, :order =>"email_template_id") In that case the action points to the partial to be rendered with a collection to use. Render makes sense but "redirect_to" does not make semantic sense to me, nor is the particular syntax obvious. It does not apparently match any other options I see in the "Agile Web Development...". Based on some experimentation in my own code, it looks like it needs the data passed in html format along with js so that the js can operated on the returned data. Perhaps the only odd thing to me is "product_path"... since I don't have the project, I can just brute force look up to see what name the code is referring to... Ray _______________________________________________ raleigh-rb-members mailing list raleigh-rb-members at rubyforge.org http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071127/8d6a631e/attachment-0001.html From javery at infozerk.com Tue Nov 27 19:37:21 2007 From: javery at infozerk.com (James Avery) Date: Tue, 27 Nov 2007 19:37:21 -0500 Subject: [raleigh.rb] Rails Deployment Help In-Reply-To: <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> References: <20af90580711242119m756e6a11r726b0a97aa3f2b69@mail.gmail.com> <20af90580711250909t422039d3rd3529f3a5feb8ed3@mail.gmail.com> <69326261-EDB8-4B7A-BB4B-6310590403BB@nc.rr.com> <20af90580711251353i4592dc8bseb243dd42e50934d@mail.gmail.com> <20af90580711251438p28647634g9aa0a6e7d4293245@mail.gmail.com> <52c57d810711261110i3e3c2c93s6319aa8dc18994be@mail.gmail.com> Message-ID: <20af90580711271637y4adf71c4mf6caf8ec034be3c0@mail.gmail.com> Well, I can't believe it but I actually got it all up and working. I have Apache handling the static files and a mongrel cluster for all the rails work. I used a mix of the instructions here: http://blog.innerewut.de/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel and here: http://www.paolocorti.net/public/wordpress/index.php/2007/11/08/ruby-on-rails-applications-with-mongrel-clusters-and-apache-on-ubuntu/ Jared, Thanks for the tip on mod_proxy_balancer, works like a charm. -James On 11/26/07, Chris Barnes wrote: > > I am running mod_proxy_balancer on apache 2.2 with mongrel. If you have > any specific questions, I would be happy to help. > > On Nov 25, 2007 5:38 PM, James Avery < javery at infozerk.com> wrote: > > > Ok, I got mongrel working. (had to add port 81 to iptables) I am going > > to keep going and try setting up mod_proxy_balancer, but I am still > > interested if anyone would like to help out. > > > > -James > > > > > > > > On 11/25/07, James Avery wrote: > > > > > > To make sure my rails installation was OK I was trying to just start > > > mongrel on port 81 and hit it directly but the connection times out. I am > > > going to contact my hosting company, perhaps non-traditional ports are being > > > blocked by their firewall. > > > > > > mod_proxy_balancer looks very promising, I will give that a shot if I > > > can these other parts working. > > > > > > Thanks, > > > James > > > > > > On 11/25/07, Jared wrote: > > > > > > > > I was never able to get the Apache config up and running cleanly. > > > > When I switched over to Nginx, it was easy. > > > > http://agileartisans.com/main/blog/31 > > > > > > > > You might want to consider that nginx as an Apache replacement. > > > > > > > > But if you stick w/Apache, I'd use the Apache mod_proxy_balancer http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html > > > > instead of running apache through pen. But I never got it working > > > > either... :) > > > > > > > > Have you verified that pen is set up and configured properly? Here > > > > are my directions on how to do that from last year > > > > > > > > http://www.jaredrichardson.net/blog/2006/11/21/#installing-pound > > > > > > > > Once you know Pound is working, then move forward w/the Apache > > > > configuration. If Mongrel isn't responding to requests, is Pen? Off the top > > > > of my head, I'd be sure that Pen is set up to accept connections from > > > > localhost. > > > > > > > > I suspect that as people get back from Thanksgiving and start > > > > catching up on their email you're going to have a few Apache gurus chime in > > > > and solve the problem though. > > > > > > > > Jared > > > > http://6sa.com > > > > http://AgileArtisans.com > > > > > > > > On Nov 25, 2007, at 12:09 PM, James Avery wrote: > > > > > > > > Production deployment. I think I am pretty close, I followed the > > > > instructions here but Mongrel is not responding to requests (and nothing in > > > > the log) > > > > > > > > http://wiki.rubyonrails.com/rails/pages/HowToDeployToCentosVPS > > > > > > > > -James > > > > > > > > On 11/25/07, Jared wrote: > > > > > > > > > > Is this a development or production deployment? > > > > > > > > > > > > > > > > > > > > Sent from my iPhone > > > > > > > > > > On Nov 25, 2007, at 12:19 AM, "James Avery" > > > > > wrote: > > > > > > > > > > > I am trying to deploy my first rails app to a dedicated CentOS > > > > > > server and running into some problems (mostly due to me being in > > > > > > > > > > > Windows land for years and having no clue what I am doing). Is > > > > > there > > > > > > anyone out there who would like to help me out? I have no > > > > > problem > > > > > > paying for a couple hours of someone's time to help me out. > > > > > > > > > > > > Thanks, > > > > > > James Avery > > > > > > _______________________________________________ > > > > > > raleigh-rb-members mailing list > > > > > > raleigh-rb-members at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > > > > > raleigh-rb-members mailing list > > > > > raleigh-rb-members at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > > > _______________________________________________ > > > > raleigh-rb-members mailing list > > > > raleigh-rb-members at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > > > > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071127/584ba8d9/attachment.html From rick.denatale at gmail.com Tue Nov 27 19:42:37 2007 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 27 Nov 2007 19:42:37 -0500 Subject: [raleigh.rb] Werewolves on the afternoon of December 6th Message-ID: I'm setting up a werewolf session on December 6th, up in Wake Forest (about 10 miles north of US-1 and I-540 for anyone who might equate Wake Forest University with the Town of Wake Forest). If you are interested, please let me know directly at rick.denatale at gmail.com -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From rick.denatale at gmail.com Tue Nov 27 21:18:41 2007 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 27 Nov 2007 21:18:41 -0500 Subject: [raleigh.rb] Werewolves on the afternoon of December 6th In-Reply-To: References: Message-ID: Okay, I've gotten two questions about it. So. Werewolf is a game which has become quite popular in the Ruby community. It's a kind of psycho/social bluffing/cooperation game which is known by some other names as well, most commonly Mafia. http://en.wikipedia.org/wiki/Mafia_Game On Nov 27, 2007 7:42 PM, Rick DeNatale wrote: > I'm setting up a werewolf session on December 6th, up in Wake Forest > (about 10 miles north of US-1 and I-540 for anyone who might equate > Wake Forest University with the Town of Wake Forest). > > If you are interested, please let me know directly at rick.denatale at gmail.com > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From robert.horvick at gmail.com Tue Nov 27 21:21:59 2007 From: robert.horvick at gmail.com (Robert Horvick) Date: Tue, 27 Nov 2007 21:21:59 -0500 Subject: [raleigh.rb] Werewolves on the afternoon of December 6th In-Reply-To: References: Message-ID: Are you planning this for after the hack night meeting or will this conflict? Thanks. Robert Horvick On Nov 27, 2007 7:42 PM, Rick DeNatale wrote: > I'm setting up a werewolf session on December 6th, up in Wake Forest > (about 10 miles north of US-1 and I-540 for anyone who might equate > Wake Forest University with the Town of Wake Forest). > > If you are interested, please let me know directly at > rick.denatale at gmail.com > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071127/f6622d51/attachment.html From rick.denatale at gmail.com Tue Nov 27 21:25:58 2007 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 27 Nov 2007 21:25:58 -0500 Subject: [raleigh.rb] December 8th, not 6th (was )Re: Werewolves on the afternoon of December 6th) Message-ID: Oops. I had a typo in the title. This will be on Saturday December 8th, not the 6th. So no conflict with the raleigh.rb hackfest. On Nov 27, 2007 7:42 PM, Rick DeNatale wrote: > I'm setting up a werewolf session on December 6th, up in Wake Forest > (about 10 miles north of US-1 and I-540 for anyone who might equate > Wake Forest University with the Town of Wake Forest). > > If you are interested, please let me know directly at rick.denatale at gmail.com > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From aaronthyde at yahoo.com Wed Nov 28 07:37:46 2007 From: aaronthyde at yahoo.com (Aaron H) Date: Wed, 28 Nov 2007 04:37:46 -0800 (PST) Subject: [raleigh.rb] "rescue_action_locally" broken Message-ID: <356488.48538.qm@web30107.mail.mud.yahoo.com> I want to know if anyone has experienced RoR not recognizing "rescue_action_locally" and what you did to resolve it. Basically, I use it to trap unknown actions and records not found in one of my controllers. It was working fine until recently. I haven't added any new plugins or code that should have affected. I'm running in a shared setup and I believe it's due to an upgrade. By the way, I do have the Exceptions Notifier plugin installed but not activated in my controllers. I've commented it out in my environmnents.rb and in the controller where I was using it. In theory, it should not affect anything. My Rails version is 1.2.3. I would appreciate an suggestions. Aaron ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ From robert.horvick at gmail.com Wed Nov 28 09:41:46 2007 From: robert.horvick at gmail.com (Robert Horvick) Date: Wed, 28 Nov 2007 09:41:46 -0500 Subject: [raleigh.rb] "rescue_action_locally" broken In-Reply-To: <356488.48538.qm@web30107.mail.mud.yahoo.com> References: <356488.48538.qm@web30107.mail.mud.yahoo.com> Message-ID: Can you give more info about what "not recognizing" and "until recently" mean? What version of Exceptions Notifications is installed? Is it still listed in config.plugins? When did you upgrade rails to 1.2.3? Is this your issue: http://whynotwiki.com/Rails_/_Exception_handling#How_to_fix_this_behavior_in_Rails_1.2.3 If this is not your problem - can you describe what you are seeing, when you are seeing it (http 404? 500? both?) and a little more about your environment? Robert. On Nov 28, 2007 7:37 AM, Aaron H wrote: > I want to know if anyone has experienced RoR not > recognizing "rescue_action_locally" and what you did > to resolve it. > > Basically, I use it to trap unknown actions and > records not found in one of my controllers. It was > working fine until recently. I haven't added any new > plugins or code that should have affected. I'm running > in a shared setup and I believe it's due to an > upgrade. > > By the way, I do have the Exceptions Notifier plugin > installed but not activated in my controllers. I've > commented it out in my environmnents.rb and in the > controller where I was using it. In theory, it should > not affect anything. > > My Rails version is 1.2.3. I would appreciate an > suggestions. > > Aaron > > > > ____________________________________________________________________________________ > Be a better sports nut! Let your teams follow you > with Yahoo Mobile. Try it now. > http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071128/d7070f2e/attachment.html From aaronthyde at yahoo.com Wed Nov 28 13:49:13 2007 From: aaronthyde at yahoo.com (Aaron H) Date: Wed, 28 Nov 2007 10:49:13 -0800 (PST) Subject: [raleigh.rb] "rescue_action_locally" broken In-Reply-To: Message-ID: <438055.38042.qm@web30109.mail.mud.yahoo.com> I've had some time poke around and what is happening is that I'm getting an error message saying the constant "UnknownAction" is not defined. Rescue_action_locally(exception) is getting called but the value of "exception", which should be ActionController::Unknown, is not coming through. So, it appears that there is something outside of my app that is not working correctly. By the way, Robert thanks for the link. I'm using Exception_Notifier and my code is like the article, which inclines me to think its a problem with my RoR installation. Aaron I used logger.info to see what was coming through --- Robert Horvick wrote: > Can you give more info about what "not recognizing" > and "until recently" > mean? > > What version of Exceptions Notifications is > installed? > Is it still listed in config.plugins? > When did you upgrade rails to 1.2.3? > > Is this your issue: > http://whynotwiki.com/Rails_/_Exception_handling#How_to_fix_this_behavior_in_Rails_1.2.3 > > If this is not your problem - can you describe what > you are seeing, when you > are seeing it (http 404? 500? both?) and a little > more about your > environment? > > Robert. > On Nov 28, 2007 7:37 AM, Aaron H > wrote: > > > I want to know if anyone has experienced RoR not > > recognizing "rescue_action_locally" and what you > did > > to resolve it. > > > > Basically, I use it to trap unknown actions and > > records not found in one of my controllers. It was > > working fine until recently. I haven't added any > new > > plugins or code that should have affected. I'm > running > > in a shared setup and I believe it's due to an > > upgrade. > > > > By the way, I do have the Exceptions Notifier > plugin > > installed but not activated in my controllers. > I've > > commented it out in my environmnents.rb and in the > > controller where I was using it. In theory, it > should > > not affect anything. > > > > My Rails version is 1.2.3. I would appreciate an > > suggestions. > > > > Aaron > > > > > > > > > ____________________________________________________________________________________ > > Be a better sports nut! Let your teams follow you > > with Yahoo Mobile. Try it now. > > > http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members ____________________________________________________________________________________ Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs From aaronthyde at yahoo.com Thu Nov 29 07:23:32 2007 From: aaronthyde at yahoo.com (Aaron H) Date: Thu, 29 Nov 2007 04:23:32 -0800 (PST) Subject: [raleigh.rb] "rescue_action_locally" broken closure In-Reply-To: Message-ID: <305092.34284.qm@web30109.mail.mud.yahoo.com> Okay, I thought I would bring closure to my problem. Something happened on my production machine but I don't know what. Maybe this will help someone else who is a newbie like myself. The first thing that I noticed when testing my app with different versions of Rails, 1.2.2 - 1.2.6, I would get a different token for "exception" when an error was raised. The standard should be something like ActionController::RecordNotFound or ActionController::ActionUnknown. Sometimes I would see "constant Unknown not defined." I won't go through all of the permutations that I saw but something was consistent, the words "action" and "record" were in the token. So I converted the token to a string and check for the presence of those words. def rescue_action_in_public(exception) error = exception.to_s.downcase if error.include? "action" or error.include? "record" render :partial => "error_404", :layout => true, :status => "404 Not Found" else render :partial => "error_500", :layout => true, :status => "500 Error" end end It may be a hack but it's working for now until I can solve the token problem. In my development environment, I was using "rescue_action_locally" in a controller to trap errors specifically for that controller, which worked fine. For some reason that no longer worked in production. I changed from "rescue_action_locally" to "rescue_action_in_public" and it worked. I was under the impression that "rescue_action_in_public" should be used in application.rb and "rescue_action_locally" should be used to trap errors in a particular controller. Just as a sidebar, I have Exception Notifiable installed but it never worked for me. I never received an email notifying me of an error but email works with other parts of my application. Aaron --- Robert Horvick wrote: > Can you give more info about what "not recognizing" > and "until recently" > mean? > > What version of Exceptions Notifications is > installed? > Is it still listed in config.plugins? > When did you upgrade rails to 1.2.3? > > Is this your issue: > http://whynotwiki.com/Rails_/_Exception_handling#How_to_fix_this_behavior_in_Rails_1.2.3 > > If this is not your problem - can you describe what > you are seeing, when you > are seeing it (http 404? 500? both?) and a little > more about your > environment? > > Robert. > On Nov 28, 2007 7:37 AM, Aaron H > wrote: > > > I want to know if anyone has experienced RoR not > > recognizing "rescue_action_locally" and what you > did > > to resolve it. > > > > Basically, I use it to trap unknown actions and > > records not found in one of my controllers. It was > > working fine until recently. I haven't added any > new > > plugins or code that should have affected. I'm > running > > in a shared setup and I believe it's due to an > > upgrade. > > > > By the way, I do have the Exceptions Notifier > plugin > > installed but not activated in my controllers. > I've > > commented it out in my environmnents.rb and in the > > controller where I was using it. In theory, it > should > > not affect anything. > > > > My Rails version is 1.2.3. I would appreciate an > > suggestions. > > > > Aaron > > > > > > > > > ____________________________________________________________________________________ > > Be a better sports nut! Let your teams follow you > > with Yahoo Mobile. Try it now. > > > http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ From nospam at tonyspencer.com Fri Nov 30 16:36:45 2007 From: nospam at tonyspencer.com (Tony Spencer) Date: Fri, 30 Nov 2007 16:36:45 -0500 Subject: [raleigh.rb] Tiki bug tracking invites? In-Reply-To: <4ce336a20711240656x2c32ef54n5eb968b2df269f5f@mail.gmail.com> References: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> <4ce336a20711240656x2c32ef54n5eb968b2df269f5f@mail.gmail.com> Message-ID: <5A2B53F5-07A1-4B95-A1CE-CFF6497D7382@tonyspencer.com> Well I got an invite and I'm sad to say I don't like Tiki at all. It has way too many problems, and makes it cumbersome to enter tickets and unfortunately the Basecamp integration isn't really that useful as it just creates to-do's for each of your tickets. And they didn't even let me try it for free so now I have to see if I can beg for my $20 back. WHAT IS 37 SIGNALS WAITING FOR? I'd gladly pay double the current Basecamp price for some simple issue tracking. All they'd have to do is add statuses, commenting, and user assignment to To-Do's. Arrgghh. I'll just have to continue to put up with Lighthouse. It just threw another 500 exception on me when creating a new ticket. On Nov 24, 2007, at 9:56 AM, Nathaniel Talbott wrote: > On 11/23/07, NoSpam wrote: > >> Does anyone have any invites they could spare for Tiki? >> http://tikiden.com/ >> >> Lighthouse is really getting on my nerves. Buggy and getting buggier >> by the day. > > No, but thanks for pointing it out... I've added myself to the invite > list, as it looks very much like what Lighthouse promised to be. > > > -- > Nathaniel Talbott > <:((>< > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From jared.haworth at gmail.com Fri Nov 30 16:49:34 2007 From: jared.haworth at gmail.com (Jared Haworth) Date: Fri, 30 Nov 2007 16:49:34 -0500 Subject: [raleigh.rb] Tiki bug tracking invites? In-Reply-To: <5A2B53F5-07A1-4B95-A1CE-CFF6497D7382@tonyspencer.com> References: <29DAFAF4-C27D-4CA7-95CC-07825B25645D@tonyspencer.com> <4ce336a20711240656x2c32ef54n5eb968b2df269f5f@mail.gmail.com> <5A2B53F5-07A1-4B95-A1CE-CFF6497D7382@tonyspencer.com> Message-ID: In all (mock) seriousness, why would 37 Signals add issue tracking to Basecamp when the right course for them would be to extract some of basecamp's functionality, tie it into a new issue tracking application, and sell it as yet another 37 Signals app? After all, that's how Highrise came to be :) On Nov 30, 2007, at 4:36 PM, Tony Spencer wrote: > Well I got an invite and I'm sad to say I don't like Tiki at all. It > has way too many problems, and makes it cumbersome to enter tickets > and unfortunately the Basecamp integration isn't really that useful as > it just creates to-do's for each of your tickets. And they didn't even > let me try it for free so now I have to see if I can beg for my $20 > back. > > WHAT IS 37 SIGNALS WAITING FOR? I'd gladly pay double the current > Basecamp price for some simple issue tracking. All they'd have to do > is add statuses, commenting, and user assignment to To-Do's. > > Arrgghh. > > I'll just have to continue to put up with Lighthouse. It just threw > another 500 exception on me when creating a new ticket. > > On Nov 24, 2007, at 9:56 AM, Nathaniel Talbott wrote: > >> On 11/23/07, NoSpam wrote: >> >>> Does anyone have any invites they could spare for Tiki? >>> http://tikiden.com/ >>> >>> Lighthouse is really getting on my nerves. Buggy and getting >>> buggier >>> by the day. >> >> No, but thanks for pointing it out... I've added myself to the invite >> list, as it looks very much like what Lighthouse promised to be. >> >> >> -- >> Nathaniel Talbott >> <:((>< >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/raleigh-rb-members/attachments/20071130/58b9d938/attachment.bin