|miraculo||just started a new project and it says: "undefined local variable or method `new_categories_path'"|
created with scaffold_resource so it should work I think...
my rails install is good otherwise... at least other apps work...
can anybody suggest anything?
|miraculo||:) no I guess not...|
nobody seen this before?
otherwise I might have to reinstall rails I guess...
|werdnativ||is that a stock scaffold?|
|miraculo||u huh. just started a new project and it did the same thing...|
|werdnativ||I'm thinking it should be new_category_path|
use a singular name when you generate your resource.
yeah, that was it...
although this worked: <%= link_to 'Show', categories_path(categories) %>
anyway the singular worked for that method anyway
|werdnativ||categories = list of many categories... category_path(1) = link to a single category... new_category_path = you're making one new one.|
|miraculo||ok regenerated that other link becomes: <%= link_to 'Show', category_path(category) %>|
and it still works...
|miraculo||looks like it doesn't matter for that one|
|Milardovich||i want to migrate mi web (www.milardovich.com.ar) made on php to ruby on rails|
|rellik||milardovich, you should hire me.. I'll do it for you|
I'm pretty expensive though
and of course I don't speak that language
which could be a problem
|Grahamt1||Sound like your getting cheeper.|
|rellik||ARG there has got to be a 1.2-working 12-hour time select|
|giant_sloar||Anyone else having problems running the object_transactions plugin? I'm getting this: http://pastie.caboo.se/49307|
|Grahamt1||Last time I got an error message like that it was a path problem...|
|giant_sloar||You mean in my require statement?|
|Grahamt1||In your custom_require.rb line 27 is looking for something (a file) somewhere (transaction/simple) and it isn't there...|
|wackimonki||i'd like to share code between a model and a controller|
how can i do this?
|werdnativ||how do you mean share code?|
|wackimonki||i'd like to create a function that both can access|
but now thinking about that, that's bad compartilisation(?)
|werdnativ||yeah... what does the function relate to?|
|werdnativ||probably belongs as a class method for your model?|