Re: [Rails] Re: rails is not recognized as an internal or external command

2015-09-02 Thread Colin Law
On 2 September 2015 at 00:58, Richard Beardwood wrote: >>I agree. I think the OP is calling ‘ruby -v’ and needs to install the >>rails gem. I’ve done this before on a fresh system. Should be able to >>do a “gem install rails” and move on from there. > > > Thanks. You are

[Rails] Re: ActiveRecord and consistent timestamps in transactions

2015-09-02 Thread Jan Raasch
Hi guys, same problem here. > As for my opinion on the matter, I think AR should not be setting the > time itself and it should be using the database NOW function. Totally agree. I feel like the Rails' behavior is very counterintuitive here. Have you taken the discussion else where? I would

Re: [Rails] Re: Rails 4 asset pipeline generates different digest in different environments

2015-09-02 Thread Walter Lee Davis
> On Sep 2, 2015, at 11:19 AM, Frederick Cheung > wrote: > > > >> On Wednesday, September 2, 2015 at 6:31:13 AM UTC+1, Sri wrote: >> >> What could explain this difference? Am I doing something wrong? Can I force >> asset digests to be created consistently? >>

[Rails] View and Submit entries in batches/slots

2015-09-02 Thread Aditi Thakur
I am designing a rails application in which there is model named race_timing which store the timings of students participate in different events.On view page names of student according to selected event and age group is displayed for entering the time taken by each individual to complete the

Re: [Rails] Re: Rails 4 asset pipeline generates different digest in different environments

2015-09-02 Thread gerbdla
I would imagine that it is because the secret key is different in each environment. On Wednesday, September 2, 2015 at 8:38:31 AM UTC-7, Walter Lee Davis wrote: > > > > On Sep 2, 2015, at 11:19 AM, Frederick Cheung > wrote: > > > > On Wednesday, September 2, 2015 at

[Rails] Re: Rails 4 asset pipeline generates different digest in different environments

2015-09-02 Thread Frederick Cheung
On Wednesday, September 2, 2015 at 6:31:13 AM UTC+1, Sri wrote: > > > What could explain this difference? Am I doing something wrong? Can I > force asset digests to be created consistently? > > > Are the files definitely identical? Fred > -- You received this message because you are

[Rails] Re: [JOB] Looking for RoR Job (Fresher)

2015-09-02 Thread Manoj Mishra
Deepak Sharma wrote in post #1178439: > Currently, I have completed my B.Tech in I.T from GNDEC in may 2015. I > am looking for the job mainly as full time Ruby on Rails developer. > Are there are opportunity for the same. I have attached my CV. > > Please contact me on my email id :

[Rails] Which time zones make the list in ActiveSupport::TimeZone?

2015-09-02 Thread Andrew Goodnough
The documentation for ActiveSupport::TimeZone says one of the goals for the class is to "Limit the set of zones provided by TZInfo to a meaningful subset of 146 zones." Is there a canonical reference for these 146? It seems to me you'd want all the Time Zones defined by the TZInfo gem which in

[Rails] RubyConf giveaway (free ticket)

2015-09-02 Thread Pedro Oliveira
Hey guys and girls, I'm giving a free ticket for RubyConf (Braga, Portugal), register here: landing.jobs/london/rubyconf. I will only deliver in hand to London residents. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

Re: [Rails] View and Submit entries in batches/slots

2015-09-02 Thread Colin Law
On 2 September 2015 at 17:26, Aditi Thakur wrote: > I am designing a rails application in which there is model named race_timing > which store the timings of students participate in different events.On view > page names of student according to selected event and age group

[Rails] Rails app crashing on Heroku! Railstutorial.org app

2015-09-02 Thread Farmer Clause
Hi, could really use some help! I've finished Chapter 11 but my Heroku app won't load. My carrier_wave.rb reads: if Rails.env.production? CarrierWave.configure do |config| config.fog_credentials = { # Configuration for Amazon S3 :provider => 'AWS', :aws_access_key_id

[Rails] Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, The query which i am using on my form is : = f.select(:word_ids, Word.order(:text).collect {|w| [ w.text, w.id ] }, { label: "Words" }, { multiple: true }) I am able to select a value from dropdown list of values.If i want to select the same value again then i can't see that value

[Rails] Dropdown List

2015-09-02 Thread Milley Duke
Hi, When I am selecting a particular value from DropDown(values are being populated from DB), is it possible to show the same value in dropdown. Currently,when i am selecting any value from the dropdown the selected value is no longer visible in the dropdown list. Need a help as i have to

Re: [Rails] Dropdown List

2015-09-02 Thread Colin Law
On 2 September 2015 at 12:21, Milley Duke wrote: > Hi, > > When I am selecting a particular value from DropDown(values are being > populated from DB), is it possible to show the same value in dropdown. > > Currently,when i am selecting any value from the dropdown the

Re: [Rails] Re: Re: Re: Dropdown List

2015-09-02 Thread Colin Law
On 2 September 2015 at 14:26, Milley Duke wrote: > Hi Colin, > > Its happening through javascript. In that case I think it highly likely that the javascript is causing the other problem. What happens if you disable javascript in the browser? Colin > > Colin Law wrote in

Re: [Rails] Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Colin Law
On 2 September 2015 at 14:32, Milley Duke wrote: > Hi Colin, > > By disabling javascript, the drop down is not working properly. What do you mean, not working properly? By the way, it would help me if you could insert your replies inline rather than top posting as it makes

Re: [Rails] Re: Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Colin Law
On 2 September 2015 at 14:45, Milley Duke wrote: > Colin Law wrote in post #1178491: >> On 2 September 2015 at 14:32, Milley Duke wrote: >>> Hi Colin, >>> >>> By disabling javascript, the drop down is not working properly. >> >> What do you mean, not

Re: [Rails] Rails 4 asset pipeline generates different digest in different environments

2015-09-02 Thread Stewart Mckinney
Why is this an issue? Typically speaking this should be transparent at the application layer all the time. If you need another app or service to be able to access images on your app you should expose that through an API. On Wed, Sep 2, 2015 at 12:45 AM, Sri wrote:

[Rails] Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, Its happening through javascript. Colin Law wrote in post #1178483: > On 2 September 2015 at 14:02, Milley Duke wrote: >> Hi Colin, >> >> Thanks for the reply. By inspecting the element I am able to see the >> value in dropdown however I am not able to select

[Rails] Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, By disabling javascript, the drop down is not working properly. Thanks, Ekta Colin Law wrote in post #1178488: > On 2 September 2015 at 14:26, Milley Duke wrote: >> Hi Colin, >> >> Its happening through javascript. > > In that case I think it highly likely that

[Rails] Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, We are using select2.js jquery plugin. Thanks, Milley Milley Duke wrote in post #1178484: > Hi Colin, > > Its happening through javascript. > > Colin Law wrote in post #1178483: >> On 2 September 2015 at 14:02, Milley Duke wrote: >>> Hi Colin, >>> >>> Thanks for

[Rails] Re: Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Colin Law wrote in post #1178491: > On 2 September 2015 at 14:32, Milley Duke wrote: >> Hi Colin, >> >> By disabling javascript, the drop down is not working properly. > > What do you mean, not working properly? > > By the way, it would help me if you could insert your

[Rails] Sunspot Error

2015-09-02 Thread Gulab Sherieff
Hi, I am geting following erro when i try to implement "Search" using Sunspot in rails. Connection refused - {:data=>"fq=type%3AList=0=30=*%3A*", :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :headers=>{"Content-Type"=>"application/x-www-form-urlencoded; charset=UTF-8"},

[Rails] Re: rails is not recognized as an internal or external command

2015-09-02 Thread Sebastian Calvo
Hi, I'll recommend you http://railsinstaller.org for windows, it works like a charm. Regards Sebastian Calvo El martes, 1 de septiembre de 2015, 16:33:52 (UTC-3), Ruby-Forum.com User escribió: > > I have just installed Ruby on Rails on Windows 8 and tested it including > checking the

[Rails] Re: Sunspot Error

2015-09-02 Thread Sebastian Calvo
Hi, Do you ran the rake task that starts sunspot? Estracted from the sunspot install instructions... Bundle it! bundle install Generate a default configuration file: rails generate sunspot_rails:install If sunspot_solr was installed, start the packaged Solr distribution with: bundle exec

[Rails] Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Hi Colin, Thanks for the reply. By inspecting the element I am able to see the value in dropdown however I am not able to select that value.It's always selecting the next value when i am clicking on that value. Also, I am not able to see the blue color background on the value which was

Re: [Rails] Re: Dropdown List

2015-09-02 Thread Colin Law
On 2 September 2015 at 12:39, Milley Duke wrote: > Hi Colin, > > The query which i am using on my form is : > > = f.select(:word_ids, Word.order(:text).collect {|w| [ w.text, w.id ] }, > { label: "Words" }, { multiple: true }) > > I am able to select a value from dropdown

Re: [Rails] Re: Re: Dropdown List

2015-09-02 Thread Colin Law
On 2 September 2015 at 14:02, Milley Duke wrote: > Hi Colin, > > Thanks for the reply. By inspecting the element I am able to see the > value in dropdown however I am not able to select that value.It's always > selecting the next value when i am clicking on that value. > >

[Rails] Re: how testing associated objects?

2015-09-02 Thread Matt Jones
On Tuesday, 1 September 2015 14:40:39 UTC-4, Ruby-Forum.com User wrote: > > please help solve the problem. > > poll controller: > > class PollsController < ApplicationController > def index > @user = User.find(params[:user_id]) > @polls = @user.polls.paginate(page: params[:page],

[Rails] Re: Re: Re: Re: Re: Re: Dropdown List

2015-09-02 Thread Milley Duke
Colin Law wrote in post #1178493: > On 2 September 2015 at 14:45, Milley Duke wrote: >>> This is a mailing list not a forum, though you may be accessing it via >>> a forum-like interface. Thanks. >>> >>> Colin >> >> Hi Colin, >> >> Sorry for the replying that way.Will keep

Re: [Rails] Rails 4 asset pipeline generates different digest in different environments

2015-09-02 Thread Stewart Mckinney
Ahh. Are you using S3 for image hosting and see broken links on dev because it uses a copy ( shallow or otherwise ) of another environments data? On Wed, Sep 2, 2015 at 10:06 AM, Stewart Mckinney wrote: > Why is this an issue? Typically speaking this should be