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.
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
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
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
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
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
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
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
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
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
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.
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?
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
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
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
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:
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
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
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
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
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
>
21 matches
Mail list logo