Displaying 20 results from an estimated 1000 matches similar to: "Code changes are ignored due to code minor ver. were cached"
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console.
BUt I got the following error.
Anyone knows why?
>> Net::HTTP.get_print ''www.google.com'', ''index.html''
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj''
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2006 Jan 29
15
Reload the lib directory
Im writing a module in the lib directory.
If I change the module, the changes are not visible to the application
when i releod the web page (i am in the development evironment).
I must restart the web server (WEBrick) and so i see the changes... but
I lost more time.
How can I reload the module in the dirictory lib, without reload
WEBrick?
Thanks so much
--Reis
--
Posted via
2005 Sep 27
5
Am I misunderstanding "require_dependency"?
Hi
From what I understand about documentation about require_dependency,
this function will work like require but the file will be reloaded on
every request to the server when in development mode.
I have bootstrapped am minimal RoR project with 0.13.1 Rails. I have
created a minimal Controller and hooked up it''s "index" action at the
site root. I have also created a
2009 Sep 01
4
Passenger problem
I''ve used the Slicehost Intrepid instructions (http://
articles.slicehost.com/ubuntu-intrepid) to install a new Ubuntu server
with Ruby, Rails and passenger.
Everything seems to be working OK, save for one thing: my application
only service up the files that are in its public folder.
The Passenger gem is installed. I''ve done this whole process before
without any problem. Any
2009 Dec 14
5
Too many methods in the model? Extra lightweight logic layer?
Hi,
Given the convention of fat models to handle business logic, is there
a point where you might be justified in using a separate plain ruby
object(s) to orchestrate certain business logic interactions,
essentially a middle layer between your controllers and models for
high level functions?
If you look at the InventoryTransaction model below you will see the
sort of methods I mean. In this case
2009 May 08
3
STI and subclassing twice
I''m trying using STI to implement a hiearchy similar to this:
script/generate scaffold name:string type:string
class Person < ActiveRecord::Base; end
class Customer < Person; end
class Employee < Person; end
class Developer < Employee; end
I.e., there are two levels of inheritance (Developer < Employee <
Person).
When creating a Customer, Rails understands
2012 Apr 07
3
Is require_dependency supposed to be a public API?
If so, shouldn''t it be documented in the Rails API?
Or is there a better way to allow class reloading of my files under lib.
I mean, I know about config.autoload_paths, but I want to be explicit
about my requires. I just want to be able to reload then on each request
when I''m working on them.
require_dependency seems to do just that but I''m worried since it is not
2010 Aug 03
2
Strange error message when rendering the scaffold form
Hello everyone, I am developing my application and I created a
scaffold called listas, but when I acess /listas/new I get this error
message:
NoMethodError in Listas#new
Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb
where line #15 raised:
undefined method `deep_symbolize_keys'' for nil:NilClass
Extracted source (around line #15):
12: <% end %>
13:
14:
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :)
We have models Company, Reference and Applicant... and References and
Applicants just inherit from Company, and are basically companies with
the type field set to reference...
All companies can have a phone number associated with them, and phone
number is a different model...
I''m having trouble using the form_for method with a company that
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
Greetings,
I tried upgrading Rails to 1.1.2 and now nothing is really working. In
connection to the Rails upgrade I upgraded my Ruby version to 1.9.0. I
also upgraded all my gem installs.
Since my old rails apps stopped working I tried generating a fresh one
, alas with the same result. Below I included the full trace when
trying to reach the app. Line 3 in application.rb is :
class
2011 Apr 08
5
How to extend a helper using plugin?
Hello,
I''m facing this problem while trying to extend the parse_redmine_links
helper method in Redmine-1.1.0 (Rails-2.3.5) from my plugin.
My idea is to use alias_method_chain so the extended version could
call the original version and adjust the result to it''s liking.
Anything I''ve tried so far exposes this behavior: the first render of
a page uses the extended
2005 Aug 10
1
using modules with models?
I''m trying to figure out how to use modules with my model classes.
I''m going to have good number of model classes that don''t map to the
database, and I''d like to put some of these in seperate modules. I''ve
been wrestling with this for 2 days and can''t figure out how to get it
to work. Rails seems to handle it fine for controllers, though.
I
2005 Mar 06
12
Where to place custom classes?
Hi all,
I am writing a simple shopping cart which will consist of a single
class. There will be no DB table for carts so I do not want to make my
Cart a model. But where do I place my Cart class so that I can access
it in my controllers?
I want to be able do do things like this (for instance in a shop
controller):
def add_to_cart
@session[''cart''].add(article_id, amount)
2005 Dec 27
4
Using mocks
Hi,
What's the purpose of test/mocks? I couldn't quite complete the Wiki
entry on this because all the information I _could_ find was in the
readme.
- Rowan
--
Morality is usually taught by the immoral.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2008 Sep 19
7
Non-Ruby REST client for Ruby REST server
Hi,
I have a Rails 2 app and I wand to provide an API for 3rd party
applications written on any language the customer uses.
My thoughts are that the best way of providing it is by taking
advantage of rails RESTfulness and let them perform CRUD actions on my
data through it. But I don''t seem to find many information on how to
achieve this.
I first want to develop .NET clients (or web
2008 Oct 16
5
2 Models: Same name, different namespace => Problems
Let''s start with an example:
---
class Comment < ActiveRecord::Base
end
# dummy (to invent a "table namespace")
class Review < ActiveRecord::Base
end
# ... dummy
# is "review_comments" in the database
class Review::Comment < ActiveRecord::Base
belongs_to :thing
end
class Review::Thing < ActiveRecord::Base
has_many :comments, :class_name =>
2006 Jun 01
3
Requiring /lib files in a cross-platform way.
Hi.
When you have library foo.rb in your Rails project /lib directory, I
notice that on some platforms - e.g. Windows with WEBrick as a server
- you can require it by simply:
require ''lib/foo''
However on other platforms - e.g. Debian with Lighttpd server via
FastCGI - this does not work, and you need to specify RAILS_ROOT
explicitly, like this:
require
2005 Sep 27
2
caching in development mode
Hi, I created some new models that do not extend
ActiveRecord::Base. For some reason, these classes are being cached
in development mode. Controllers are not cached, neither are models
extending ActiveRecord::Base. Has anyone else seen this?
Here are my relevant development.rb settings:
Dependencies.mechanism = :load
2007 Nov 28
8
include vs. require vs. require_dependency
i am struggling a bit with all of them .. could someone be so nice a
describe me the exact differences, pros & cons of all of them ... thx a
lot!
--
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
2006 Apr 16
5
ActionMailer
Is there a way to connect to a SMTP server that requires TLS since
ActionMailer doesn''t support it?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.