Displaying 20 results from an estimated 40000 matches similar to: "rails not reloading"
2010 Jun 02
10
Session, memory_store & NoMethodError
Hy everybody,
first, excuse me for my english, I''m french (sorry for that :D).
My actual problem is that I encountered a [b]NoMethodError[/b] when I
tried to access to a session value that is not nil. I''m doing some ajax
calls and I afffect the key/value and access to session variable in the
same controler "injection_controller.rb". I also access to session in a
view
2006 Mar 31
5
Model reloading problem
Hi all,
I''ve a model class Toto in the model directory.
I don''t understand why i have to restarts WebBrick to view changes i make
in this class
FYI : in the development. rb i desabled class cache with
config.cache_classes = false
Regards
Luciano
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Mar 05
7
issue with the object cache
Hi,
I am getting a method_missing error when I run my application in the
production environment unless I set config.cache_classes = false in
config/environments/production.rb. This happens in Rails 2.2.2 but not
in Rails 2.1.0. The method that is missing is one I used to have
before I edited by hand the migration that creates the table
associated with the object (I know you are discouraged to do
2010 Oct 11
5
Object lost in memory/trashed?
Hi,
I''ve got a problem on which I''ve spent many hours, and I can''t get a
clue on what is happening... I hope someone here will be able to help
me.
Here is the situation : my Rails app uses acts_as_commentable and
acts_as_bookmarkable on a Diagram model. Everything''s working OK
individually: I can create a comment on a Diagram, bookmark it, and so
on.
Now,
2008 Feb 10
2
Mongrel in development mode not reloading classes
Hi there,
Even though I am running Mongrel in development mode, I have to
manually restart Mongrel to load any changes that I have made to
controller or model code.
This is the output when I start Mongrel:
$ script/server start
./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use
gem instead.
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
2008 May 14
7
A copy of XX has been removed from the module tree but is still active!
I have a class in my /lib/ directory called tracker.rb
It''s function is to receive an array of URLs and then perform 4
separate tasks on each URL
Each of the 4 tasks gets it''s own thread.
the class is called from my controller like:
output = Tracker.go([array_of_urls])
Sometimes, when it hits an exception, instead of just dieing
gracefully, my logs repeatedly display:
A
2009 Sep 01
13
Function Testing Reloading Fixtures before assertion
Hey Everyone,
I have a function test the is failing (despite the fact the function
actually works in the application). I was looking for some debug
advice on how to find my problem.
Here is the test:
def test_should_delete_word
assert_equal ''published'', words(:one).status
debugger
delete :destroy, :id => words(:one).to_param
assert_equal
2008 Apr 30
12
Strange memory issue
Like most, I have a test and a production env. Both are CentOS 5, Ruby
1.8.6, Rails 2.0.2, MySQL 5, and Apache. Both were setup using the
same procedure. Except for the hardware (test: Intel, prod: AMD) and
memory (test: 512M, prod: 1G), both systems are essentially the same
right down to the Rails env. Unfortunately, memory usage is very
different for each.
The test system has 2 mongrel
2010 Jan 06
4
serialized attribute converting to string on reload
Hello,
Anybody help me out? I done googled it good and didn''t find anything
(which should mean that I''ve done something wrong).
Not much code to talk about here, quite simply I have an attribute
that is serialzied and when I update it, irb shows the object and my
methods run on it as it were indeed so. Though when I reload it
changes the data to a string. Not yaml, just one
2008 Sep 02
4
Rescue rails errors
Hi all,
Sometime, I get the following error in my application:
ActionController::InvalidAuthenticityToken in
ManageController#site_servers
ActionController::InvalidAuthenticityToken
I tried to put the code in manage controller between begin ... rescue
... end but it didn''t catch the error.
So I tried in the application.rb controller, I put the forgery code
between begin ... rescue ...
2008 Jul 22
5
RJS opener.reload()
Hello,
I have a problem with RJS.
I have a popup and by pressing a button within it I want to:
1. close this popup, which functions fine with onClick in the view and
2. reload the opener page of the popup after the called action in the
controller is done.
I tried:
render :update do |page|
page.opener.location.reload()
end
in the controller, but this didn''t work.
Can anyone
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
I am having this crazy problem where it ONLY shows up in testing.
This is my test code
<code>
def test_should_destroy
task1 = Task.new(:description => "tmp",
:done => false,
:user => User.find_by_login(''admin''))
assert task1.save
assert task1.destroy
end
</code>
This is my task model
2010 Aug 24
5
Reading pem file in ruby on rails
hi,
i have a certificate file in pem format. i need to read the pem file.
Need help on how to read the certificate in ruby on rails
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Dec 21
4
Action Web Service and rails 2.0
Hi,
Just thought I''d share what we did to get action web service to go on
rails 2.0 http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Feb 05
3
How do you update frozen rails in svn?
Every man and his dog recommends you freeze rails, awesome!
I''ve done that and setup my svn repo and been modify the code and checking
in my updates.
Now since 2.0.2 is here and I''m on 2.0.0
How do I get to 2.0.2 ??
Please include the impact that this has on the svn repository.
Thanks :D
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2008 Sep 02
7
Deploying My Rails App
I have just finished my first Rails application following the
lynda.com tutorial, but I am not sure how to get my application on the
internet.
I have an ftp account through the applemachine server, but from what I
have read, I''m afraid I will not be able to host my application there.
What I am looking for is step by step directions on how to get from a
working Ruby on Rails application
2008 Jul 09
4
Auto Postback in Ruby On Rails
in some other language have a concept e.i "auto postback"
So, in Ruby on rails is there any such option e.i "auto postback"
or same as "auto postback"
basically what i want ot do is that i have 2 select box
One for "Industry" and other for "Chemical"
1st we show all the industry in "Industry" select box.
if we select any 1 industry
2007 Jun 14
2
Rails Development Environment and Reloading Models
Hi,
By default, rails reloads all your models, while in development mode, with
each new request. Is there anyway to specify that a given model, or models,
should not be reloaded? This is specific to rails 1.2.3
Thanks,
Steven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2006 Sep 05
0
Reloading dependencies in Edge Rails?
I''m developing a library called Hark. The structure is:
lib/
hark/
session.rb
mixins.rb
hark.rb
hark.rb:
====
module Hark
include Hark::Mixins
...
end
application.rb:
====
class ApplicationController < ActionController::Base
include Hark
end
my_controller.rb:
====
def login
hs = session[:hark_session] = Hark::Session.new
...
end
So application.rb
2007 Mar 24
6
Rails Development Log
Hi,
I am using Ruby+Rails with Mongrel.
Is there any way to disable logging so that everytime I start rails
(mongrel_rails start), it doesn''t automatically start logging info to
development.log
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on