Displaying 20 results from an estimated 900 matches similar to: "Mongrel 0.3.18, rails 1.1.6 and cookies"
2006 Apr 22
3
How to use Rails and REST
Hi,
I just wrote an article on how to easily create a REST API for
Ruby on Rails applications:
http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html
It describes how to create everything from the ground up and includes
information on testing your API too.
--
Thanks,
Dan Kubb
2006 Jul 28
2
s/IF_UNMODIFIED_SINCE/IF_MODIFIED_SINCE/ ???
I''ve noticed in the source code that Mongrel handles the
IF_UNMODIFIED_SINCE header. I thought this rather odd, since
IF_UNMODIFIED_SINCE is generally only useful with PUT. Even more odd
is that there is no mention of IF_MODIFIED_SINCE in Mongrel which is
useful with GET (although not as useful as IF_NONE_MATCH of course).
Is this a bug in Mongrel?
-Tim
2006 Mar 19
1
Rails and REST Example
Does anyone have an example of using REST and submitting data through
a POST operation and then possibly loading that data with
activerecord.
Also, if you have client code written in another language (java,.net,
C), would you have that code as well?
Berlin Brown
2006 Apr 29
2
iCal / Authentication / Site5 ?
So, I''m working on adding iCal support to my app. Since I want to restrict
users to their own calendars, form-based authentication isn''t going to work,
so I''m using the Basic HTTP Authorization from this page -
http://blogs.23.nu/c0re/stories/7409/
Everything works fine in my dev machine, but on the server (Site5), I get
the login prompt ad infinitum.
Has anyone run
2006 May 18
4
Email Address verifier--eyes needed...
Folks:
I''ve posted a really basic e-mail address verifier to
http://wiki.rubygarden.org/Ruby/page/show/VerifyEmailAddress
I''d appreciate folks who understand DNS and SMTP having a look at it
to see if it looks reasonable. You could comment here or, possibly
more usefully, comment on the wiki page itself.
Thanks
Dave
2006 Jan 08
22
Putting it all in one place with Schemas
I''m still relatively new to ROR, but I like what I see with the
database-neutral approach of Schemas. In the spirit of keeping it
simple and minimizing the number of files and location of information,
does ActiveState currently allow me to go ahead and place other low
level model information such as validation requirements and associations
inside the schema rather than putting it in
2006 Apr 18
10
Validates_ip_of
Hello all
After being told of a funky date validator I will ask again for another
validator :) Does anyone know of a plugin that validates that a field is
the correct syntax for an IP Address?
Thanks
Jeff
--
Posted via http://www.ruby-forum.com/.
2006 Aug 24
9
[slightly offtopic] A small, fast Apache2.2 (if there is such a thing)
Hi.
I''m using Apache2.2 built from source + mod-proxy + ssl + svn.
Everything works fine but I''m sure you I could disable a ton of
modules during the build process and in httpd.conf to speed things up
and run a tighter memory footprint.
Has anyone bothered building Apache2.2 from source disabling all the
unneeded modules.
I am planning on going through the Apache docs but I
2006 Apr 27
7
SuperImage plugin
Greetings all,
This is the first release of the SuperImage plugin. The idea is you
upload images to the database, and then pull them out at any size you
want. Combine this with caching and it will stay light and fast.
More info and instructions are here:
http://beautifulpixel.textdriven.com/articles/2006/04/27/superimage-plugin-making-resizeable-uploaded-images-easy
svn:
2005 Dec 31
4
saving a collection
Reading the Agile book, I can''t find a single command to save a collection.
The save command seems to operate on only individual objects.
Lets say I have a collection that I have received from a find_all command.
I want to go through and change some attributes in various objects in the
collection. Then I want to resave the whole collection back to the
database. I don''t think
2006 Aug 07
2
HTTP Pipelining
I am trying to understand why Mongrel so forcefully disables http
pipelining. The docs say because the spec is unclear, and it hurts
performance. These reasons smell... wrong. The HTTP spec is pretty
clear, and, er, I cannot find anywhere else that claims there is a
performance drawback, and lots of studies (and personal benchmarks
across years of writing webapps) showing how much it
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing
''end'' statement), I''m experiencing WSODs - the browser reports a lost
network connection, rather than the helpful compilation error that we
used to have.
When the compilation fails, ActionView#compile_template raises this
error :
TemplateError.new(find_base_path_for(file_name || template), file_name
||
2007 Oct 26
15
Adding see_other method to ActionController
303 (See Other) is the status code a resource returns to tell the
client about the new resource it just created (typically after a
POST). 301/302 is the status code some servers return to tell the
browser where to go next. It works because browsers ignore the
distinction and treat all three status codes the same way, and few
people understand the difference. But when developing an application
2006 Aug 07
16
Monthly billing and payment processor recommendations?
Hi,
I''m setting up a site that will bill on a monthly basis. I would
rather not have to worry about storing customer credit card
information. Does anyone have recommendations on payment processors
that offer monthly billing services?
I don''t want to go the paypal route as I want the user to stay on
the site. I''m hoping to find an API to integrate with. I have
2007 Jan 29
2
rspec and cookies
Hello
can anyone tell me how to test cookies using rspec? specifically, I''d like
to be able to set a cookie before a get/post request and also to test the
cookies which have been set by a get/post request
I know I can use cookies[:name] = ''value'' to set a cookie but how would I
set expiry information on such a cookie? when i try to pass a hash {:value
=>
2006 Mar 06
2
Cookies & gsub ?
I''m looking to store the current params into a/some cookie(s).
This works:
@params.each_pair do |this_index, this_param|
cookies[this_index] = this_param
end
Except, I get session-only cookies. This doesn''t work:
@params.each_pair do |this_index, this_param|
cookies[this_index] = {
:value => this_param,
:expires => 30.days.from_now
}
end
2012 Apr 25
8
showing error (gsub) when switching from session to cookies
I am newbie to rail. Trying to develop social networking site so working
with railspace application. Everything is working fine but I stuck in
the problem when i am giving the authorization tocken to the user to
remember him/her.
My Error and controller code is below
Error:-
private method `gsub'' called for 4:Fixnum
C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in
2006 Dec 06
5
Win32 gems for mongrel (0.3.18) and mongrel_service (0.3.1)
Hello Users!,
Since the pre-release 0.3.18 (last week) Lot of things happen in
ruby-land (check the DoS security bulletin, please).
Anyway, the win32 folks being left on the side of the road, and cannot
provide feedback of stability due lack of binaries for the latest
releases.
So, I managed to upload the pre-built gem to my host:
http://www.mmediasys.com/releases/mongrel-0.3.18-mswin32.gem
2009 Jul 02
2
Big help with shared subdomains cookies
Hi, i need that all the subdomains of an app (using subdomain_fu) use
''.domain.com'' as domain for all cookies.
I''ve set ActionController::Base.session_options[:domain] = ''.domain.com''
and it works...for just the session... how can i set this also for
common cookies ? (created with cookies[:name] = {:value => value,
:expires => 6.months.from_now} )
2006 May 11
5
Mongrel 0.3.13 Pre-Release -- Out of Hibernation
Hello Mongrel Fans,
After about a Month of busy work, bad computers, moving half my house
across the country, and other dramas, I''m finally pushing out the next
release of Mongrel.
This pre-release has lots of little goodies and the start of some
documentation that should get everyone primed for the big "Mongrel 0.4
Enterprisey Edition 1.2" coming real soon now.
INSTALLING