Re: [Rails] Re: user stores - how to setup in theory

2014-12-11 Thread Colin Law
On 11 December 2014 at 03:07, tom tomabr...@gmail.com wrote: well, i do have store_id's and so on for my users, respectively the product_ids and so forth. what im not sure about is how to do the payments. i have my paypal-keys so users can check out on my store, but how would i offer that for

[Rails] [JOBS] Developer to Assist Non-Profit Media Arts Society

2014-12-11 Thread Andrew Scholotiuk
The Film and Video Arts Society of Alberta (FAVA) www.fava.ca is a non-profit arts society that teaches and facilitates independent media art in Edmonton, Alberta, Canada. We had an amazing developer build us a system on Rails. He has since become super busy with his own project called Get

[Rails] (Jobs) Technology Lead, Ruby: SchoolGuide.co.uk | Bath, UK | £50 – £70k | equity | flexible working

2014-12-11 Thread andrew
Hello again, www.SchoolGuide.co.uk is now encouraging interest from someone who feels ready progress towards their first leadership role. SchoolGuide’s current CTO can support your progression and transition as he hands over to you. It's a data-driven Ruby on Rails platform, with lots of

Re: [Rails] Bundle Install Fails on SSL connect for Rake gem

2014-12-11 Thread Matt Jones
On Wednesday, 10 December 2014 06:06:23 UTC-6, Cindi wrote: Hi Jason - yes, I did actually search some more on Google and found a similar post with that same answer: gem source -r https://rubygems.org/ gem source -a http://rubygems.org/ bundle install Now it goes through without error.

Re: [Rails] Re: user stores - how to setup in theory

2014-12-11 Thread Hassan Schroeder
On Wed, Dec 10, 2014 at 7:07 PM, tom tomabr...@gmail.com wrote: i have my paypal-keys OK. You've implemented a payment process using those. What in theory is preventing you using that same process with the paypal-keys of other people? -- Hassan Schroeder

Re: [Rails] Re: 10 tips to boost up performance of your Ruby on Rails application

2014-12-11 Thread Josh Jordan
While some of the advice here is good, it represents a very confused view of performance optimization. For instance, #2 is just plain bad advice for performance (but good for modularity) - partial rendering has a ton of overhead in Rails. #3 doesn't speak to performance at all. DRY (#4) is not

[Rails] Email preview in production in rails 4

2014-12-11 Thread Hristo Peev
Hello, I am using rails 4.1.1 and ActionMailer::Preview. In development environment everything is working excellent. But in production environment the preview routes are not accessible. I store the previews in test/mailers/previews/ Is is possible to enable them for production? I have also

Re: [Rails] RoR Associations - has_many :through valid or invalid usage?

2014-12-11 Thread Jason Fleetwood-Boldt
Jorge, Although I have heard of people using a has_many in some cases when the actual domain model might want a has_one (for example, if your business rule is that the association can have only one at a time and you want to keep the old join table records around with an expired field),

Re: [Rails] Re: 10 tips to boost up performance of your Ruby on Rails application

2014-12-11 Thread Jason Fleetwood-Boldt
Don’t repeat yourself. Don’t repeat yourself. Yea I agree that article is a little cursory. Each one of those 10 bullet points could be an entire blog post itself. Also it doesn’t even mention avoiding n+1 queries, which I think is absolutely essential for ever new Rails dev to learn

[Rails] Email preview in production in rails 4

2014-12-11 Thread Hristo Peev
Hello, I am using rails 4.1.1 and ActionMailer::Preview. In development environment everything is working excellent. But in production environment the preview routes are not accessible. I store the previews in test/mailers/previews/ Is is possible to enable them for production? Thanks! --

[Rails] Rails 4 and form_for: undefined method `param_key' for nil:NilClass

2014-12-11 Thread Abram
Here is my form, which previously worked in Rails 3: %= form_for Style.new do |s| % % end % This throws the error: **undefined method `param_key' for nil:NilClass** **Full Trace:** NoMethodError - undefined method `param_key' for nil:NilClass: actionview (4.2.0.rc2)

[Rails] Re: Rails 4 and form_for: undefined method `param_key' for nil:NilClass

2014-12-11 Thread Abram
Nevermind I figured it out.. I had a data model called Model.. Obviously this was silly, and I have since fixed it .. Now known as Moodel. On Thursday, December 11, 2014 12:21:03 PM UTC-6, Abram wrote: Here is my form, which previously worked in Rails 3: %= form_for Style.new do |s| %

Re: [Rails] Re: user stores - how to setup in theory

2014-12-11 Thread Matt Jones
On Wednesday, 10 December 2014 21:08:47 UTC-6, der_tom wrote: well, i do have store_id's and so on for my users, respectively the product_ids and so forth. what im not sure about is how to do the payments. i have my paypal-keys so users can check out on my store, but how would i offer

Re: [Rails] RoR Associations - has_many :through valid or invalid usage?

2014-12-11 Thread Matt Jones
On Thursday, 11 December 2014 09:34:12 UTC-6, Jason FB wrote: Jorge, Although I have heard of people using a has_many in some cases when the actual domain model might want a has_one (for example, if your business rule is that the association can have only one at a time and you want to

[Rails] Re: Rails 4 nested attributes multiple records insert instead updating

2014-12-11 Thread Nikhil Thombare
I am working on Address book and i face problem regarding how to added dynamic column by each user. one things is each user display its own column after add column how to submit all values inside one form. view (e.g consider mike is user and its create name,city and address dynamic column how

Re: [Rails] Bundle Install Fails on SSL connect for Rake gem

2014-12-11 Thread Michał Papis
I find this to be easier instruction http://stackoverflow.com/questions/19150017/ssl-error-when-installing-rubygems-unable-to-pull-data-from-https-rubygems-o/19151697#19151697 PLEASE DON'T DO THIS. Downloading and running code from an insecure link automatically is a short slip'n'slide to