Displaying 20 results from an estimated 50000 matches similar to: "Cookie-SubDomain"
2013 Jun 24
1
How to send a cookie without having it CGI escaped
hi,
I''m trying to get a cookie to store in the format key=value@key2=value2 (
compatibility reasons over which I have no control ).
However, when the cookie get''s set, it is stored as
key%3Avalue%40key2%3Avalue2 which is what the CGI.escaped version
of key=value@key2=value2 looks like.
How can I set it without it being escaped?
Thanks in advance,
-a
--
You received
2012 Oct 30
0
Can't set a secure session cookie
I''m trying to set the session cookie secure flag to true. I added the
following to my environments/production.rb
ActionController::Base.session_options[:secure] = true
In the production mode I don''t see the set-cookie header in the server
response (I''m using the Tamper Data Firefox tool to view the traffic). I
tried removing all cookies, manually setting the domain
2011 Oct 27
1
creating subdomains
HI All,
I surfed a lot , googled a lot , read/watched railscasts but could not get
the solution.
Below is my problem.
1) I wanted a parent domain www.xyz.com. This parent domain will have two
subdomains abc.xyz.com and def.xyz.com.
The parent domain will have a admin user who has capability to create/manage
subdomains.
The subdomains should an a siteadmin user who can edit the site
2010 May 28
1
cookie has key/value pairs and lost order after JSON decode
If a cookie has several items, and is encoded as JSON text as the value
of the cookie, the order is actually apparent in the cookie''s text
But if JSON.decode is used:
ActiveSupport::JSON.decode(cookies[''item_list''])
and the result is actually in a hash, then the ordering is lost...
Is it true that if the original JSON object has an array of hashes (1
key and 1
2012 Mar 08
0
Safari Version 5.1.3 (7534.53.10) Browser problem --- removing cookie on OS X Lion 10.7.3 (11D50b) when still valid
Hi All,
Hope this note helps the newbies to Rails
As I''m new to Rails, I''d like to share how I tracked down Safari''s
dropping of my cookie.
My Applebug no: 11003492 registered 7 March/2012
My development platform:
MacPro running rails 3.1.1 on OS X Lion 10.7.3 (11D50b)
Problem:
Firefox worked as programmed but switching to Safari my
current_user_token kept in the
2009 Dec 16
0
Cookie encoding problem
Gurus,
I''m new to the rail stuff and didn''t find any answer to this on the
net:
1. In RoR I set a cookie to a value like "/foo/bar" (containing
slashes and other special chars)
2. In my bowser I see that the value is actually "%2Ffoo%2Fbar" (URL
encoded)
3. This cookie will be received by an app which does not decode the
URL encoded value
Is there a way to
2014 May 03
0
Putting form_authenticity_token (csrf token) in a cookie instead of in meta tags?
When you generate a default Rails app, it puts this in
application.html.erb:
<%= csrf_meta_tags %>
It does this so the remote forms can be submitted--i.e., so JavaScript can
submit a form. When jquery-rails is about to submit a form, it looks for
the <meta> tags named "csrf-param" and "csrf-token" and from them it
constructs a hidden
2013 Jul 14
2
Rails 4: Session Expiry?
I''ve been Googling this question for the past few hours, and I think it''s
time I simply ask this question myself.
I just made the switch from Rails 3.2 to Rails 4. I''m trying to make sure
I''m as up-to-speed as possible on security issues, and I''m concerned about
sessions right now. It looks like Rails 4 has moved away from supporting
really
2012 Aug 26
0
Undefined method `signed' for #<Rack::Test::CookieJar>
Hello,
In my integration test, I want to simulate the user cookie is set. I store
an authentication token as a stored cookie.
So in my test. I write:
cookies.signed[:authentication_token] = user.authentication_token
Unforunately, it sends me a Undefined method `signed'' for
#<Rack::Test::CookieJar> error.
What should I do?
--
You received this message because you are
2013 Jun 26
0
json text to text array migration questions
Hi,
I have field in postgres (9.2.4) with type json. The field looks like
Column | Type | Modifiers | Storage |
Stats target | Description
---------------------+-----------------------------+-----------+----------+--------------+-------------
my_id_field | json | | extended
| |
When I do "
2011 May 19
3
Cookie Overflow at CSV import
Hi
I have a form for importing a csv file. With every entry in my CSV I
do a delayed background call from a webservice and the result is then
saved to my database. This is working great!
Now I tried a CSV file with over 400 rows. After clicking import in my
form it takes some time and then I get the following error message:
''ActionDispatch::Cookies::CookieOverflow''. But
2010 May 28
0
dynamically generating subdomains using subdomain-fu
hi,
I am using subdomain-fu for creating subdomains . My doubt is how
can we give the subdomains in the etc/hosts ,when the sub-domains are
dynamicallybeing created.
Ex: i created a subdomain called "user1" and i specified this in etc/
hosts file.So eveery time i cant specify the subdomain which is being
created.So can i ovecome this problem.
--
You received this message because
2012 Oct 18
1
routing issue with mounted engine - Rails 3.2.8
I mounted the Forem::Engine in my app
MyApp::Application.routes.draw do
scope "/:locale" do
...
resources :sites, :only => [:none] do
get ''home'', :on => :collection
get ''events'', :on => :collection
end
..
mount Forem::Engine, :at => "/forums", :as => :forums,
constraints: lambda { |r|
2013 Mar 14
0
Display custom links above top level arrays using Jbuilder
I have a custom JSON response in which I display a collection of 15
posts along with related data like comments etc., as part of an API
call. I am displaying the entire collection using Jbuilder .
json.array!(@posts) do |post|
..
..
end
I want to display pagination links above the response of the 15 posts,
in order to get the next set of posts with the appropriate next set of
next page and
2014 Feb 14
0
Sender Email
Hi Friends,
how to add current user's email address for sender email using actionmailer.
*example*
mail(:to => user.email, :subject => "Thank you.", :from => "abc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org")
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop
2008 Jun 24
1
cross domain cookie
My rails server runs on localhost. I want to set a cookie for the
domain ".myapp.com". How do I do this?
(i tried cookies[''xyz] = {:value => ''abc'' ,:domain => ''.myapp.com''} .
It doesnt work. No cookie is being set when i specify domain like
that.
thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this
2012 Nov 09
8
method conditional option pattern
When I have this pattern
sign_me(@user, :event => :authentication, :subdomain => subdomain)
how can I write it to avoid sending the :subdomain option if subdomain.nil?
( if possible ..)
sign_me(@user, :event => :authentication #?, :subdomain =>
subdomain unless subdomain.nil? )
--
You received this message because you are subscribed to the Google Groups
2012 Nov 08
1
validates_uniqueness_of(*attr_names) w scope not working in unit test
Rails 3.2.8
Very strange , it works in dv mode console , but not in a unit test
class User < ActiveRecord::Base
belongs_to :subdomain
validates_uniqueness_of :email, :scope => :subdomain_id
class UserTest < ActiveSupport::TestCase
def initialize_user
@booboo = FactoryGirl.create(:subdomain, name: "booboo")
@coocoo = FactoryGirl.create(:subdomain, name:
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
2012 Dec 06
6
How to allow the user to user their own domain name
HI All,
I am currently having feature where my users to have a subdomain for their
account like xxx.myaddress.com,yyy.myaddress.com these will point to the
corresponding users .
How can I implement the feature where user can enter their own domain name
instead of sub domain?
regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe