So without model methods how can I retrieve the marked records?

Regards
Michael


On 6 Mai, 11:13, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Jueves, 6 de Mayo de 2010 11:11:47 usted escribió:
>
>
>
>
>
> > On Jueves, 6 de Mayo de 2010 07:51:16 Atastor escribió:
> > > Ähm...please come over and beat me with a stick...trying to use the
> > > master merged mark code (checkout just now). Using
>
> > >     config.actions.add :mark
>
> > > to add the action and getting
>
> > >    undefined method `mark' for #<ActiveScaffold::Config::Core:
> > > 0x104d39460>
>
> > > as a result.
>
> > > Embarrassed
> > > Michael
>
> > Merged code was modified, you have to enable mark_records in list action:
> > config.list.mark_records = true
>
> And probably I will make more changes, currently there is no model methods
> because I'm not sure about that
>
>
>
>
>
> > > On 29 Apr., 18:17, Jose Lecumberry <[email protected]> wrote:
> > > > Working fine now,
> > > > Thanks
>
> > > > On Thu, Apr 29, 2010 at 5:29 AM, [email protected] <
>
> > > > [email protected]> wrote:
> > > > > Hi,
>
> > > > > mark_all did not work correctly for embedded controllers.
> > > > > Unfortuently, I ve messed up my fork. So please replace the following
> > > > > in list_columns_helper.rb
> > > > > def mark_column_heading
>
> > > > > url_params = {:action => 'mark_all'}
> > > > > url_params = {:controller => params_for[:controller], :action =>
> > > > > 'mark_all', :eid => params[:eid]}
>
> > > > > On 29 Apr., 09:39, "Sergio Cambra .:: entreCables S.L. ::."
>
> > > > > <[email protected]> wrote:
> > > > > > On Miércoles, 28 de Abril de 2010 19:17:43 Jose Lecumberry escribió:
> > > > > > > The problem is that it is embedded on another controller.
> > > > > > > <%=  render  :active_scaffold => "config7960s", :label => 'Cisco
> > > > > > > 7960 Configurations' %>
> > > > > > > I tested directly, without embedding it, and works fine.
> > > > > > > But what if i want to add something else to the displayed page?
>
> > > > > > You can add it in the layout, or override list.html.erb in your
> > > > > > app/views/config7960s directory:
> > > > > > [YOUR HTML]
> > > > > > <%= render :super %>
>
> > > > > > > On Apr 28, 2:29 am, "[email protected]"
>
> > > > > > > <[email protected]> wrote:
> > > > > > > > Hi,
>
> > > > > > > > if you click select_all to select all records, this checkbox is
> > > > > > > > deactivated during processing.
> > > > > > > > If something during processing fails I think it might happen
> > > > > > > > that checkbox stays deactivated.
> > > > > > > > Can you please check if that is the case in your issue.
> > > > > > > > You should see some errors in your log file..
>
> > > > > > > > --
> > > > > > > > Volker
>
> > > > > > > > On 27 Apr., 19:16, Jose Lecumberry <[email protected]> wrote:
> > > > > > > > > Cool, I already added it to my project.
> > > > > > > > > I will be working on the actions, ill let you know how it
> > > > > > > > > goes.
>
> > > > > > > > > ps: when "select all" is checked i cannot uncheck it, nor all
> > > > > > > > > check boxes get checked is it supposed to be like that ??
>
> > > > > > > > > thx
>
> > > > > > > > > On Apr 27, 8:06 am, Atastor <[email protected]> wrote:
> > > > > > > > > > Nice! Any plans to merge this into master?
>
> > > > > > > > > > Regards
> > > > > > > > > > Michael
>
> > > > > > > > > > On 27 Apr., 08:58, "[email protected]"
>
> > > > > > > > > > <[email protected]> wrote:
> > > > > > > > > > > Hi,
>
> > > > > > > > > > > Take a look
> > > > > > > > > > > athttp://
>
> > > > > github.com/vhochstein/active_scaffold/commit/30ceee8bd7e1a
>
> > > > > > > > > > >33f8...
>
> > > > > > > > > > > Should provide you exactly what you need.
> > > > > > > > > > > If you integrate these changes into your active_scaffold,
> > > > > > > > > > > you
>
> > > > > can
>
> > > > > > > > > > > simply do the following:
> > > > > > > > > > > conf.actions.add :mark
>
> > > > > > > > > > > This will automatically add a checkbox to yourlistviewfor
> > > > > > > > > > > each record.
> > > > > > > > > > > If you mark a record it will be stored in users session.
>
> > > > > > > > > > > If you trigger your action b_modify,
> > > > > > > > > > > you can just call <Model>.marked to retrieve all marked
> > > > > > > > > > > records
>
> > > > > and
>
> > > > > > > > > > > then you can perform any operation you want.
>
> > > > > > > > > > > --
> > > > > > > > > > > Volker
>
> > > > > > > > > > > On 26 Apr., 18:23, Jose Lecumberry <[email protected]>
>
> > wrote:
> > > > > > > > > > > > Hi:
>
> > > > > > > > > > > > I am trying to do a multiple select table, i want to
> > > > > > > > > > > > add a
>
> > > > > column
>
> > > > > > > > > > > > of checkboxes to theListviewand then execute a
> > > > > > > > > > > > table-style
>
> > > > > action
>
> > > > > > > > > > > > link ononlythose rows where the box is checked?
>
> > > > > > > > > > > > What i am trying is to edit multiple rows at once from
> > > > > > > > > > > > a
>
> > > > > single
>
> > > > > > > > > > > > table.
>
> > > > > > > > > > > > I have 2 issues:
> > > > > > > > > > > > 1- I havent been able to add the virtual column, need
> > > > > > > > > > > > help. 2- I created the link to the controller
>
> > > > > "config.action_links.add
>
> > > > > > > > > > > > 'b_modify', :label => 'Batch Modify', :type =>
>
> > > > > > > > > > > > :collection" , once I check the checkboxes how do I
> > > > > > > > > > > > : send
>
> > > > > > > > > > > > the checkboxes to
>
> > > > > the
>
> > > > > > > > > > > > controller?
>
> > > > > > > > > > > > Can you provide a simple example?
> > > > > > > > > > > > Thanks
>
> > > > > > > > > > > > --
> > > > > > > > > > > > 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]<activescaff
> > > > > > > > > > > >ol d%2bunsubscr...@go oglegroups.com>.
>
> > > > > For
>
> > > > > > > > > > > > more options, visit this group
> > > > > > > > > > > > athttp://groups.google.com/group/activescaffold?hl=en.
>
> > > > > > > > > > > --
> > > > > > > > > > > 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]<activescaffol
> > > > > > > > > > >d% 2bunsubscr...@go oglegroups.com>.
>
> > > > > For more options,
>
> > > > > > > > > > > visit this group
> > > > > > > > > > > athttp://groups.google.com/group/activescaffold?hl=en.
>
> > > > > > > > > > --
> > > > > > > > > > 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]<activescaffold%
> > > > > > > > > >2B unsubscr...@go oglegroups.com>.
>
> > > > > For more options, visit
>
> > > > > > > > > > this group
> > > > > > > > > > athttp://groups.google.com/group/activescaffold?hl=en
>
> > > > > .
>
> > > > > > > > > --
> > > > > > > > > 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]<activescaffold%2B
> > > > > > > > >un subscr...@go oglegroups.com>.
>
> > > > > For more options, visit
>
> > > > > > > > > this group
> > > > > > > > > athttp://groups.google.com/group/activescaffold?hl=en.
>
> > > > > > > > --
> > > > > > > > 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]<activescaffold%2Bun
> > > > > > > >su bscr...@go oglegroups.com>.
>
> > > > > For
>
> > > > > > > > more options, visit this group
> > > > > > > > athttp://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...
>
> Erfahren Sie mehr »

-- 
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