Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4574
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | Gregory Ma <g.marcilhacy@gmail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: Problem with the classify method from active support |
| Date | Sun, 15 May 2011 12:20:46 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 19 |
| Message-ID | <2ac6521c0d18a66aed4551417ef684bf@ruby-forum.com> (permalink) |
| References | <ae14b0c42fc1ab56ad2032593d980c96@ruby-forum.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1305480243 72097 65.111.164.187 (15 May 2011 17:24:03 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Sun, 15 May 2011 17:24:03 +0000 (UTC) |
| In-Reply-To | <ae14b0c42fc1ab56ad2032593d980c96@ruby-forum.com> |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 383286 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <2ac6521c0d18a66aed4551417ef684bf@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:4574 |
Show key headers only | View raw
Thanks again I have been able to fix this but I am encountering a new issue. If works fine with ActiveSupport 2.3.x mais but it doesn't work 3.0.x Here is the line: >> board = :ruby_forum >> klass = board.respond_to?(:classify) ? board.classify : ActiveSupport::Inflector::classify(board) >> NoMethodError: undefined method `classify' for ActiveSupport::Inflector:Module This line doesn't work in version 3 because it evaluates the last condition, and the classify method doesn't exist in version 3. What trick could I use? -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar | Unroll thread
Problem with the classify method from active support Gregory Ma <g.marcilhacy@gmail.com> - 2011-05-15 09:35 -0500 Re: Problem with the classify method from active support Xavier Noria <fxn@hashref.com> - 2011-05-15 10:57 -0500 Re: Problem with the classify method from active support Gregory Ma <g.marcilhacy@gmail.com> - 2011-05-15 11:47 -0500 Re: Problem with the classify method from active support Gregory Ma <g.marcilhacy@gmail.com> - 2011-05-15 12:20 -0500
csiph-web