Re: Error in View....

Ashit Vora
Sat, 21 Jun 2008 07:21:59 -0000

Still the same error...
May I know, Can the extension of View file be *.html.erb* ???
I heard that it should be .*rhtml.* But in my case rails auto generated it
with extension *.html.erb*

On Sat, Jun 21, 2008 at 12:16 AM, bala kishore pulicherla <
balumca21-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> put
> <%end%>
>
> On Sat, Jun 21, 2008 at 12:34 PM, Ashit Vora
<a.k.vora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>>
>> Hello,
>> ''m new to RoR.
>> I was facing one prob and ''m unable to figure out my mistake.
can
>> anyone pls help me?
>>
>> the error is
>>
>>
********************************************************************************************************
>>  SyntaxError in Pages#index
>>
>> Showing pages/index.html.erb where line #4 raised:
>>
>> compile error
>> C:/rails/railscoder/app/views/pages/index.html.erb:4: dynamic constant
>> assignment
>> _erbout.concat "\t";  @pages.each do |Page| ; _erbout.concat
"\n"
>>                                           ^
>>
>> Extracted source (around line #4):
>>
>> 1: All Pages
>> 2:
>> 3:
>> 4:      <% @pages.each do |Page| %>
>> 5:
>> 6:              <%= Page.permalink %> :<%= Page.title s%>
>> 7:
>>
>> Trace of template inclusion: /pages/index.html.erb
>>
>> RAILS_ROOT: C:/rails/railscoder
>>
>>
>>
********************************************************************************************************
>>
>> One thing that confuses me alot is.... does view file have
>> extension .rhtml or .html.erb ???
>>
>>
>> Any help is highly appreciated.
>> Thanks
>> -Ashit Vora
>>
>>
>
> >
>


--
Ashit Vora



Yahoo: vora_ashit
Gtalk: a.k.vora
Skype: ashit.vora

"It is futile to be overconfident about your ability. Exercise caution
wherever necessary."