similar to: Alternative to storing ActiveRecord object in session

Displaying 20 results from an estimated 9000 matches similar to: "Alternative to storing ActiveRecord object in session"

2007 Aug 14
1
find_by_sql vs connection.select_all
I was trying to do SUM based mySQL query simliar to the following: SELECT SUM(updated_on - created_on) AS total from signups If I were to run this command in the mySQL console I would get a result. However, if I were to run it using the following command in Rails: Signup.find_by_sql("SELECT SUM(updated_on - created_on) AS total from signups") The query that is written to the log is:
2006 Mar 08
3
email signup/splash page
Does anyone know the easiest way to put up a splash page where people can add their email addresses to be notified when the site is ready? I want regular visitors to be directed to this page. How can i have this and still be able to test/develop the site? I know a lot of web apps do this while still developing, so i''m looking for a solution that i''m sure exists, but i cant
2006 Apr 14
6
Login Generator with Extensible authorisation
I want my web app to have a signup/login generator but have 2 tiers of users - normal and premium. There seems to be lots of login generator and engines with scattered tutorials about extensible authorisation and Im lost as which is the ''best'' or most ''easy to use'' solution. Anyone had success in this area? -- Posted via http://www.ruby-forum.com/.
2016 Jun 20
1
rsync script for snapshot backups
The scripts I use analyze the rsync log after it completes and then sftp's a summary to the root of the just completed rsync. If no summary is found or the summary is that it failed, the folder rotation for that set is skipped and that folder is re-used on the subsequent rsync. The key here is that the folder rotation script runs separately from the rsync script(s). For each entity I want
2006 Mar 03
1
weird error with login engine
Any ideas what would cause the following exception (using the login engine): -------------------------------------- Full executation backtrace: -------------------------------------- [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1697:in `execute_callstack_for_multiparameter_attributes'' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1677:in
2009 Jul 27
2
Can't delete sqlite database
Did a quick experiment with a new project and added the default sqlite database with rake db:migrate. Now I want to get rid of it. I use rake db:drop and that will delete the file, but as soon as I restart the Rails app, the db is recreated. Aargh! I can''t find any other file which has been modified which mighht cause the db to be created. How do I get rid of this permanently? -- gw
2006 Jun 14
9
Controller testing and mocks...
So far I''ve been doing my controller testing against "real" (testing) objects; however, I''ve been beginning to wonder if I should "default" to using mocks in most cases -- both for performence and to enforce a looser coupling. In part this is driven by my viewpoint that rail''s "functional" tests are still "unit" tests, so they
2013 Jul 11
1
remote rsync exit code 0: is this a bug?
Hello: [I apologize if this is a repeat. I had to rebuild my posting profile, and I think I didn't do it correctly before I sent a previous version of this.] We use rsync as a part of a home-grown backup solution. In the specific case at hand, we're using rsync to copy volumes off-site. The "sending" server invokes rsync to transfer each volume to the off-site archive.
2007 Dec 13
3
rsync 3.00pre6 segfault in add_dirs_to_tree
Hi All I run rsync in an automated environment and it sometime will crash and leave a core dump file. from core dump, gdb shows that gdb) bt #0 add_dirs_to_tree (parent_ndx=-1, from_flist=0x56c590, dir_cnt=1) at flist.c:1422 #1 0x0000000000409eab in send_file_list (f=16, argc=-1, argv=0x56c238) at flist.c:2068 #2 0x0000000000419052 in client_run (f_in=16, f_out=16, pid=-1, argc=1,
2006 Jan 20
2
Agressive echo cancelation
Anyone know if it is possible to control how aggressively the "Aggressive" mode behaves. Meaning, is it possible to dial back the aggressive mode to have a happy medium between Regular and the Aggressive defaults. I have a situation where Normal echo cancellation is not quite enough, however when I turn on aggressive mode We are attacking it to hard and I am unhappy with the walkie
2019 Jun 09
2
Major release of xocc C compiler, 0.9.2, based on BSD license!
Hello everybody, I'm glad to announce the major release of xocc C compiler, 0.9.2, based on BSD license. xocc is a C compiler that based on XOC infrastructure, XGEN code generator and XOCFE C frontend. Both xocc, XOC, XGEN, and XOCFE are based on BSD license. XOC provides multi-level operations, flexibility, and the capability of representing almost all popular languages. There
2005 Sep 02
7
Form to update two tables
Hello there, this is probably a very simple problem but I''m stuck. I''m following the Login generator tutorial from rubyonrails. It''s all worked fine so far. But I want to add a bit more functionality so that when a user signs up in addition to chosing a login name and password they type in a company name which is added to a seperate table called COMPANIES. The id
2004 Jun 26
1
Echo worse after new echo patch
Hi all, I was excited to see the announcement on the list regarding the fix for the echo problems on Digium FXO cards! I have 2 X101P's, TDM400P with 4 FXS modules and couple of XLite softphones. A few months back,I had gone thru the recommendation on the list to remove echo from the SIP phones(I never did have any echo on the TDM400P FXS phones), and had removed about 90% of the echo.
2008 Jul 09
1
loverays invites you to join Zorpia
Hi speex-dev! Your friend loverays from , just invited you to his/her online photo albums and journals at Zorpia.com. So what is Zorpia? It is an online community that allows you to upload unlimited amount of photos, write journals and make friends. We also have a variety of skins in store for you so that you can customize your homepage freely. Join now for free! Please click the following
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following: Login: User.authenticate(@params[:user_login], @params[:user_password]) Signup User.authenticate(@user.login, @params[:user][:password]) The syntax of the call in the signup code confused me...what exactly does @params[:user][:password] this return to me? Is the params structure a multi-dimensional array? I would have
2006 May 06
5
login generator always give login unsuccessfull
hi guys, i just did what it is written in this website to genrate login http://wiki.rubyonrails.org/rails/pages/HowToQuicklyDoAuthenticationWithLoginGenerator at the end i add to the database login and password but when i tried to login it give me login unsuccessfull can anyone help me thanks notice: i m beginner in webdeveloppement and especially ruby on rails -- Posted via
2007 Oct 01
15
how to spec views
I''m trying to spec a view but haven''t done much view specing. This view render different partials depending on authentication of the user: annon, admin, player So I I''ll write if conditionals in the view with the partials it "should render signup propaganda for annon users trying to view games" do render "/games/index.rhtml"
2005 Aug 07
8
Ajax forms and redirects
Here is an example that seems perfect for Ajax that I have not seen implemented nor can figure out how to do it. I am hoping someone can give me some pointers. On the sign-up page, I would like to do my validations (password length, username uniqueness,etc ) Ajax-style. But if all validates, then redirect to the success page. The combining of redirection to a new page with Ajax is throwing me.
2006 Jul 25
8
Creating records in two models in a RESTful way.
Hey everyone, I have a philosophical question here. Say I have a website that uses two models for accounts: Person and Company. Normally I would just have /accounts/new for user signup. However, the RESTful way to do it is to have /people and /companies. Unfortunately, this doesn''t account for a situation where you''d have a one-page signup form. I wouldn''t want
2006 Jun 04
4
eRuby & Rails: Not Compatible
I''m new to Ruby, Rails, and this list. I''ve tried searching for an answer but it all seems to be over my head. I have all the books but again they seem to leave me on my own to figure out the stuff that really matters. Where is the best place to find out the details? Exactly what are these much celebrated "naming conventions"; i.e. where do I find an exhaustive