this isn’t making any sense to me. as you can see the partial is only 8
lines… not 10. i’m used to getting errors on lines that aren’t there
when i forget to put and ‘end’ tag somewhere… but that’s not the
problem here. can anyone tell me what i’m doing wrong. maybe i’m just
too tired.
thanks for the suggestion… it didn’t work. do you think it might be a
bug? it seems that nothing works. even if my partial is completely
empty, it still throws an error.
this error isn’t making any sense to me. thanks for your help…
ok i fixed it but you’ll never guess how… my partial was named
_report_form.rhtml… when i changed it to _reportform.rhtml… now it
works! should this be reported somewhere? i’ve never heard that you
can have underscores in the partial name. let me know what you guys
think.
No, there is something else going on here. I use underscores in many
partial names.
-Bill
Jon D. wrote:
this error isn’t making any sense to me. thanks for your help…
ok i fixed it but you’ll never guess how… my partial was named
_report_form.rhtml… when i changed it to _reportform.rhtml… now it
works! should this be reported somewhere? i’ve never heard that you
can have underscores in the partial name. let me know what you guys
think.
That appears to be the error from the browser. What is in your logs? I
suspect there is more info waiting in development.log that will help you
on this.
-Bill
Jon D. wrote:
script/…/config/…/app/views/assets/_report_form.rhtml:-2: syntax
error, unexpected ‘=’, expecting kEND
= local_assigns[:]
^
script/…/config/…/app/views/assets/_report_form.rhtml:-2: syntax
error, unexpected ‘]’, expecting tSTRING_CONTENT or tSTRING_DBEG or
tSTRING_DVAR or tSTRING_END
this error isn’t making any sense to me. thanks for your help…
I’ve used partials like _list_header.rhtml in the past, so it seems a
bit odd to see what you say. I haven’t followed your thread so far but
how are you calling it from your view code?
i have also used underscores in my partials. maybe it’s because of the
local variable assignment? i’m mostly dumbfounded by this. thanks
again for your time. jon
this error isn’t making any sense to me. thanks for your help…
ok i fixed it but you’ll never guess how… my partial was named
_report_form.rhtml… when i changed it to _reportform.rhtml… now it
works! should this be reported somewhere? i’ve never heard that you
can have underscores in the partial name. let me know what you guys
think.
I’ve used partials like _list_header.rhtml in the past, so it seems a
bit odd to see what you say. I haven’t followed your thread so far but
how are you calling it from your view code?
i changed the partial name to ‘reportform.rhtml’, that’s how i got it to
work we were just trying to find out why it didn’t work before,
when i did have the underscore in there. man this is getting confusing.
Actually, can I see the reportform.rhtml view? I think that is where the
error is coming from. Did you look at development.log to get the full
error and stack trace? If you paste that in, it would be a huge help.
-Bill
Jon D. wrote:
local variable assignment? i’m mostly dumbfounded by this. thanks
again for your time. jon
–
Sincerely,
William P.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.