Displaying 20 results from an estimated 8000 matches similar to: "cookies are mandatory for Rails app?"
2009 Apr 21
12
still cannot install rails on windows
if i follow the instructions on:
http://agilo.us/2009/03/15/rails-on-windows/
the command
gem install sqlite3-ruby
will give
---------------------------------
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
c:/ruby/bin/ruby.exe extconf.rb
checking for fdatasync() in rt.lib... no
checking for
2008 Dec 19
3
Recommended way of restricting action permissions?
Hi, I just have a "best practices" question. I''d like to block users
that don''t own a particular resource from performing edit/update/
destroy actions on it. Here''s how I currently do it:
## User has many resources, of different types
------- resource_controller.rb -------
before_filter :require_ownership, :only => [:edit, :update, :destroy]
... public
2007 Sep 28
2
RoR uses something rather than erb or eRuby?
it seems that RoR doesn''t use erb or eRuby to generate its output for
rhtml?
the program erb and the description of eRuby at
http://www.eruby.info
both said that
<% print "foo bar" %> or <% puts "hello" %>
will be placed into the output...
but currently for RoR, it won''t...
only <%= expr %> is doing it and it cannot be print or
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to
login if a different subdomain is accessed. I have found a couple rails
"solutions", but none of them seem to work:
# development.rb
1. ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key]
= ".localhost"
2. ActionController::Base.session_options[:key] = ".localhost"
Does anyone
2010 Sep 19
4
Rails 2.3.8 - InvalidAuthenticityToken problem. URGENT!
I used to have Simple Captcha installed, but since I removed it I got
all kinds of problems with login.
Processing UsersController#login (for 188.177.122.179 at 2010-09-19
12:21:09) [POST]
Parameters: {"commit"=>"OK", "authenticity_token"=>"/
Y0aZETCsMhyI3CkrZJK6O2NaLEoi+LRe8ZuDPWU9kc=",
2008 Mar 19
7
Upgrade to 2.0.2: InvalidAuthenticityToken error on 1st POST
All,
I''ve upgraded to 2.0.2, and I can''t get my login screen (the first POST
request in the application) to work.
When I post this form, I see the "InvalidAuthenticityToken" error.
I have
protect_from_forgery :secret => ''my_secret''
set in application.rb
and I am using an active_record session store based on this line in
environment.rb:
2008 Nov 11
4
Very weird rake message...
When I try and run rake db:migrate, I get this error:
rake aborted!
uninitialized constant CreateUsers
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:266:in `load_missing_constant''
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:453:in `const_missing''
2009 Jul 02
8
rails hyperthreading on Quad core
Hi, my video sharing website (politube.org) that I developed with rails,
runs on lighttpd/fcgi (I know it is obsolete by now) and is severely
under load and regularly blocks because the lighttpd process chews up
50% of RAM (1GB).
So now I want to move the system to a new server with 8GB, 64bit ,
Quad core processor (intel i7 920) but I am not sure if hyperthreading
will really do anything better.
2008 Apr 15
4
InvalidAuthenticityToken exception when deleting cookies
Hello,
I''ve been testing my project with some manual tests. One of them
consists of deleting cookies ("clean personal info" in firefox) just
before submit the login form. Then, I get an error.
The error message is: ActionController::InvalidAuthenticityToken in
SessionsController#create
I''m on Rails 2.0.2 with restful_authentication plugin. I''m using
2007 Oct 05
3
Do migration support MySQL BIGINT
hi,
just wondering do migration support MySQL BIGINT ?
what if i wanna create a migration with BIGINT ? should i use SQL
directly ?
kiwi
--
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
2009 May 24
1
is f.submit in a form_for newer than submit_tag?
some books or even the rails api uses
form_for ...
...
submit_tag ...
end
and i found that the Rails 2.3.2 Scaffold uses
f.submit "Go"
instead... and this is not in the rails api doc. Is this a new
addition and is it suppose to replace submit_tag?
--
Posted via http://www.ruby-forum.com/.
2009 May 26
1
how does form_for and validate_presence_of work hand in hand
when we have validate_presence_of :name in the model and then when we
put in the create action that we re-render ''new'', then the form_for will
populate the fields, and error_messages_for ''story'' will have the
correct error message.
this is really great, and and the same time, this looks like magic... i
found that many books don''t explain how the magic
2009 Feb 17
8
Converting Acts_As_Tree to Acts_As_Nested_Set
Hello,
I have a tree structure that needs to be converted into a nested set.
A great deal of work has already been done on the tree items, so
maintaining the integrity of the id''s is mandatory. However I need
the ability to access entire branches of the tree, which is what
Nested set does. Does anyone have any suggestions on how to
efficiently transfer the tree to the nested set and
2010 Feb 22
4
"the change you want was rejected. Maybe you changed something you didn't have access to.""
Anyone ever get an error message such as this?
"the change you want was rejected. Maybe you changed something you
didn''t have access to.""
I haven''t been able to see this in testing, but I''m getting reports
out on the field from a few users trying to register to one of my
websites.
-S
--
You received this message because you are subscribed to the
2009 Mar 16
15
DEV Laptop : Ubuntu or Centos , Netbeans or Eclipse ?
After doing some playing around RoR ,now is time to make it real and
start making money..
The target for now is to make simple website and get used to new
tecnology
(Github , capistrano and so on)
Now I need to install the new DEV machine but ....
Ubuntu (deb) or Centos (rpm)
Netbeans or Eclipse
Which combination is better ?
--
Posted via http://www.ruby-forum.com/.
2008 Jul 17
4
A Mongrel parsing bug: "&" and "&"
When using url_for to send path to a script (such as with
auto_complete), multiple params are joined with the "&" code. For
example:
text_field_with_auto_complete :blog :post, {}, { :posts_path(:a =>
1, :b => 2), :method => :get }
Produces this script:
var blog_post_auto_completer = new Ajax.Autocompleter(''blog_post'',
2009 Jul 15
6
Single Sign-on for two rails app
Hello Everybody,
I have two rails app. Both have login pages for user authentication. The
two apps have links to one another. Now what i need is when a user logs
in to one app, he should not be again asked for login when he clicks the
link for second app.
Please tell me how to go on?
Thanks in advance,
Ak
--
Posted via http://www.ruby-forum.com/.
2007 Dec 23
3
InvalidAuthenticityToken problems with my login form
I am trying to convert my codeand to use the new Rails 2.0 feature
RequestForgeryProtection
but I get an InvalidAuthenticityToken error, right from the beginning
with my login form..
I followed the recommandations :
in my environment.rb
config.action_controller.session = {
:session_key => ''myappname'',
:secret =>
2007 Aug 09
2
Rmovie on windows
Can rmovie be installed in a windows environment?
When I run "gem install rmovie".
It gives the following error:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install rmovie
''make'' is not recognized as an internal or external
2008 May 22
2
Getting InvalidAuthenticityToken errors quite often
How often is the authenticity token updated?
The latest error that I got was a submittal of a form, an model
validation occured, I click back, make the correction, resubmit the
form, then I get an InvalidAuthenticityToken error.
Somewhat off topic
If a person is using the authenticity tokens is there still a need to
use some sort of captcha?
Thanks
--
Posted via http://www.ruby-forum.com/.