Thanks Elizabeth,
From STI, I mean I´m using Single Table Inheritance
http://api.rubyonrails.org/classes/ActiveRecord/Inheritance.html , since
Person and Organization have many fields in common (name, addresses, etc) ,
but some specific behaviors to be implemented in the future.
The SecondParty
controllers here. A CustomersController and a
SuppliersController. You would just need to handle the Party model
appropriately in each one of those controllers.
Best regards,
// Marco
On Sat, Aug 22, 2015 at 10:59 PM Leandro França leandroay...@gmail.com
wrote:
Hi there everyone,
I have
Hi Elizabeth,
I did not want to spend your or anyone else's time.
I only recognized that more information would help after I saw your first
answer.
I´m sorry about that.
Anyway, I´m open to criticism and I´ll try to improve next time.
Regards.
2015-08-24 14:33 GMT-03:00 Elizabeth McGurty
Hi there everyone,
I have a tradicional Party/Role Model in my app:
- *Party* ( an organization, a person, etc)
- *PartyRelationship* ( One or more relationships between parties.
They can have relationship types: *customer*, *supplier*, *reseller*, etc)
However, I need to create two
Hi there,
Im building a multitenant app using apartment and devise, using postgresql
schemas and subdomain auth.
I just added subdomain , following this:
https://github.com/plataformatec/devise/wiki/How-to:-Scope-login-to-subdomain
Everything is working, but this model requires that I have a
I forgot to add that both account and user models are on public schema,
outside of tenants.
2015-06-15 12:49 GMT-03:00 Leandro França leandroayresfra...@gmail.com:
Hi there,
Im building a multitenant app using apartment and devise, using
postgresql schemas and subdomain auth.
I just
I'm currently using https://www.digitalocean.com/
The price range starts at U$5,00 and you can find some 2 free month
coupons online.
Regards,
2015-06-09 4:43 GMT-03:00 Max milinds...@gmail.com:
On Sunday, June 7, 2015 at 1:01:44 PM UTC+5:30, Dyo Medio wrote:
Hi all please share your
host:localhost to my config/database.yml, and now it
gives me this error:
*PG::ConnectionBad (fe_sendauth: no password supplied*
2015-06-01 16:02 GMT-03:00 Colin Law clan...@gmail.com:
On 1 June 2015 at 19:54, Leandro França leandroayresfra...@gmail.com
wrote:
Hi there,
What is a good
Hi there,
What is a good way to setup connection to production database?
Do I really need to keep production password on database.yml file? Are
there any other ways?
Thanks in advance,
Leandro
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
.
But most of the time, I'm running it on OSX, at work.
2015-05-20 5:14 GMT-03:00 mnz hz mnz...@gmail.com:
i am also using vagrant and conemu, it's better if rails can be used
without vm
On Wed, May 20, 2015 at 11:33 AM, Leandro França leandro.fra...@pobox.com
wrote:
Hey there,
The friendly way
I also see some people using Cloud 9 (https://c9.io/).
But I never tried it myself.
2015-05-20 9:06 GMT-03:00 Leandro França leandro.fra...@pobox.com:
I see.
I tried a few times to run it natively on windows, but I think it doesnt
worth the hassle. Too many little things that builds up
HI there,
I have been reading a bit about multi tenancy strategies and I would like
your feedback/opinions as well.
I'd like to use the approach which is easiest on development phase. Our
goal is to have the product up and running as quick as possible even if it
adds a bit (not much) on
Hey there,
The friendly way, in my opinion, is to run a virtual machine.
On my windows machine I run vagrant with virtual box.
I also use ConEmu with Gitbash as terminal.
2015-05-20 0:20 GMT-03:00 mnz hz mnz...@gmail.com:
i have tried many hack solutions, and still failed to run rails nex
at 3:50:15 PM UTC-4, Leandro França wrote:
Hi there,
I'm building a new app that will need to have multi tenancy features and
I'd like to hear some opinions.
When do you guys think is a good time to add multi tenancy feature?
Do you usually add it from the ground up or just at a later stage
Ken,
This could be a coffescript compatibility problem, according to some
stackoverflow posts. (
http://stackoverflow.com/questions/28421547/rails-execjsprogramerror-in-pageshome
)
Try to edit your Gemfile at your app root folder, and change the
coffescript line to:
gem 'coffee-script-source',
Hi there,
I'm building a new app that will need to have multi tenancy features and
I'd like to hear some opinions.
When do you guys think is a good time to add multi tenancy feature?
Do you usually add it from the ground up or just at a later stage?
Thanks,
Leandro
--
You received this
Hi there,
I'm learning the active model, and I'm trying to retrieve an association.
My models are:
class Composition ActiveRecord::Base
has_and_belongs_to_many :materials
belongs_to :product
end
class Material ActiveRecord::Base
has_and_belongs_to_many :compositions
has_many
regards,
Marco Almeida
On Mon, Mar 30, 2015 at 3:20 PM, Leandro França leandroay...@gmail.com
javascript: wrote:
Hi there,
I'm learning the active model, and I'm trying to retrieve an association.
My models are:
class Composition ActiveRecord::Base
has_and_belongs_to_many :materials
.
Best regards,
Marco
On Mon, Mar 30, 2015 at 4:33 PM, Leandro França leandroay...@gmail.com
javascript: wrote:
Hey Marco,
Thanks a lot for you quick response.
So, I tried to change my models to use only *has_many* and *belongs_to*,
instead of *has_and_belongs_to_many*.
I also added
, Scott Ribe scott...@elevated-dev.com
javascript: wrote:
On Mar 24, 2015, at 8:04 AM, Leandro França leandroay...@gmail.com
javascript: wrote:
Any advices?
Don't make customers suppliers separate models/tables. Make them
attributes of a single model. It seems that ***EVERY
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
Yup, it's saved. I checked it using
cat /etc/hosts
I also restarted ubuntu as a whole.
Em quinta-feira, 19 de março de 2015 12:44:50 UTC-3, Vivek Sampara escreveu:
1. Did you save the hosts file ?
2. Did you restart your network ?
On Thu, Mar 19, 2015 at 7:49 PM, Leandro França
Hi there,
I'm using act_as_tenant gem and I would like to test it on my local
environment.
I need to have entries like app1.localhost, app2.localhost, etc.
I've tried to set those entries on /etc/hosts:
127.0.0.1 localhost
127.0.0.1 app1.localhost
127.0.0.1 app2.localhost
But
I had these random killed messages in the past and it was a memory issue.
I was using vagrant box, and in my case I just increased the ram available
to the VM.
Em sexta-feira, 13 de março de 2015 12:44:08 UTC-3, Roelof Wobben escreveu:
Hello,
I working on a new project and made all the
Vagrant+Virtual Box is a nice option for a windows development environment.
I use OSx at my office and windows at home.
On both machines, I run Rails on a vagrant box with Ubuntu.
There's a good tutorial here:
https://gorails.com/setup/ubuntu/14.04
On Saturday, March 7, 2015 at 5:05:05 PM
25 matches
Mail list logo