Displaying 20 results from an estimated 1000 matches similar to: "redirect killing dispatch.cgi"
2006 May 05
4
Is sanitize() strong enough to protect me from XSS?
Haven''t been able to find a good enough answer on whether using
sanitize() is enough to really protect me from XSS attacks
I basically have a blog page that I want to allow people to display
comments on but would like to allow html tags to be posted on the
comments, these could html tags like the imageshack img tags, youtube
player, photobucket img tags etc
any other approaches or
2006 Jan 14
11
nuby: do models have to inherit directly from ActiveRecord?
Hello,
I have a few models -- book, cd, dvd -- for which I''d like to have an
abstract base superclass to hold some common stuff. That abstract class, I
was thinking, would inherit from ActiveRecord.
Didn''t work, though, and looking around, I found this:
<http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel>
2006 Jan 19
4
create an object from a string?
I''m trying to dynamically create an instance of an object at runtime, from a
String. I have a method that returns one of a number of Strings ("Car",
"Motorcycle", "Bicycle"), and when I receive the String, I then want to
instantiate one of those objects.
Seems like there should be a way to do it in Ruby, but maybe I''ve been up
too long --
2006 Apr 24
1
Just a couple questions on how I should go about
> I need a simple blog with categories and comments and an archive. I want a
> nice posting system, but don''t want it in HTML. Is there something I can add
> or make, kind of like BBCODE?
http://whytheluckystiff.net/ruby/redcloth/
http://wiki.rubyonrails.org/rails/pages/RedCloth
> I pretty much know what else I have to do, but there is one more thing. A
> client section.
2006 Jan 16
15
where''d we come from?
I''m curious -- how many of us came to Rails from other branches of the OO
world -- Java, C# -- and how many of us came from the design or non-OO
scripting worlds?
Reason I ask is that I''m finding Rails a blast and very productive, but I
think one reason is that I already cut my teeth on MVC and ORM during two
years of writing apps with J2EE/Struts/Hibernate. And in Javaland, it
2006 Apr 22
2
ruby/amazon isssue
hi all. we''re using the ruby/amazon library
(http://www.caliban.org/ruby/ruby-amazon.shtml), which totally rocks. but i''m
noticing that when nobody has used our site in a while (it''s under development,
so basically nobody uses it at night), the ruby/amazon calls sometimes fail.
seems like something times out, perhaps. anybody have similar issues, or know
what might be
2006 May 29
14
Jabber Powered Rails Chatroom
For those who cant access IRC, or just looking for a quick browser based
alternative, i started an open jabber powered webchat for rails. Hopefully
this will be a nice alternative for people to go to ask questions, get some
help, offer some help, etc.
I hope the community enjoys it, just trying to give a little back for all
the hard work.
It can be accessed here
http://jabber.dufftech.com
2006 Jan 10
1
sql server freetds/odbc question
I''m having an error from Linux via freeTDS/ODBC to SQL Server with
cod that runs fine against SQLite and MySQL. Here''s the code:
def find_recipes_for_workorder_by_id
@recipe_pages, @recipes = paginate_with_sort :recipes, :per_page
=> 10, \
:conditions => ["recipe.workorder_id = ?", params
[:workorder]]
render :template =>
2006 Jan 10
1
sql server & linux: left join problem
I''ve got a left join problem of some sort connecting from linux
FreeTDS/ODBC to SQL Server. It''s similar to the false post I had
earlier, but this is a real problem. Here''s my code:
def find_recipes_for_workorder
@recipe_pages, @recipes = paginate_with_sort :recipes, :per_page
=> 10, \
:joins => ''left join workorder on
2006 May 18
3
Model Madness: habtm vs through
This has me scratching my head:
a Person has many Things
a Person has many Collections
a Collection has many Things
...Things in a Collection are ordered
...Things in a Collection can be related to (created by) any User
...a collection has additional attributes, such as a name etc
I am confused about habtm in rails (especially when using
acts_as_habtm_list) vs. going the :through route.
2005 Sep 18
5
NameError: uninitialized constant Addres
I created some scaffolding for an Address model and an Addresses controller.
When running the functional tests for the addresses controller, I get
this exception: "NameError: uninitialized constant Addres"
The exception seems to start from this function:
def list
@address_pages, @addresses = paginate :address, :per_page => 10
end
I''m guessing pluralization bug?
2006 Aug 03
0
Can''t set up rails: dispatch.cgi failed
Hi,
I''m trying to setup RoR on OpenBSD 3.9 with Ruby 1.8.4 and Apache 1.3.
I''ve setup Rails to run as a Virtual Host, and I can view the "Welcome
Aboard" page. When I try to access http://<server>/category/ though, I
get an "Application error...Rails application failed to start properly"
message. Apache.log has this error:
[error] (2)No such file or
2006 Aug 05
0
Rails requests return dispatch.cgi (or .fcgi) file contents
I''m running Apache2 with CGI and FastCGI alternatively. I''ve had a
problem that I haven''t been able to find more than a single reference to
online.
When my .htaccess file has the CGI rewrite rule in effect, my Rails app
works. When I change to FastCGI, all I get for Rails requests is the
contents of the dispatch.fcgi file.
Thinking I may have screwed something up
2006 Mar 07
0
dispatch.cgi errors
I''m trying to get my rails app running in regular cgi before moving to fcgi,
but i''m getting premature end of script headers errors in my server log.
I''m not sure how to debug this, and i would greatly appreciate some help.
Of course when i browse to my app, it says: Rails application failed to
start properly"
So far i''ve done:
I can run the console and
2006 Mar 30
2
Test output from dispatch.cgi --- Rails 1.1
Something weird started happening to me right after the 1.1 came out. I have an
app that has some ajax forms that I manipulate with RJS templates. Everything
was working fine on my deployment server until Rails 1.1. It still works fine
locally, but the ajax interaction just stopped working.
Last night, with the help of FireBug (on of the best Firefox plugins ever), I
noticed the problem. At
2006 Feb 18
1
Premature end of script headers:....dispatch.cgi
Hi all,
I have a working ruby app that I developed on Window and I am trying to
deploy it on Linox with Apache. The hosting company generated for me an
empty rails app and I just replaced the files that I modified in my app
(only rb/rhtml/css/js files).
In addition I updatd the database.yml but now I am getting either page
not found or
Application error
Rails application failed to start
2005 Jul 04
0
Error: Premature end of script headers: dispatch.cgi
Hi,
I''m hoping someone can help me with my setup. I''ve installed ruby
(1.8.2), gems (0.8.10), and rails (whatever was current as of about two
days ago). I''ve got an app (been trying the Todo tutorial) setup under a
virtual host as a subdomain (httpd.conf is setup according to directions
in
2007 Feb 04
1
dispatch.cgi -> Anonymous modules have no name
I upgraded to Rails 1.2.1 and deployed to my ISP, who has 1.2.1 ready
and waiting.
The site disappeared into an HTTP 500 error.
So I get into the site, run public/dispatch.cgi or dispatch.rb, and get this:
# ./dispatch.rb
Status: 400 Bad Request
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:405:in
`to_constant_name'': Anonymous modules have no
2006 Oct 28
2
Loaded suite dispatch.cgi Started Finished in 0.000166 secon
Loaded suite dispatch.cgi Started Finished in 0.000166 seconds. 0 tests,
0 assertions, 0 failures, 0 errors
why is this line showing?
I cant see it in any of my layout files
--
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
2006 Jan 17
5
Noob Question concerning code in Agile Web Development with Rails
Hi,
I''m currently learning Ruby on Rails using "Agile Web Development with
Rails." I am using RadRails as my development environment. Everything has
been going along well, until the end of chapter 7. Just before the end of
the chapter, we set up our store pages so that they can be styled with the
depot.css stylesheet. This is where I run into my problem. The stylesheet