[Rails] Help with ActiveRecord Database tables

2014-09-20 Thread Mohammed Rashid
I am decent with setting up databases and their relationships using Ruby on Rails. I have a plan to create a planner for a music company where users can view their rota and which days they will be working and what song they will play will play on that day, which will be created by the admin. I have

[Rails] Doubts on what association to choose

2014-09-20 Thread Diego Dillenburg Bueno
Hello everyone, I'm a beginner Rails developer and right now am building a sample project to show off at some job apply. The app is rather simple, I guess, but I have come to some doubts on what associations to chose and why. Basically a User can create a bill(being its creditor) and the billing

Re: [Rails] ActiveRecord::StatementInvalid (OCIError: ORA-00001: unique constraint (xxxxxxxx) violated:

2014-09-20 Thread Walter Lee Davis
On Sep 18, 2014, at 5:48 PM, kimda wrote: > If I write the error message instead of xx, it is: > OCIError: ORA-1: unique constraint (ABCSIGN_DBA.PK_ATTEND_IP) violated: > INSERT INTO attend_ip (xxx, xxx, xxx, .) > > The PK prefix looks like a violation of the primary key. Maybe,

Re: [Rails] Help - using getting started with rails guide.

2014-09-20 Thread Anuj Dutta
Any way you like really. You can do it in command prompt if you are more comfortable with it or you can create it in script editor. Hope it helps. Anuj On 20 September 2014 03:55, Aspiring.Student.prgrammer < sabrina@gmail.com> wrote: > Hey guys > > I am using the getting started with rails

[Rails] Help - using getting started with rails guide.

2014-09-20 Thread Aspiring.Student.prgrammer
Hey guys I am using the getting started with rails guide and i am stuck at a certain point. I am up to creating a new html.erb file within the app/views/articles. However how do i actually create the new file. Do u do it in the command prompt or another script editor? Help please ASAP -- You