On Martes, 21 de Septiembre de 2010 12:49:21 Andrey Voronkov escribió:
> About Sergio's fork:
>
> next link in _list.html.erb displays incorrectly. I think it's because
> of difference between correct Previous:
>
> <li class="pagination previous">
>     <%= link_to_remote image_tag('record_select/previous.gif', :alt =>
> rs_('Previous')) + " " + rs_("Previous %d",
> page.pager.per_page),
>                       {:url => prev_url, :method => :get},
>                       {:href => prev_url} %>
>   </li>
>
> and incorrect next:
>
> <li class="pagination next">
>     <%= link_to_remote rs_("Next %d", page.pager.per_page) + " " +
> image_tag('record_select/next.gif', :alt => rs_('Next')),
>                         {:url => next_url, :method => :get},
>                         {:href => next_url} %>
>   </li>

What is wrong? It's the same reversing text and image.

>
> 2010/9/21 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> > On Martes, 21 de Septiembre de 2010 06:50:38 Andrey Voronkov escribió:
> >> I've just installed Sergio's fork of RecordSelect as a plugin of my
> >> app. For example: I have two models: ChargeCard >---- Discipline.
> >>
> >> In my ChargeCardsController:
> >>
> >> active_scaffold do |config|
> >>   ...
> >>   config.columns[:discipline].form_ui = :record_select
> >>   ...
> >> end
> >>
> >> If I try to open create/update form this error appears:
> >>
> >> ActionView::TemplateError (DeptHead::DisciplinesController has not
> >> been configured to use RecordSelect.) on line #7 of
> >> vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.h
> >>tml .erb: 4:     <label for="<%= active_scaffold_input_options(column,
> >> scope)[:id] %>"><%= column.label %></label>
> >> 5:   </dt>
> >> 6:   <dd>
> >> 7:     <%= active_scaffold_input_for column, scope %>
> >> 8:     <% if column.options.is_a?(Hash) &&
> >> column.options[:update_column] -%> 9:       <%=
> >> loading_indicator_tag(:action => :render_field, :id => params[:id]) %>
> >> 10:     <% end -%>
> >>
> >>    
> >> vendor/plugins/recordselect/app/helpers/record_select_helper.rb:183:in
> >> `assert_controller_responds'
> >>    
> >> vendor/plugins/recordselect/app/helpers/record_select_helper.rb:47:in
> >> `record_select_field'
> >>
> >> vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.h
> >>tml .erb:7 haml (3.0.18)
> >> rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
> >> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:13
> >> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:2
> >> haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:13:in
> >> `render'
> >> vendor/plugins/active_scaffold/frontends/default/views/_create_form.html
> >>.er b:40 haml (3.0.18) rails/./lib/haml/helpers/action_view_mods.rb:13:in
> >> `render' warden (0.10.7) lib/warden/manager.rb:35:in `call'
> >>     warden (0.10.7) lib/warden/manager.rb:35:in `call'
> >>     warden (0.10.7) lib/warden/manager.rb:34:in `catch'
> >>     warden (0.10.7) lib/warden/manager.rb:34:in `call'
> >>     haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
> >>     pdfkit (0.4.6) lib/pdfkit/middleware.rb:14:in `call'
> >>
> >> Rendered rescues/_trace (386.2ms)
> >> Rendered rescues/_request_and_response (1.2ms)
> >> Rendering rescues/layout (internal_server_error)
> >>
> >>
> >> So how should I configure Disciplines controller?
> >
> > record_select :on => :field_to_search
> > Documentation:
> > http://code.google.com/p/recordselect/w/list
> >
> >
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Mariana Pineda 23, 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ActiveScaffold : Ruby on Rails plugin" group. To post to this group,
> > send email to [email protected]. To unsubscribe from this
> > group, send email to [email protected]. For
> > more options, visit this group at
> > http://groups.google.com/group/activescaffold?hl=en.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to