Yes?
Sorry, I don't understand the question. Is there a bug?
--
Aaron Patterson
http://tenderlovemaking.com/
Can you show a code example?
Can you show a code example?
--
Aaron Patterson
http://tenderlovemaking.com/
Cool, thanks!
Shouldn't you consider posting in the user's mailing list first? It's
more likely that you'll get better advices there than here...
After you get used to Rails, if you still have questions about how Rails
should do things, then your questions will be better discussed here.
Cheers,
Rodrigo.
How do to X with rails -> rubyonrails-talk
How rails does X -> rails-core
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-co...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
>
>
Given the code below, it seems you're just starting using Rails and you
still don't understand Rails basic concepts.Shouldn't you consider posting in the user's mailing list first? It's
more likely that you'll get better advices there than here...After you get used to Rails, if you still have questions about how Rails
should do things, then your questions will be better discussed here.Cheers,
Rodrigo.
This looks to be a variant of issue #2692:
https://github.com/rails/rails/pull/2692
although the patch in that instance wouldn't fix this bug, as the detection heuristic will guess that image_page is a root element to be removed.
It appears that the problem is that remove_root doesn't have any awareness of the context in which it's operating - really, we should only be removing the appropriately-named root element (if it exists).
--Matt Jones
Rodrigo has made a very important point about which list to use.How do to X with rails -> rubyonrails-talk
How rails does X -> rails-core
This looks to be a variant of issue #2692:
https://github.com/rails/rails/pull/2692
although the patch in that instance wouldn't fix this bug, as the detection heuristic will guess that image_page is a root element to be removed.
It appears that the problem is that remove_root doesn't have any awareness of the context in which it's operating - really, we should only be removing the appropriately-named root element (if it exists).
--Matt Jones
On Saturday, March 3, 2012 9:23:16 AM UTC-5, Rodrigo Rosenfeld Rosas wrote:Given the code below, it seems you're just starting using Rails and you
still don't understand Rails basic concepts.Shouldn't you consider posting in the user's mailing list first? It's
more likely that you'll get better advices there than here...After you get used to Rails, if you still have questions about how Rails
should do things, then your questions will be better discussed here.Cheers,
Rodrigo.
Are you referring to my complete and utter lack of syntactic sugar?
It almost seems as though I deliberately avoid the stuff completely :)
This might be the wrong forum, but I'm sure that ActiveResource team are happy that I proofed the issue.
As an expert core member Rodrigo, do you know the alternative to this line?
Dir.glob("#{Rails.root}/app/models/*.rb").sort.each { |file| require_dependency file }
regards, Kristian