Weird production issue

2 views
Skip to first unread message

Paul Singh

unread,
Nov 9, 2009, 6:28:09 PM11/9/09
to Haml
While using HAML in development mode, everything appears to be fine.
Oddly enough, when I switch over to production mode, I notice that my
form_for seems to repeat itself 3 or 4 times... have any thoughts on
what I might be doing wrong?

Chris Eppstein

unread,
Nov 9, 2009, 6:33:51 PM11/9/09
to ha...@googlegroups.com
You're probably writing "= form_for" instead of "- form_for"

Paul Singh

unread,
Nov 9, 2009, 6:36:15 PM11/9/09
to Haml
Unfortunately, I don't think that's the problem -- I'm definitely
using "- form_for" here.

What's particularly odd is that the form appears to compile just fine
in development... once I switch to production, it just seems to be
repeating the form at random places inside the original form. If
you're interested, I can privately send you a link to the production
area so you can take a look for yourself.

On Nov 9, 6:33 pm, Chris Eppstein <ch...@eppsteins.net> wrote:
> You're probably writing "= form_for" instead of "- form_for"
>

Nathan Weizenbaum

unread,
Nov 9, 2009, 6:57:41 PM11/9/09
to ha...@googlegroups.com
If you give me a link to your code, I'll take a look at it. There are some compilation differences between development and production (due to ugly mode being enabled in default in production), and that could be causing something like this...

Paul Singh

unread,
Nov 9, 2009, 7:38:57 PM11/9/09
to Haml
Sure thing, here's all of the raw stuff: http://gist.github.com/230489

I can point you to a production version running on heroku if you want
to see it in action.

On Nov 9, 6:57 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:
> If you give me a link to your code, I'll take a look at it. There are some
> compilation differences between development and production (due to ugly mode
> being enabled in default in production), and that could be causing something
> like this...**

Paul Singh

unread,
Nov 9, 2009, 9:12:15 PM11/9/09
to Haml
Yep, disabling ugly mode in production seems to have resolved the
issue for me. I'll keep debugging and let you know if I figure
anything else.

Nathan Weizenbaum

unread,
Nov 9, 2009, 9:47:09 PM11/9/09
to ha...@googlegroups.com
I'd appreciate some more debugging, if possible - I'd like to resolve this issue. Ugly mode shouldn't ever cause behavioral changes.

Could you try taking the raw Haml and removing code to find the minimal file that still demonstrates the issue?
Reply all
Reply to author
Forward
0 new messages