Hi, if i have to file on views. let say views/accounts/index.html.erb views/accounts/indehx.html.haml how to make rails search for haml first then erb not the other way around.. thanks -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 3 November 2010 12:55, my <ahmy135-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > if i have to file on views. let say > > views/accounts/index.html.erb > views/accounts/indehx.html.hamlIs that a typo? Are they both supposed to be index?> > how to make rails search for haml first then erb not the other way > around..Just delete the one you do not want. Why do you want to keep both of them? Colin -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 3, 8:25 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 3 November 2010 12:55, my <ahmy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > if i have to file on views. let say > > > views/accounts/index.html.erb > > views/accounts/indehx.html.haml > > Is that a typo? Are they both supposed to be index? >yes sorry that is a typo. it should be views/accounts/index.html.haml> > > > how to make rails search for haml first then erb not the other way > > around.. > > Just delete the one you do not want. Why do you want to keep both of them? > > ColinI want to start translating all view template to haml, but i need all other view to work. when there is both file, i want the haml to be default without deleting the erb thanks -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 3 November 2010 14:12, my <ahmy135-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I want to start translating all view template to haml, but i need all > other view to work. > when there is both file, i want the haml to be default without > deleting the erbWhy do you want to no delete it? You have source control? you can roll-back if you need to. Or if you are one of the crazy few who likes to code without a seat belt on (no source code control...), then rename the .erb to .erb.old -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 3, 9:25 pm, Michael Pavling <pavl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Why do you want to no delete it? You have source control? you can > roll-back if you need to. Or if you are one of the crazy few who likes > to code without a seat belt on (no source code control...), then > rename the .erb to .erb.oldyes i have use git. Just thought that there is some options to make haml as default template engine instead of erb -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.