Displaying 20 results from an estimated 1000 matches similar to: "1.1.5 Upgrade and config.load_path not working"
2006 Jul 12
2
YART (Yet Another Rails Talk)
This morning I gave a talk on Rails to the NYC CTO Club. The slides
for are online at
http://www.io.com/~jimm/writing/rails_ctoclub/s5/index.html. Hover
over the bottom right corner of the window to see the navigation
controls, including the one that brings up the notes. Printing the
slides works really well; the presentation includes CSS that formats
the whole thing for print output.
The main
2005 Jan 21
2
collection_select
I''m trying to use collection_select, but it''s not working as I expect. The
list populates correctly but the current value is not selected.
@question contains a topic (via topic_id), and @topics is the list of all
topics. Here''s my attempt to create a drop-down list of the topics.
form("question") do | form |
form << content_tag("b",
2006 Feb 23
1
PostgreSQL CASCADE not copied to test db
When the unit test harness creates a test database from the
development database, the ON DELETE CASCADE constraints I have on my
foreign keys are not copied into the test database. (I can tell by
looking at db/development_structure.sql.)
That means the fixtures can''t load/unload from the test database
properly. In other words, all my tests fail with the same error
message:
2006 Aug 10
1
Web service SOAP URLs started failing with 1.1.4 or using 1.1.2 security patch
Railers,
I''m trying to figure out why invocations to my Web service URLs work
with Rails 1.1.2 but fail both with Rails 1.1.4 (and 1.1.5) and when I
apply the new 1.1.2 security patch to Rails 1.1.2.
It looks like they are failing with SOAP clients but succeeding with
XML-RPC clients.
The URL that used to work is of the form
http://localhost:3000/my_controller/ServiceName/api. When I
2008 Mar 17
8
should have_tag outside Rails
Hi
Google has not helped me here. I''m looking for a way to use the have_tag
assert_select wrapper outside RSpec on Rails (but in a Rails project) so I
can use it to check text strings.
Has anyone managed this?
Thanks
Ashley
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 10
5
Major security vulnerability in the latest Rails 1.1.5
Hi,
I think there is still a major vulnerability exists in the latest Rails 1.1.5.
The problem is in the routing.rb file and safe_load_paths method.
Because of the erroneous regexp it is possible to perform a DOS attack
on any rails application.
To reproduce:
1. start your application
2. use this url: http://localhost:3000/debug
Routing module will load standard debug.rb script which stops a
2005 Jan 07
3
ruby on cygwin and mysql - problem connecting to db
Hi,
I''m trying my hand at rails by working through the tutorial. I''m stuck
on getting the rails app, running on webrick, to talk to mysql. I''m
getting the "No such file or directory - /tmp/mysql.sock" message that
I''ve seen that others sometimes encounter.
Here''s my environment:
Win2k w/ cygwin installed at c:\cygwin
ruby installed via
2006 Apr 17
5
XML-RPC Webservice API
Hi,
After following the excellent tutorials in the Agile Web Development
with Rails book, I was able to get my webservice working pretty much
perfectly :)
I can access it via SOAP and XML-RPC and look at service.wsdl to find
the API. What I can''t do however is get the API for the XML-RPC call. It
fails with :
Internal protocol error: NilClass is not a valid input stream. It must
2006 May 05
11
Listing Actions
OK, call me crazy, but am I the first one to want to list out the
actions that are available @ runtime? Anyone else come across this
yet? Am I crazy? Well, yes, but...
--
Posted via http://www.ruby-forum.com/.
2007 Aug 21
7
Signin to LinkedIn
Hi,
Does anyone have the formula for getting logged into LinkedIn?
Here''s my current attempt:
require ''rubygems''
require ''mechanize''
agent = WWW::Mechanize.new
home_page = agent.get(''http://www.linkedin.com'')
signin_page = agent.click home_page.links.text(''Sign in'')
puts "\nSIGNIN PAGE"
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action?
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 15
3
See Rails::Configuration for more options?
In config/environment.rb it states:
# See Rails::Configuration for more options
See where exactly? I can''t find any docs for it, not at
api.rubyonrails.com anyway.
Joe
--
Posted via http://www.ruby-forum.com/.
2012 Jul 16
1
After moving from Ruby 1.8.7 to 1.9.3 - test/unit/error (LoadError)
People,
For my old library app I did with Rails 2.1.1, if I use Fedora 16/Ruby
1.8.6, everything is OK. If I copy the app to a Fedora 17/Ruby 1.9.3
setup and reinstall all the old Gems and run:
./script/server
I get:
/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'': cannot
load such file -- test/unit/error (LoadError)
from
2009 Jul 02
1
config.load_paths
Hi
As a part of rearranging the code I put my reports in the folder
app/models/reports and loaded that using config.load_paths Is there any
performance issue in doing this? Is this the right approach? or I have
to put all the files in reports to app/models so to avoid
config.load_paths #{folder} I expect your valuable comments
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb?
So, for example, you could control authentication for all of the
controllers in an app.?
Obviously, you would need a way to reference actions by controller
within this "global before-filter".
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2007 Aug 18
6
RSpec: "--color" not working in spec.opts when combined with "--drb"
Windows XP SP 2
ruby 1.8.5
gems:
rails 1.2.3
rake 0.7.3
win32console 1.0.8
plugins:
rspec 1.0.8
rspec_rails 1.0.8
spec.opts:
--colour
--format
progress
--loadby
mtime
--reverse
--drb
When I run "rake spec" or "ruby script/spec spec --color" this is the
output:
D:\dev\project>rake spec
(in D:/dev/project)
2009 Apr 14
4
Forcing the extrapolation of loess through the origin
Hi all,
I'm fitting a line to my dataset. Later I want to predict missing values that exceed the [min,max] interval of my empirical data, therefore I choose surface="direct" for extrapolation.
l1<-loess(y1~x1,span=0.1,data.frame(x=x1,y=y1),control=loess.control(surface="direct"))
In my application it is highly important that the fitted line intercepts at the point of
2007 May 06
3
Neural Nets (nnet) - evaluating success rate of predictions
Hello R-Users,
I have been using (nnet) by Ripley to train a neural net on a test dataset, I have obtained predictions for a validtion dataset using:
PP<-predict(nnetobject,validationdata)
Using PP I can find the -2 log likelihood for the validation datset.
However what I really want to know is how well my nueral net is doing at classifying my binary output variable. I am new to R and I
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
I am doing some testing with the rails trunk, version I switched to
because of memory leaks in 0.13.1 under linux environment.
Right now the application is running fast and steady under linux, with
no memory leaks using SCGI Rails Runner 0.4.3 from Zed, BUT it has
become unusable under Windows (our main development environment) where
I am getting a lot of segmentation faults.
BUT the problem
2006 Oct 10
4
Use remote machine environmental variables
I am having an issue passing a command through ssh which uses an environment variable. I would like the environment variable to be read from the remote host, but it is being read from the local host.
For instance:
ssh rhost ls -lm $WWW_HOME
$WWW_HOME is set as /usr/www on local but /var/www on the remote so it is being read as :
ssh rhost ls -lm /usr/www
and I'd like it to be
ssh rhost