[Rails] facebook id

2013-10-07 Thread daynthan kabilan
Hi friends, I am using omnicontats gem for import gmai, yahoo, facebook and hotmail friends. i need my login detail in facebook. @contacts = request.env['omnicontacts.contacts']@user = request.env['omnicontacts.user'] i got my friends detail in @contacts but i need my details. @user is

[Rails] Capybara throws printer errors with every test

2013-10-07 Thread Andy Joel
I am in the process of upgrading from Rails 3 to 4. Whenever I run a test I always get two errors like this: Capybara::Rails::TestCase#test_printer_url: ActionController::UrlGenerationError: No route matches {:action=test, :controller=printers} missing required keys: [:id] If I test all my

[Rails] Where on Ubuntu is Rails?

2013-10-07 Thread RVince
I followed the setup instructions for a fresh install of Mint15 according to this excellent tutorial : http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ which sets up via rvm. I followed the instructions therein, but when I am in my ~ directory, i get: user@Mint15Mate64 ~ $ rails

[Rails] How do I tell roo to open a paperclip attachment after uploaded to later processing?

2013-10-07 Thread Monserrat Foster
Hello, I'm new to ruby and rails... I was planning to use the spreadsheet gem to open the files but it doesn't support xlsx. I saw this as an example on how to do the same using paperclip @workbook = Spreadsheet.open(MyFile.first.attachment.to_file) I imagine with roo would be something like #

Re: [Rails] Where on Ubuntu is Rails?

2013-10-07 Thread Colin Law
On 7 October 2013 14:40, RVince rvinc...@hotmail.com wrote: I followed the setup instructions for a fresh install of Mint15 according to this excellent tutorial : http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ which sets up via rvm. I followed the instructions therein, but when I

[Rails] Re: Where on Ubuntu is Rails?

2013-10-07 Thread RVince
user@Mint15Mate64 ~ $ rvm info ruby-2.0.0-p247: system: uname: Linux Mint15Mate64 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux system: mint/15/x86_64 bash:/bin/bash = GNU bash, version 4.2.45(1)-release

[Rails] websockets versus ajax polling ?

2013-10-07 Thread wbsurf...@yahoo.com
I recall I did a small project a couple of years ago with websockets/faye plugin. It was a little complex, but I was wondering if many people use websockets in stead of what seems like the more typical ajax polling and is it very easy to implement in sinatra ? -- You received this message

Re: [Rails] Re: Where on Ubuntu is Rails?

2013-10-07 Thread Colin Law
Please quote the previous message when replying as it makes it easier to follow the thread. Thanks. On 7 October 2013 15:19, RVince rvinc...@hotmail.com wrote: user@Mint15Mate64 ~ $ rvm info ruby-2.0.0-p247: system: uname: Linux Mint15Mate64 3.8.0-19-generic #29-Ubuntu SMP Wed

[Rails] Omni_auth with Facebook

2013-10-07 Thread Rosy Catz
Hi, I've implemented the sample app with omni_auth('0.2.6'). I'm using rails 2.3.11 with ruby 1.8.7. I tried to connect with Facebook but getting oauth error. I tested it with twitter google plus account. Both are working fine but the FB connects is not working yet. Can you please help me

[Rails] Get current url

2013-10-07 Thread Daynthan Kabilan
Hi friends, i need current url in rails environment file. i can get current url in conroller by the below command. request.env['HTTP_HOST'] and now i want get current url in environment.rb file or intializer folder files Regards, Daya. -- You received this message because you are subscribed

[Rails] Re: Where on Ubuntu is Rails?

2013-10-07 Thread RVince
Colin, ~/bash_profile has only the following line: [[ -s $HOME/.rvm/scripts/rvm ]] source $HOME/.rvm/scripts/rvm # Load RVM into a shell session *as a function* when I reload bash profile: . ~/.bash_profile rails works -- it's recognized by the. I have since rebooted since installing

Re: [Rails] Get current url

2013-10-07 Thread Colin Law
On 7 October 2013 15:49, Daynthan Kabilan dayantha...@gmail.com wrote: Hi friends, i need current url in rails environment file. i can get current url in conroller by the below command. request.env['HTTP_HOST'] and now i want get current url in environment.rb file or intializer folder

Re: [Rails] Get current url

2013-10-07 Thread Scott Ribe
On Oct 7, 2013, at 8:49 AM, Daynthan Kabilan dayantha...@gmail.com wrote: and now i want get current url in environment.rb file or intializer folder files There is no current url at initialization time. What are you trying to do? -- Scott Ribe scott_r...@elevated-dev.com

Re: [Rails] Re: Where on Ubuntu is Rails?

2013-10-07 Thread Colin Law
On 7 October 2013 15:52, RVince rvinc...@hotmail.com wrote: Colin, ~/bash_profile has only the following line: [[ -s $HOME/.rvm/scripts/rvm ]] source $HOME/.rvm/scripts/rvm # Load RVM into a shell session *as a function* when I reload bash profile: . ~/.bash_profile rails works --

Re: [Rails] Get current url

2013-10-07 Thread Daynthan Kabilan
hi friends first thanks for your immediate reply. i am using omnicontacts for import friends concepts. so i created google api key that redirect uri is http://example.com/contacts/gmail/callback if i enter http://example.com that time i got correct reply if i enter http://www.example.com that

[Rails] Translate nested model errors

2013-10-07 Thread Serafino Picozzi
Hi! In rails 4, how do you translate model and attributes names for models with accepts_nested_attributes_for? Everything works fine except for the error messages of the nested model. Here's what I have so far (without my attempt to translate the nested model: activerecord: errors: :

[Rails] ruby script/plugin install ...

2013-10-07 Thread RVince
I am trying to migrate a rails app from the rails 2.x world (which was the last time I worked with rails) and I'm trying to run the command: ruby script/plugin install git://github.com/activescaffold/active_scaffold.git --force which returns:

[Rails] rails_admin problem in raoutes, parallel login area in devise

2013-10-07 Thread mukul saharia
hello friends, i am using rails_admin as webapp admin interface. it create a User model by default using Devise gem. after that i am creating another authorization area member. now /admin route change to /member/sign_in from user/sign_in. any body have idea how to create a parallel login area

[Rails] Re: Omni_auth with Facebook

2013-10-07 Thread Robert Walker
Rosy Catz wrote in post #1123747: Hi, I've implemented the sample app with omni_auth('0.2.6'). I'm using rails 2.3.11 with ruby 1.8.7. I tried to connect with Facebook but getting oauth error. I tested it with twitter google plus account. Both are working fine but the FB connects is not

[Rails] Trouble with rspec and FactoryGirl Sequence

2013-10-07 Thread Ray G.
I'm following Michael Hartl's Ruby on Rails 3 Tutorial but I'm using Rails 3.2.8 and FactoryGirl 4.2.0 and rspec 2.14.1 I'm in chapter 10 trying to generate tests for pagination (using will_paginate 3.2.5 which works fine in dev) I can get FactoryGirl to test just fine if I don't use Sequence

[Rails] Re: Omni_auth with Facebook

2013-10-07 Thread Rosy Catz
Well Thanks for your reply. Atually i want to integrate this omni-auth with my existing rails 2.3 project so only tried with sample. The file omniauth.rb under initializers is not accepting getting issue for ActionController::Dispatcher. Can you please help me what i missed?. Robert Walker wrote