similar to: singleton can't be dumped in rails session

Displaying 20 results from an estimated 8000 matches similar to: "singleton can't be dumped in rails session"

2011 Feb 17
1
Adding images for pagination links in will_paginate
Hi, I am using will_paginate for pagination. I have to show only Previous and Next links, that I have achieved by ":page_links=>false" parameter. Now I want to show the images instead of "Previous" and "Next" labels. Can anyone tell how to achieve this in will_paginate? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message
2010 Jan 20
0
Will_paginate not working with the ajax
Hi, I am using "will_paginate" for pagination purpose. I have a partial with name "my_friends", I have a pagination of 25 per page. I have added "<%= will_paginate @user_friend} %>" in my partial. It is working fine. I have a functionality to delete the friend. So I have usd "link_to_remote" call to delete the friend and I am updating that partial with
2006 Apr 04
0
Session-Problem: singleton can''t be dumped
Hello, after having changed the session store from CGI::Session::DRbStore to CGI::Session::ActiveRecordStore, I keep getting an error which says: singleton can''t be dumped However, my session object is not a singleton. Does anybody know what causes this error? I can also post the full stack trace, if required. Greetings Michael Kastner
2008 Dec 05
3
"singleton can't be dumped," but not using singleton
An action handler (select_person_by_name) in my controller class assigns into session, and then does a redirect_to. I get the error "TypeError (singleton can''t be dumped):" followed by a stack trace that doesn''t cross my code. Google tells me this is ordinarily caused by assigning a singleton instance into session, but what I''m assigning is an ordinary String.
2008 Jan 04
0
REST: Handling homepage and pagination for XML
Hi you all, I have two questions regarding a REST app and the XML responses: - Homepage: I want to have a kind of homepage to list all the list of resources the user can access to. I''ve read I can do it with just an index.html. However, my app also offers the response in XML so, what if the client want the XML? Can I have an index.rxml too? In [1], they offer the possibility to have a
2007 Jun 08
0
SimplaTable with error: singleton can't be dumped
Hello, My first PDF report from rails. When i try to render "tab.render_on(pdf)", I get that error message. Thanks any help, Helder ================================================================= TypeError in ContasController#plano singleton can''t be dumped RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace
2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
I want to clean my code by moving the duplicated lines : partial = render_to_string( :partial => "#{file}", :formats => [:html] ) to the pagination_partials function. ================================================= WORKING CODE: ================================================= def render_format_search_partial(file, options={}) # TODO remove this line to use the one
2008 May 19
0
changed to will_paginate
Hi Till now we used the rails pagination.But now onwards shifting to will_paginate The code I use currently is as below .This is with the help of find_where pluggin..A fantastic pluggin which we still want to use...I would like to know how can i modify the following code to work with will_paginate step 1: set the variables you''ll need page = (params[:page] ||= 1).to_i
2010 Jul 30
1
pagination
Pagination I am using an old tutorial which is tripping me right up as I have the latest version of rails installed. I''m persisting as I think I''m learning a little bit more about how RoR works. However after installing the scaffolding plug-in to fix an earlier problem I now have a problem with the pagination. I have followed this workaround:
2006 Oct 16
0
MiddleMan singleton issue in start script
Hi all, I found this thread in the August backgroundrb-devel archives. >This means that in order to reference the new_worker method *in the >instance that is running in the drb server* you can''t do that >directly. In order to spawn other workers from within a worker I >would have to change the MiddleMan class to be a singleton. This way >you could grab the one instance of
2008 Oct 27
8
pagination in ajax
hi, I am curently using rails version 2.1.1. Currently i have done simple pagination using will_paginate plugin.it works.but when i am trying pagination using ajax with help of will_paginate plugin it wont works.i am also using RemoteLinkRenderer helper, but it gives an error uninitialized constant RemoteLinkRenderer. can anyone provide any tutorial or sample code so that i can
2011 Oct 14
0
Any data table component for rails?
Hello all, is there any data table component for rails which can sort/search/pagination etc? I''ve checked out jquery plugin datatables, which can sort/search/pagination, but for large dataset of course need to go server side, need to pass params[:sort]/params[:search]/params[:pagination] to server side, which involves a lot of code, I''ve checked out rubygems.org and found a
2006 Oct 31
0
PSARC/2006/289 Rationalized IFF_NOFAILOVER for IPMP Singleton
Author: meem Repository: /hg/zfs-crypto/gate Revision: 40aa11f97fc0148333e53145eebb12da7e84dec5 Log message: PSARC/2006/289 Rationalized IFF_NOFAILOVER for IPMP Singleton 6397456 IPMP needs to support *just* link-based failure detection with singleton Files: update: usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_main.c update: usr/src/cmd/cmd-inet/usr.lib/in.mpathd/mpd_tables.c update:
2011 Oct 07
0
will_paginate + RJS error
Hi there! I need some help, I''m new to rjs + will_paginate and don''t know how to solve this problem. The application apparently is working fine, the partial is rendered by the javascript, the pagination works fine, but sometimes, when I hit the next page number or " next >>", it reders the code below. Im using rails 2.3.8, ruby 1.8.7. and will_paginate 2.3.15
2012 Mar 16
2
Singleton pattern
Hi all, I know it may not have much sense thinking about a Singleton Pattern in an R application which doesn't use any OOP facilities, however I'm curious to know if anybody faced the same issue. I've been googling but using "singleton pattern" as a key word leads to typical OOP languages like Java or C++ among others. So my problem is that I'd like to ensure some very
2010 Jul 13
1
will_paginate destroys link_to_remote?!
Hello, I''ve got a list in a view and each of element of it has a link_to_remote and everything worked like a charm. Now I added AJAX pagination and the link_to_remote doesn''t work anymore. This is the partial of the list: <% for character in characters %> <%= character.name %> <%= link_to_remote t(''.add''), :url =>
2009 Nov 03
2
will_paginate pagination problem
hi; i use will_paginate the first page come true but all other page get the same data of first page i checked in controller "page" parameter works true but paginate get only first page''s data and shows these data in all pages forexample first page seen A,B second page also seen A,B but second page must be C,D my code is; controller : @list = Company::Env.paginate :page =>
2010 Jan 21
2
will_paginate ?
Does anyone have experience with will_paginate? I''m trying to use it with acts_as_ferret. routes.rb ... map.search ''/search'', :controller => ''notes'', :action => ''search'' notes.rb ... acts_as_ferret :fields => [ ''body'' ] notes_controller.rb ... def search if params[ :query ] @query = params[
2010 May 17
2
"end of file" error for "net/https"
Hi, I have written following code:- It is working fine for http protocol. But whenever I am doing for https I getting an error "end of file reached". Can anyone tell me what is wrong with the code? def email_to_friend require ''net/http'' require "net/https" require ''uri'' #res =
2006 May 22
2
using Singleton with Prototype
Hello all. I''m writing my own object using prototype and I wonder how you write and call only one instance of class. Can anyone share his idea of singleton? thanks Gregor ---------------------------------------------------- Gdy nadchodzi przełomowy moment w historii, musisz zdecydować, po czyjej stronie będziesz. "X-Men: Ostatni bastion" - w kinach od 26 maja.