[Rails] Re: user_signed_in? not working when change subdomain

2012-02-15 Thread Kausik Bakshi
My route file: Subdomain::Application.routes.draw do #devise_for :users devise_for :users, :controllers => {:registrations => "registrations", :sessions => "sessions"} root :to => "home#index" end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] user_signed_in? not working when change subdomain

2012-02-14 Thread Kausik Bakshi
I am trying some different with devise overload the devise session controller class SessionsController < Devise::SessionsController def new super end def create resource = warden.authenticate!(:scope => resource_name, :recall => :failure)

[Rails] Subdomain Redirect error

2012-02-13 Thread Kausik Bakshi
Hi I got error while I try this: My controller is : class SessionsController < Devise::SessionsController def new super end def create resource = warden.authenticate!(:scope => resource_name, :recall => :failure) if resource subdomain_name = current_user.account.subdomain

[Rails] request.subdomain Returns blank array

2012-02-09 Thread Kausik Bakshi
Hi I am a new Rails Developer My application_controller is: class ApplicationController < ActionController::Base protect_from_forgery before_filter :sshow def sshow puts "===" puts YAML::dump(request.subdomains) end end now when I put kausik.localhost:30

[Rails] redcar conflict netbeans

2012-02-03 Thread Kausik Bakshi
Hi I had a IDE netbeans now I have installed red car but after installing redcar my NETBEANS not working so I want to remove redcar from my local machine(ubuntu 10.10) when I put this in console: > sudo gem uninstall redcar I got WARNING: Invalid .gemspec format in '/usr/lib/ruby/gems/1.

[Rails] regular expression

2012-01-10 Thread Kausik Bakshi
I am very new in javascript and I want a regular expression for kausik-543678 here kausik- is fixed and the next integer field is dynamic I am trying to form a regular expression for kausik-123456 or kausik-45765677367567 or kausik-64747 please help Thanks in Advance Kausik -- Posted via

[Rails] How can I display model validation error in view page separately beside each form field

2012-01-02 Thread Kausik Bakshi
How can I display model validation error in view page separately beside each form field instead top grouping message Thanks in advance kauisk -- 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

Re: [Rails] Oh btw...

2012-01-01 Thread kausik bakshi
On Sun, Jan 1, 2012 at 5:06 AM, oS wrote: > HAPPY NEW YEAR > > from my I&iPhone > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this gr

[Rails] mongodb topic in rails

2011-12-06 Thread Kausik Bakshi
Hi I use mongoid for rails application and I try to do @users = User.where("first_name = ? OR last_name = ? OR type = ?", firstname, lastname, usertype) but I am getting error but when i put: @users = User.where(:first_name => firstname, :last_name => lastname, :type => usertype).all the program

Re: [Rails] Excellent Opening in Ruby on Rails

2011-11-18 Thread kausik bakshi
is group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > Hi This is KAUSIK having a experience of 1 year & 8 months on ROR. Currently I am in Kolkata and want to relocate with better opportunity. I attached my resume along with this mail. Thanks & Regards Kausik Ba

Re: [Rails] Social Networking

2011-10-25 Thread kausik bakshi
o unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > hi sayuj you can go: https://github.com/kausikbakshi/friends here you find an example of social netw

[Rails] Re: gdocs4ruby cannot work

2011-10-25 Thread Kausik Bakshi
hi Everaldo Actually this error is happen due to some other reason service.filesworking correctly but when I try to execute : service.folders it gets error: invalid response received: 403 GData4Ruby::HTTPRequestFailed: GDataServiceForbiddenException403.4 SSL required In previo

[Rails] gdocs4ruby cannot work

2011-10-25 Thread Kausik Bakshi
In previous I use gdocs4ruby to access Google document of my account from outside the google. I used the code inside my controller: require 'rubygems' require 'gdata' require 'gdocs4ruby' include GDocs4Ruby class DocumentController < ApplicationController def creat service = GDocs4Ruby::Servi