Colin,

Yeah – but it should be possible to use your own conventions if that's what
you want, even though the recommendation is to use the built-in conventions.

Regarding plugins and copying, Rails has configured paths, like
config.javascripts_dir and config.stylesheets_dir.

/Lasse


2010/3/27 Colin Law <clan...@googlemail.com>

> On 26 March 2010 22:36, Lasse Bunk <lasseb...@gmail.com> wrote:
> > It's hardcoded as you say. Being able to configure these paths would
> really
> > be a good addition to the core if you were to write this as a new
> feature.
> >
> > /Lasse
> >
> > 2010/3/26 cult hero <binarypala...@gmail.com>
> >>
> >> Is there some way to override the paths for images, stylesheets and
> >> javascripts without monkey patching? (Rails 3 Beta)
>
> Do some plugins copy scripts and css to those folders?  If so do they
> ask rails where to put them or just assume the conventional names?
>
> I am not convinced it would be a good thing to use alternative names
> just for aesthetic reasons.  Rails is all about convention after all.
> One does not like all the conventions but it is better to stick to
> them when possible.
>
> Colin
>
> >>
> >> I just looked at asset_tag_helper.rb and I see this:
> >>
> >> def stylesheet_path(source)
> >>  compute_public_path(source, 'stylesheets', 'css')
> >> end
> >>
> >> Unless I'm missing something in the way the code works, that seems
> >> hard coded to me. Am I stuck using the directories /images, /
> >> stylesheets and /javascripts instead of something more concise like /
> >> img, /css and /js if I opt to use the helpers?
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Ruby on Rails: Talk" group.
> >> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/rubyonrails-talk?hl=en.
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-t...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/rubyonrails-talk?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to