Re: [Rails] Facing dependency error for "faraday"

2013-06-17 Thread Colin Law
On 18 June 2013 00:25, Fahim Patel wrote: > Hi, > > Please solve below dependency. > > > Bundler could not find compatible versions for gem "faraday": > In Gemfile: > swiftype (>= 0) ruby depends on > faraday (~> 0.8.1) ruby > > context-io (>= 0) ruby depends on > faraday (0.

Re: [Rails] How to capture IP address in ruby 1.8.7

2013-06-17 Thread Rafi A
How about using *request.remote_addr ?* Regards, Seeni Rafiyullah Khan A, ** On Tue, Jun 18, 2013 at 1:56 AM, Khan wrote: > Hi all, I want to capture IP address in ruby 1.8.7 can any one help me out > how to capture IP. > > > > Thanks in advance > > -- > You received this message because you

Re: [Rails] How to capture IP address in ruby 1.8.7

2013-06-17 Thread sameena Khan
I have tried with request.remote_ip.But this works in rails not in ruby. I have to pass ip address as a parameter. On Tue, Jun 18, 2013 at 11:26 AM, Khan wrote: > Hi all, I want to capture IP address in ruby 1.8.7 can any one help me out > how to capture IP. > > > > Thanks in advance > > -- > Y

[Rails] How to capture IP address in ruby 1.8.7

2013-06-17 Thread Khan
Hi all, I want to capture IP address in ruby 1.8.7 can any one help me out how to capture IP. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [Rails] Where does bundler installs a git gem locally?

2013-06-17 Thread Tamara Temple
Colin Law wrote: > On 17 June 2013 21:00, Wins Lin wrote: > > I want to use a gem from git. So in app's Gemfile I write: > >> gem "some_gem" :git => https://github.com/foo/bar.git > > > > Then I have to install that gem with bundler: > >> bundler install > > or > >> bundler update bar > > > > Whe

Re: [Rails] Can't initialize a new Rails application

2013-06-17 Thread Tamara Temple
Your issue isn't really with rails, it's in understanding the *nix directory structure and how to use the command line, I think. If you open your Finder, and go to your home directory, you will probably see a folder there called "profile". When you are in the Terminal, the prompt: Tjtog-iMac:~ te

Re: [Rails] Migration?

2013-06-17 Thread Tamara Temple
Don't use migrations to set data, use seeds for that if you must. Using migrations can lead to inabilities to rollback if need be. The exceptions to this are cases where model relationships or default values need to be set to have the application work. Your example is not such a case. -- You rec

Re: [Rails] Rails 3 application capable of generating an offline version of itself for download as zip archive

2013-06-17 Thread Tamara Temple
HernĂ¡n Lucas P. wrote: > I'm kinda newbie in RoR yet and I'm having a hard time trying to figure > out how should I implement this. I'm writing an application to store and > display information about insects and their distribution. Currently I > have almost all functionality implemented, except fo

Re: [Rails] Re: Good Rubyistic way Looking for nokogiri program

2013-06-17 Thread Tamara Temple
not sure what this has to do with rails -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this

Re: [Rails] Setting up a rails app in a relative path (using Apache and Passenger)

2013-06-17 Thread Tamara Temple
Paul wrote: > This seems like it should be a common problem, but I haven't been able to > google for the right terms, evidently... It is. > I'm trying to set up my rails app, not to the base domain name, but to a > relative path. That is, the server already hosts an app at the domain, > and I

[Rails] Facing dependency error for "faraday"

2013-06-17 Thread Fahim Patel
Hi, Please solve below dependency. Bundler could not find compatible versions for gem "faraday": In Gemfile: swiftype (>= 0) ruby depends on faraday (~> 0.8.1) ruby context-io (>= 0) ruby depends on faraday (0.7.6) I follow below links but not getting:- 1.

[Rails] Where to find groups to discuss rails source code?

2013-06-17 Thread Steven Yang
Hi, Recently, I begin to read the source code of rails to learn more about the internal workings and design patterns of this framework. From time to time, I found I might want to discuss the way things are written. Is there a dedicated group or irc channels for this sort of discussion?

[Rails] Re: Migration?

2013-06-17 Thread Ankit Varshney
You should add attr_accessible :name in model. In latest version of rails all the attributes of model are bt default protected. On Monday, June 17, 2013 9:06:57 AM UTC+5:30, Clay McCullough wrote: > > Hello, I am fairly new to rails, and I keep having an error in my > migrations, cant mass assi

Re: [Rails] Where does bundler installs a git gem locally?

2013-06-17 Thread Colin Law
On 17 June 2013 21:00, Wins Lin wrote: > I want to use a gem from git. So in app's Gemfile I write: >> gem "some_gem" :git => https://github.com/foo/bar.git > > Then I have to install that gem with bundler: >> bundler install > or >> bundler update bar > > When I do this all works just fine, the g

[Rails] Where does bundler installs a git gem locally?

2013-06-17 Thread Wins Lin
I want to use a gem from git. So in app's Gemfile I write: > gem "some_gem" :git => https://github.com/foo/bar.git Then I have to install that gem with bundler: > bundler install or > bundler update bar When I do this all works just fine, the gem from git is in use. But where is that gem locally

[Rails] Re: Bootstrap: How do I change the black bar at the top?

2013-06-17 Thread Nick van der Wildt
Additional tips, using the railstutorial from Michael Hartl: 1. Where you have specified the navbar html, remove navbar-inverse if it's there.. it should give you the default light-grey navbar 2. Open up app/assets/stylesheets/custom.css.scss 3. Add and customise the values of: $navbarBackground:

[Rails] Re: Bootstrap: How do I change the black bar at the top?

2013-06-17 Thread Nick van der Wildt
You'll have to customise it by using sass. Read here on how to do that: https://github.com/thomas-mcdonald/bootstrap-sass#configuration The bootstrap variables you can use can be found in: http://twitter.github.com/bootstrap/customize.html#variables Hope this works out for you! -- Posted via ht

[Rails] Re: How to add observer to namespace model?

2013-06-17 Thread Bruno C.
with Rails 3.1 this worked for me: config.active_record.observers = [ :"Admin::BusinessObserver" ] Came up from looking at how the active_record.observer list is parsed in gems/1.8/gems/activemodel-3.1.0/lib/active_model/observing.rb line 86 Bruno Ankit Varshney wrote in post #907087: > I

[Rails] Re: Can't initialize a new Rails application

2013-06-17 Thread Nick van der Wildt
Here's what I think happened. You created your first Ruby application called "profile".. it generated successfully and terminal opened up the directory. Now you want to create another rails app, but terminal is still in that rails directory of "profile" (hence the name profile next to your imac

[Rails] Re: Can't initialize a new Rails application

2013-06-17 Thread Timster
Your computer name did not change. Your computer name is Tjtog-iMac. The part after the ":" is the directory you are in. At first you were in "~" which is your home directory. Then you were in "profile" which is the directory of the rails app you created. Can you confirm what directory you are

Re: [Rails] Migration?

2013-06-17 Thread Colin Law
On 17 June 2013 06:31, William Herry wrote: > try add `Project.reset_column_information` before Subject.create Or even Subject.reset_column_information Colin > > > On Mon, Jun 17, 2013 at 11:36 AM, Clay McCullough wrote: >> >> Hello, I am fairly new to rails, and I keep having an error in my >