malformed format string

27 views
Skip to first unread message

keng...@gmail.com

unread,
Aug 22, 2007, 10:44:41 PM8/22/07
to ActiveScaffold : Ruby on Rails plugin
Hello,
I am new to Active Scaffold, just started using it today. My co-
worker has been raving about it. I just had problem that when I enter
a percent sign in a field and did save it totally broke my page. I
enter 3%. When i do refresh of the page to see the list. Is there a
way to tell active scaffold to escape this field?

This is the error that I am getting:


Showing vendor/plugins/active_scaffold/frontends/default/views/
_list_record.rhtml where line #13 raised:

malformed format string - %)

Extracted source (around line #13):

10: <td class="<%= column_class(column, column_value) %>" >
11: <% if column.link -%>
12: <% column.link.label = column_value %>
13: <%= record.authorized_for?(:action =>
column.link.crud_type) ? render_action_link(column.link,
url_options) : "<a class='disabled'>#{column.link.label}</a>" -%>
14: <% else -%>
15: <%= column_value %>
16: <% end -%>

Trace of template inclusion: /vendor/plugins/active_scaffold/frontends/
default/views/_list.rhtml, /vendor/plugins/active_scaffold/frontends/
default/views/list.rhtml

RAILS_ROOT: script/../config/..

Kevin

Lance Ivy

unread,
Aug 23, 2007, 1:18:56 AM8/23/07
to actives...@googlegroups.com
Oh, yeah, that's a bug we've patched in trunk. There's a little method secreted away at the bottom of lib/active_scaffold.rb that should instead look like this: http://activescaffold.googlecode.com/svn/trunk/lib/extensions/localize.rb.

On 8/22/07, keng...@gmail.com < keng...@gmail.com> wrote:

Hello,
  I am new to Active Scaffold, just started using it today. My co-
worker has been raving about it. I just had problem that when I enter
a percent sign in a field and did save it totally broke my page. I
enter 3%. When i do refresh of the page to see the list. Is there a
way to tell active scaffold to escape this field?

This is the error that I am getting:


Showing vendor/plugins/active_scaffold/frontends/default/views/
_list_record.rhtml where line #13 raised:

malformed format string - %)

Extracted source (around line #13):

10:     <td class="<%= column_class(column, column_value) %>" >
11:       <% if column.link -%>
12:         <% column.link.label = column_value %>
13:         <%= record.authorized_for? (:action =>

keng...@gmail.com

unread,
Aug 23, 2007, 3:39:07 PM8/23/07
to ActiveScaffold : Ruby on Rails plugin
Thanks!

On Aug 22, 7:18 pm, "Lance Ivy" <la...@cainlevy.net> wrote:
> Oh, yeah, that's a bug we've patched in trunk. There's a little method
> secreted away at the bottom of lib/active_scaffold.rb that should instead

> look like this:http://activescaffold.googlecode.com/svn/trunk/lib/extensions/localiz....


>
> On 8/22/07, kengl...@gmail.com <kengl...@gmail.com> wrote:
>
>
>
> > Hello,
> > I am new to Active Scaffold, just started using it today. My co-
> > worker has been raving about it. I just had problem that when I enter
> > a percent sign in a field and did save it totally broke my page. I
> > enter 3%. When i do refresh of the page to see the list. Is there a
> > way to tell active scaffold to escape this field?
>
> > This is the error that I am getting:
>
> > Showing vendor/plugins/active_scaffold/frontends/default/views/
> > _list_record.rhtml where line #13 raised:
>
> > malformed format string - %)
>
> > Extracted source (around line #13):
>
> > 10: <td class="<%= column_class(column, column_value) %>" >
> > 11: <% if column.link -%>
> > 12: <% column.link.label = column_value %>

> > 13: <%= record.authorized_for?(:action =>

Reply all
Reply to author
Forward
0 new messages