[jifty-devel] Struggling with Jifty

Ruslan Zakirov ruz at bestpractical.com
Sun May 16 08:18:48 EDT 2010


On Sun, May 16, 2010 at 9:36 AM, Sadia Lone <l at mavsol.com> wrote:

[snip]

> Hi Ruslan, I tried to use the $post object in my lib/MyWeblog/View.pm
> as follows:
>
> template editpost => page { title => 'Edit Entry' } content {
>
>      my $post = get 'post';
>      my $action = new_action(class => 'UpdatePost', record => $post);
>
>      form {
>          render_action $action;
>          form_submit(label => 'Update');
>      }
> };
>
> But I think I am doing something wrong because of the following error.
> (JiftyDemo is my app name)
>
> INFO - GET request for /errors/500
> FATAL - View error: Attempt to reload JiftyDemo/View.pm aborted.
> Compilation failed in require at
> /usr/local/share/perl/5.10.1/Jifty/Util.pm line 277.

You're in devel mode I believe and don't restart server on code
changes. If new code has syntax errors then auto reload can fail in
such way. Try to stop and start server, I hope it will show you more
detailed error messages.

-- 
Best regards, Ruslan.


More information about the jifty-devel mailing list