similar to: Storing model object in session in EdgeRails

Displaying 20 results from an estimated 1000 matches similar to: "Storing model object in session in EdgeRails"

2006 Mar 13
3
"./blah/blah" vs. "/blah/blah"
Hello, Earlier in my rails application, I was using the convention of writing the following to refer to templates and/or views in the view folder. "./blah/blah" But in the Edge rail, it doesn''t work and the page doesn''t shows any output there is no error in the development log as well. But changing the above to "/blah/blah" seems to fix things. Was I
2006 Aug 01
2
Networked APC
Hi, I was wondering if there was any support in NUT for networked APC UPS's. All the configuration examples I see in the documentation are for USB/Serial connections to the UPS. I could mess around with serial/USB cables, but I'd really rather talk to the UPS over the network. I don't want all my servers relying on a single machine with a serial connection. -matthew
2006 Aug 01
2
Networked APC
Hi, I was wondering if there was any support in NUT for networked APC UPS's. All the configuration examples I see in the documentation are for USB/Serial connections to the UPS. I could mess around with serial/USB cables, but I'd really rather talk to the UPS over the network. I don't want all my servers relying on a single machine with a serial connection. -matthew
2006 Mar 07
0
Storing sessions files elsewhere on EdgeRails
Hi all, In a Rails 1.0 project, I successfully changed the sessions storage location to <RAILS-ROOT>/tmp, by adding ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:tmpdir => File.join(RAILS_ROOT, ''/tmp'')) in environment.rb Problem: -------- I tried to use the same trick in an EdgeRails project, but it doesn''t work : server error, with no
2006 Mar 13
3
problem updating mulitple divs with ajax
i''m having some issues updating multiple divs via ajax. perhaps someone can lend some assistance. i''ve got 2 divs: user_list and user_form. when a person clicks the "edit this user" or "add new user" link the user_form div is updated via an ajax call and the form is shown in the user_form div. this form is a remote form. it submits to either the update
2005 Dec 18
2
EdgeRails with other Gems like RMagick
I am using EdgeRails, and have some of the plugin''s using gems such as Rmagick which are included through a command similar to "require_gems ''rmagick''". Curious how to handle such attempts at inclusion when I am no longer bound to the system gems and am using the code strictly within vendor/rails and such. Is there a way to point require_gems to another
2006 Aug 02
4
RadRails and EdgeRails
Anyone know how to setup EdgeRails with RadRails ? Stuart
2006 Mar 10
0
Session management changed in EdgeRails?
Hi, I''ve been developing an application in Rails 1.0 and finally made the switch to Edge for has_many :through and polymorphism. I''m currently storing the authenticated user object (User model) in the session. This has worked well up until upgrading to EdgeRails. What I do is set @user = session[:user] in my controllers and then access the various @user associations such as
2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all, I was playing with the sample project found on the Wiki at http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails , and everything was working fine, ... till I moved to EdgeRails : undefined method `weight'' for #<Hash:0x22c7150> (full error thread below) Any idea? Alain
2006 Mar 02
0
EdgeRails with_scope and :select
>From what i can gather the with_scope feature doesn''t allow you to specify which columns get selected. It appears to default to "*". So if i specify something like: Question.with_scope( :find => { :from => "questions q, answers a", :conditions => "q.owner = a.owner AND a.owner=1" }) do ... end I''ll generate SQL like: SELECT *
2005 Oct 12
0
SCGI + edgerails
I can''t get SCGI to work with edge rails. Is the runner designed to work with edge rails? Thanks! Kyle Maxwell
2006 Dec 05
1
Using render inside a FormBuilder (EdgeRails)
I''m using the latest trunk of 1.2-ish, and I''m wondering how to do what I want to do. I am using a form_for :builder I wrote, simply called TableFormBuilder after the rails cookbook, and want to be able to present help icons automatically. I want these icons to appear next to form fields I am rendering. For example, I have this method in helpers/table_form_builder.rb: # This
2006 Dec 19
1
Internal API errors in EdgeRails
Started getting these in my development.log when I called a bad before_filter. Looks like log_error needs to be updated? DEPRECATION WARNING: @response is deprecated! Call response.inspect instead of @response.inspect. Args: [] See http://www.rubyonrails .org/deprecation for details. (called from log_error at ./script/../config/../vendor/rails/actionpack/lib/action_controller/rescue.rb: 66)
2007 Sep 28
4
RSpec + EdgeRails on Windows
I recently post on my blog about setting up a Rails environment with RSpec in Windows, and someone left a comment saying that it doesn''t work in EdgeRails. I so I played around with it a bit and was able to confirm that none RSpec appears broken on EdgeRails. I''ll post the various error messages I received below. I''m not expecting any sort of patch or something for this
2006 Sep 18
2
Datebocks and EdgeRails
Hello, I am having trouble trying to use the Datebooks Engine with Edge Rails. Has anybody try with it? It seems that the problem has something with loading the layout, and complaints about the number of arguments. I will thank any help or guide. Thank you very much. ========================= I have copied the error I get ArgumentError wrong number of arguments (2 for 1) RAILS_ROOT:
2006 Mar 21
4
Broken config/lighttpd.conf? (in EdgeRails)
I''m using Mac OS X, I installed Ruby/Rails/lighttpd/etc via the instructions from hivelogic. I think I''ve found a bug with EdgeRails, but I''m not sure how to submit it (and maybe I''m doing something wrong and someone can just point me in the right direction). Anyway I thought I''d report it just in case it is a bug. I''ve downloaded
2006 Aug 25
10
SVN security hole explained
Hi all, If you are using Pound / Pen or another load balancer, I believe you should read this: http://blog.teksol.info/articles/2006/08/25/subversion-metadata-exposure-on-mongrel My article refers to Dan Benjamin''s http://hivelogic.com/articles/2006/04/30/preventing_svn_exposure My point is that even though we are preventing Apache from serving anything except a select few file
2006 Jul 26
2
ResponseLogger Plugin
http://www.agilewebdevelopment.com/plugins/responselogger From the README: Ever wondered what exactly Rails returned in an RJS response ? Here''s your chance to see it: ===> text/javascript (49 bytes) Element.replace(''target'', ''<em>It works!</em>''); <=== == ResponseLogger Logging the response value is easy. Simply install
2006 Feb 22
5
svn externals and Edge Rails
Hi all: I am considering using edge rails so I can use join tables. I want to use svn:externals to manage edge rails, however I want to understand it more before I go and set everything up. so everytime I commit my app it will pull the most recent version of rails from the svn repository, right? What if the current version of rails is unstable, is there a way to rollback edgerails and NOT my app?
2007 Dec 19
2
Nested partials losing the view context ?
Hi all ! I can''t seem to make a simple thing work... The code is here: http://pastie.caboo.se/130660 Essentially, that''s a form with a couple of partials. The backtrace is included in the pastie. It looks like the context for the current view is lost when a partial is rendered. In _series.html.erb:2, I use "series" to get the name. This is the parameter I