Re: [Rails] how to override a gem's views

2019-01-07 Thread fugee ohu
On Monday, January 7, 2019 at 8:35:45 PM UTC-5, Walter Lee Davis wrote: > > > > On Jan 7, 2019, at 7:50 PM, fugee ohu > > wrote: > > > > > > > > On Saturday, January 5, 2019 at 8:33:18 AM UTC-5, fugee ohu wrote: > > I'm trying to override the main layout but the gem is actually using >

Re: [Rails] how to override a gem's views

2019-01-07 Thread Walter Lee Davis
> On Jan 7, 2019, at 7:50 PM, fugee ohu wrote: > > > > On Saturday, January 5, 2019 at 8:33:18 AM UTC-5, fugee ohu wrote: > I'm trying to override the main layout but the gem is actually using other > gems together as a group so there's a separate gem for vendor Within the > vendor gem can

[Rails] Re: how to override a gem's views

2019-01-07 Thread fugee ohu
On Saturday, January 5, 2019 at 8:33:18 AM UTC-5, fugee ohu wrote: > > I'm trying to override the main layout but the gem is actually using other > gems together as a group so there's a separate gem for vendor Within the > vendor gem can be found app/views but within my main app the question

[Rails] column named "key"

2019-01-07 Thread fugee ohu
I'm trying to debug spree_preferences and found that the spree_preferences database table has a field named key If I select * then key appears in headers and rows are returned but if I explicity select key I get an error which I assume is because key is a reserved name and illegal to use --

[Rails] Logging in as a seeded user in an OmniAuth app

2019-01-07 Thread Jason Hsu
Here's an example: I'm working on the CodeTriage app (https://github.com/codetriage/codetriage). I have CodeTriage working and passing tests in my local development environment. In this app, GitHub authentication is the sole authentication option. To avoid being automatically logged in in the

Re: [Rails] Databases (mysql vs postgres)

2019-01-07 Thread Walter Lee Davis
> On Jan 7, 2019, at 4:47 AM, Greg Navis wrote: > > Walter, out of curiosity, why different databases? Is this due to licensing > reasons? I once led a project where we used SQLite in development and MySQL > in production and we were struck by SQLites dynamic typing (i.e. column types >

[Rails] Article: Numbering Copies Using Enumerators

2019-01-07 Thread Greg Navis
Hi! I'd like to share an article about numbering model copies in Rails apps (e.g. "My Page - copy 1") using enumerators: Numbering Copies Using Enumerators Feedback appreciated! Best regards Greg Navis -- You

Re: [Rails] Databases (mysql vs postgres)

2019-01-07 Thread Greg Navis
IIRC PostgreSQL is the most popular choice among Rails developers but this of course doesn't mean it's the right choice for you. You can Google "Postgres vs MySQL" to understand differences between them. My personal preference is PostgreSQL. Walter, out of curiosity, why different databases? Is