[Rails] Re: ActiveRecord Migration Peev- Freedom to run app while migrations are pending

2015-11-11 Thread Frederick Cheung
On Thursday, November 12, 2015 at 6:57:56 AM UTC, Amit Mhatre wrote: > I was wondering if there should be a way to  run the app even if some > migrations are pending. Lets say I have created a migration...but at this > time I am not sure if I want to run it as is am anticipating > modificati

[Rails] ActiveRecord Migration Peev- Freedom to run app while migrations are pending

2015-11-11 Thread Amit Mhatre
I was wondering if there should be a way to run the app even if some migrations are pending. Lets say I have created a migration...but at this time I am not sure if I want to run it as is am anticipating modifications. What if in the error page "Migrations are pending. To resolve this is

[Rails] Re: Script Relocator: Anything wrong with this?

2015-11-11 Thread Uwe Kubosch
Yeah, thanks for the tip. I will disable it for streaming responses. For my specific app it is not a concern since I don't stream HTML responses, and the script relocator is only active for text/html responses. I will add detection for streaming and leave the response alone if it is a stream

Re: [Rails] Adding a Postgres ENum type via. migration breaks db/schema.rb table entry

2015-11-11 Thread botp
On Wed, Nov 11, 2015 at 4:33 PM, wrote: > # Could not dump table "test" because of following StandardError > # Unknown type 'three_letters_type' for column 'three_letters' activerecord will complain : ) see http://edgeguides.rubyonrails.org/active_record_postgresql.html so to dump schema,

[Rails] Re: Script Relocator: Anything wrong with this?

2015-11-11 Thread Frederick Cheung
On Wednesday, November 11, 2015 at 10:38:22 AM UTC, Uwe Kubosch wrote: > > Hi! > > For a faster initial render of my pages, I have added a script relocator > initializer that scans the page and moves all script tags to the bottom > of the body tag. Order is kept, and the script tags in the `he

[Rails] Script Relocator: Anything wrong with this?

2015-11-11 Thread Uwe Kubosch
Hi! For a faster initial render of my pages, I have added a script relocator initializer that scans the page and moves all script tags to the bottom of the body tag. Order is kept, and the script tags in the `head` tag are marked with data-turbolinks-eval="false" so they are not executed again

[Rails] Adding a Postgres ENum type via. migration breaks db/schema.rb table entry

2015-11-11 Thread alexander . maznev
Hello, So I'm adding a Postgres Enum Type with a migration but I'm having a problem with db/schema.rb output breaking when I do this: def up execute <<-SQL.squish CREATE TYPE three_letters_type AS ENUM ( 'A', 'B', 'C', ); SQL execute <<-SQL.squish ALTE

[Rails] Re: Dynamic Links within a namespace

2015-11-11 Thread Hoang Tran
you fail at <%= link_to(person) do %> You can follow me same as: <%= link_to admin_person_path(person) do %> <%= person.fname %> <%= person.lname %> <% end %> -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby