[Rails] [ANN] Rack, Change of Maintainer & Status

2014-08-18 Thread jftucker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dearest Rack Community, Ruby Community, and passionate onlookers, There is a time when transitions must be realized by a point of impact, when a torch must go out, and it's replacement brightens the darkness. We've arrived at such a point in the his

Re: [Rails] Re: Broken has_many

2014-08-18 Thread Phil
(I apologize in advance for top posting, but trying to keep this thread consistent.) I would say it's a definite problem for us. This project is an old legacy project that several people have been working on for 6+ years. When I'm rewriting, say, the receipt page and mailer, how could I possi

[Rails] Re: Broken has_many

2014-08-18 Thread Phil
On Monday, August 18, 2014 1:57:08 AM UTC-7, Frederick Cheung wrote: > > > On Monday, August 18, 2014 2:57:05 AM UTC+1, Phil wrote: >> >> >> Is there a way to turn this sort of caching off globally? (Other caching >> is fine, I don't want to turn all caching off.) >> >> >> BTW- It is a bit mind

Re: [Rails] Issue with hstore returning as string on postgres database, rails app

2014-08-18 Thread Hassan Schroeder
On Mon, Aug 18, 2014 at 10:46 AM, Zeb Haradon wrote: > Sorry, I misspoke. I meant that once the problem occurs you have to actually > reinstall postgres to get it to work again. If the problem affects every db on the server, I can't imagine how it could be anything *but* a postgres bug. But sin

[Rails] Re: SyntaxError on has_many association with block when trying to order

2014-08-18 Thread Robert Walker
Antonio Moreno wrote in post #1155440: > Now, I want to order the associated records: > > has_many :children, dependent: :destroy, -> { order 'id asc' } do > > but this raises an error: > > SyntaxError in ParentsController#index > has_many :children, dependent: :destroy, -> { order 'id asc' } do

[Rails] SyntaxError on has_many association with block when trying to order

2014-08-18 Thread Antonio Moreno
Hi, in Ruby on Rails 4, let's say a parent has many children. Then I wanted to reference only the persisted records in an active record association, and followed this link's accepted answer (http://stackoverflow.com/questions/19842765/how-do-you-reference-only-the-persisted-records-in-an-active-re

Re: [Rails] Issue with hstore returning as string on postgres database, rails app

2014-08-18 Thread Zeb Haradon
On Thursday, August 14, 2014 11:29:18 AM UTC-7, Hassan Schroeder wrote: > > On Wed, Aug 13, 2014 at 2:32 PM, Zeb Haradon > wrote: > > Summary: rails app using postgres randomly gets into a state where > hstore > > array is returned as a string, and cannot be fixed without rebuilding > the >

[Rails] Rails 4 nested attributes multiple records when updating

2014-08-18 Thread Turcu Marius
I'm stuck and i don't know why it is not working right. I have a model lesson wich has many sublessons. When i update the lesson rails update properly the lesson attributes but is creating another sublessons records instead of just updating it. Here is my code View Form: <%= form_for @lesson do

[Rails] Re: Broken has_many

2014-08-18 Thread Matt Jones
On Sunday, 17 August 2014 21:57:05 UTC-4, Phil wrote: > > > I hate to reply to myself, but I narrowed it down to Rails caching by > DEFAULT of model queries. It can be worked around by passing 'true', like > this: > > > tc.name = "something different" > > tc.save! > > tp.test_children.map {|x|

Re: [Rails] Re: Broken has_many

2014-08-18 Thread Jim
It's not a systemic integrity problem, it is the way Rails has always worked. Using tp.test_children.create() is not "another work-around", it is the recommended way of adding children to a parent model that you have already instantiated and has been available for as long as I can remember (at

[Rails] Re: How install libv8 (therubyracer) Windows 7

2014-08-18 Thread chris
Hi all I'm still struggling with Windows 7, Ruby and shopify_app. I install shopify_app (gem install shopify_app) I create a project (rails new MetaManager) I edit the Gemfile to include shopify app (Add 'gem 'shopify_app' to Gemfile) I do a bundle install (bundle install) then generate (rails g

[Rails] (JOBS) Hiring RoR Senior Developers - Chennai

2014-08-18 Thread samuel . s
ZANEC is adding *RoR Senior Developers* to work in the development and production of interactive technology solutions for our clients. Technical specs: - Setup and deploy a Rails App for production - Understand the Rails stack - callbacks, filters, plugins, engines,

[Rails] Re: Pass variable to layouts

2014-08-18 Thread Frederick Cheung
On Monday, August 18, 2014 8:25:13 AM UTC+1, Ruby-Forum.com User wrote: > > I have this code(i use devise this is a redirect for user sign in): > > layout :layout_by_resource > > def layout_by_resource > if devise_controller? && resource_name == :user && action_name == > 'new' > >

[Rails] Re: Broken has_many

2014-08-18 Thread Frederick Cheung
On Monday, August 18, 2014 2:57:05 AM UTC+1, Phil wrote: > > > Is there a way to turn this sort of caching off globally? (Other caching > is fine, I don't want to turn all caching off.) > > > BTW- It is a bit mind blowing that this is turned on by default. Possible > data corruption shouldn't

[Rails] Re: How to approach the creation of a rails specific gem?

2014-08-18 Thread Frederick Cheung
On Saturday, August 2, 2014 2:12:31 AM UTC+1, Ruby-Forum.com User wrote: > > > We would like to extract it, and the first thought was 'gem'. > > And thus the questions arise :) > > Assuming making a gem is the correct idea, I'm going to need to call > ActiveRecord methods such as 'create' from

Re: [Rails] cannot load such file -- config/boot (LoadError)

2014-08-18 Thread tamouse pontiki
>From the path shown in the error, I'm wondering if you didn't append '/public' to the DocumentRoot in the apache configuration? On Thu, Aug 14, 2014 at 1:46 PM, Rafael Soufraz wrote: > Hi folks, > > I had installed an ubuntu server redmine 12:04 > > I decided to upgrade to the new version redm

[Rails] Pass variable to layouts

2014-08-18 Thread Turcu Marius
I have this code(i use devise this is a redirect for user sign in): layout :layout_by_resource def layout_by_resource if devise_controller? && resource_name == :user && action_name == 'new' "devise" else "application" end end In my devise layout i use some variables,