[Rails] Looking to hire a Senior Level Ruby Developer (Ownership offered)

2015-03-24 Thread Kevin Lyon
I have a ruby platform that is 90% built by someone very skilled in Ruby. My old partner and I had a falling out and I am buying his share of the company out. I am looking to hire someone to finish the platform (90% done) in exchange for upfront money and ownership in the venture. Thanks Ke

[Rails] NokoGiri / DevKit Issue?

2015-03-24 Thread write . tman
I was wondering what you recommended for Rails as it relates to working on Windows / present configuration recommendations for Windows? Use the older version for now? Run it without DevKit / SQLite, etc.? See the below: http://stackoverflow.com/questions/2806/require-cannot-load-such-file-no

[Rails] PRB RAILS (I am a beginner)

2015-03-24 Thread NENESSE KEROS
Hi, Excuse me for my english. After some difficulty, I managed to install Ruby 2.2.1 and Rails 4.2.1 on a machine windows 7 32-bit. After create test project (rails new first_app) When when I do rails server in folder first_app I obtains : c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-ming

Re: [Rails] Help with habtm

2015-03-24 Thread Colin Law
On 24 March 2015 at 18:50, Gm wrote: > Hi, > > I'm using habtm to create a relationship between two models: > > class Question < ActiveRecord::Base > has_and_belongs_to_many :exams > end > > class Exam < ActiveRecord::Base > has_and_belongs_to_many :questions > end > > At some point I'm doing

Re: [Rails] Looking for advice on Websockets and Rails

2015-03-24 Thread Olivier Batard
Hi, Thanks, I'll look into volt, seems promising. Le mardi 24 mars 2015 20:59:37 UTC+1, Antônio Augusto Sousa Britto a écrit : > > try Volt, it seems suitable for your purposes, since its connectin already > relies on websockets. > > Att, > >[image: --] > Antonio Augusto > [image: http://]a

Re: [Rails] Looking for advice on Websockets and Rails

2015-03-24 Thread Antônio Augusto Sousa Britto
try Volt, it seems suitable for your purposes, since its connectin already relies on websockets. Att, [image: --] Antonio Augusto [image: http://]about.me/aaugusto

[Rails] Help with habtm

2015-03-24 Thread Gm
Hi, I'm using habtm to create a relationship between two models: class Question < ActiveRecord::Base has_and_belongs_to_many :exams end class Exam < ActiveRecord::Base has_and_belongs_to_many :questions end At some point I'm doing this: class Exam < ActiveRecord::Base has_and_belongs_to

[Rails] Looking for ROR part time , 2 + years experience in ROR

2015-03-24 Thread MYK
Hello guys, 2+ years of IT experience in design, development and testing of various web applications using Ruby on Rails. Agile Methodologies Well-versed in Developing software applications using Ruby and Ruby on Rails, JQuery, HTML, CSS, Ajax, Angular JS Have hands on experience using Twitte

Re: [Rails] Accessing a "helper" method "foo" defined in a controller, in a .js file

2015-03-24 Thread Neeraj Murarka
Oh, and I am not rendering request-specific data. To put it more directly, the data needed in this helper is in a database table. I just need to look it up in the table and then do some stuff related to it in the js file. I can do this right at precompile time. What alternatives are there? On

Re: [Rails] Accessing a "helper" method "foo" defined in a controller, in a .js file

2015-03-24 Thread Neeraj Murarka
Hi Daniel. Thanks very much for the response. The fact that they are precompiled at deployment might explain why I have been finding it excruciatingly hard to figure this out. If I went with the approach of adding a JS block into my html.erb file, it would be slower, I suspect. But would it m

[Rails] Re: Rails Tire

2015-03-24 Thread Frederick Cheung
On Tuesday, March 24, 2015 at 4:35:10 PM UTC, Андрей Молчанов wrote: > > > BusinessCenter.search(:load => { :include => 'offices' }) do > query { string '*' } > filter :term, "offices.retail" => true > end > and its get empty array > > => #4, > "timed_out"=>false, "_shards"=>{"total"=>5

[Rails] Rails Tire

2015-03-24 Thread Андрей Молчанов
Hello, everyone! This is my model: models/business_center.rb: mapping do indexes :id, type: 'integer' indexes :name, type: 'string' indexes :address, type: 'string' indexes :offices_pub_count, type: 'integer' indexes :subtype_id, type: 'integer' indexes :offices_pub_retail_count, type

Re: [Rails] Rspec Testing issues -- Beginner Coder and not sure where to start in troubleshooting this.

2015-03-24 Thread bacrossland
Hassan is correct. I would check the value used in the name property of the field. First_Name is not the same as first_name. On Sunday, March 22, 2015 at 3:36:25 PM UTC-5, Hassan Schroeder wrote: > > On Sun, Mar 22, 2015 at 9:41 AM, Shawn Wilson wrote: > > > 1) Create User lists redirects to

Re: [Rails] Modeling customer/supplier roles.

2015-03-24 Thread Leandro França
Hey Scott, thanks for your quick reply. I'm inclined to think 2 models with inheritance base for Person/Company, using STI. Altho it would be good to associate a person with a company. About supplies and customers, I think I cant rely only on transaction history. Many customers for example o

Re: [Rails] Modeling customer/supplier roles.

2015-03-24 Thread Scott Ribe
On Mar 24, 2015, at 8:08 AM, Scott Ribe wrote: > > On Mar 24, 2015, at 8:04 AM, Leandro França > wrote: >> >> Any advices? > > Don't make customers & suppliers separate models/tables. Make them attributes > of a single model. It seems that ***EVERY*** business/accounting package on > earth

Re: [Rails] Modeling customer/supplier roles.

2015-03-24 Thread Scott Ribe
On Mar 24, 2015, at 8:04 AM, Leandro França wrote: > > Any advices? Don't make customers & suppliers separate models/tables. Make them attributes of a single model. It seems that ***EVERY*** business/accounting package on earth makes this same mistake. For anybody in a "broker" type business

[Rails] Modeling customer/supplier roles.

2015-03-24 Thread Leandro França
Hi there, I'm trying to decide the best approach for a person/company/customer/supplier model. I researching about STI and polymorphic associations, but cant decide which way to go. - Companies and persons can be, at the same time, customers or suppliers. They can have many roles. - Company an

[Rails] Re: Help with this error

2015-03-24 Thread Frederick Cheung
On Tuesday, March 24, 2015 at 10:26:00 AM UTC, Rails_beginner wrote: > > = render partial: 'admin/delayed_jobs/list_header' > -@jobs.each do |job| >= link_to job.id, job > > This will try to call delayed_backend_active_record_job_path in order to turn the job object into the path (by default

Re: [Rails] Help with this error

2015-03-24 Thread Colin Law
On 24 March 2015 at 09:44, Rails_beginner wrote: > I am getting undefined method `delayed_backend_active_record_job_path' > I want to redirect the user to _list_row.html.haml page when they click on a > job_id link but somehow I am getting the above error Which line of your code is generating the

[Rails] Help with this error

2015-03-24 Thread Rails_beginner
I am getting undefined method `delayed_backend_active_record_job_path' I want to redirect the user to _list_row.html.haml page when they click on a job_id link but somehow I am getting the above error delayed_jobs_controller.rb class Admin::DelayedJobsController < Admin::BaseController

Re: [Rails] Re: Re: Re: Re: Re: Re: Re: which Gem To Used For Building A Site Like Mediafire

2015-03-24 Thread Colin Law
On 24 March 2015 at 06:40, Edward Maya wrote: > Colin Law wrote in post #1170743: >> No, your English is not bad. I think I understand what you want to >> do. But since the link I provided appeared to me to cover what you >> want to do I asked you to explain what in particular you are worried >>

Re: [Rails] Accessing a "helper" method "foo" defined in a controller, in a .js file

2015-03-24 Thread Daniel Evans
Hi Neeraj, You most serious problem you are facing is that js files included in application.js are not rendered in the context of your request. They are meant to be precompiled (meaning when you deploy your application they are all compiled only once so that each request for them is very fast) and