[Rails] Re: How do I make this relation?

2016-05-12 Thread Luis
Ok there is something that I am not getting in here I think this should work. What am I missing ? class Sched < ActiveRecord::Base belongs_to :admiting_md, :foreign_key => :admiting_md ,:class_name => "Pcp" end class Pcp < ActiveRecord::Base has_many :admiting_mds, :foreing_key =>

Re: [Rails] Routing error

2016-05-12 Thread Emmanuel Abia
What routing error are you getting on the server? On 12 May 2016 1:49 p.m., "Yuri Redaelli" wrote: > > Hi all, > > for first sorry for my english. > > I've a Rails app with a namespaced route that works fine on localhost > but does not work on remote Server. > > This is my

Re: [Rails] How do I make this relation?

2016-05-12 Thread James Jelinek (shakycode)
Benadryl will help with the allergies, Colin’s suggestions on following Rails conventions and naming your associations and classes will help with the code part. Good luck! Cheers, James Subscribe to my Youtube Channel: https://www.youtube.com/shakycode

[Rails] Re: How do I make this relation?

2016-05-12 Thread Luis
Hi Colin, Yes you are correct I meant admitting_md. My allergies are killing me but I need to finish this project soon. I posted like the 3rd version of the 5 tries at this point I am making a lot of syntax due to how swollen my eyes are due to the pollen allergy. My apologies in advance!

Re: [Rails] Click in a radiobutton, enable button on solicit.html.erb and save on db

2016-05-12 Thread Colin Law
On 12 May 2016 at 19:38, Elton Santos wrote: > I really dont know how begin, I have a form in my view (solicit.html.erb) > where do iterate in each elements, each element have a radio button, input > field and a button for create. When click on button, generate a new

Re: [Rails] How do I make this relation?

2016-05-12 Thread Colin Law
On 12 May 2016 at 19:28, Luis wrote: > I am trying to establish the following relation, but no joy! > > Can someone please tell me how should I do this. > Thanks. > Luis > #Sched attributes: > #id > #... > # pcp_id:integer > # admitingMd_id :integer > > > class

[Rails] Click in a radiobutton, enable button on solicit.html.erb and save on db

2016-05-12 Thread Elton Santos
I really dont know how begin, I have a form in my view (solicit.html.erb) where do iterate in each elements, each element have a radio button, input field and a button for create. When click on button, generate a new portability with date save this. this is my code <% if

[Rails] How do I make this relation?

2016-05-12 Thread Luis
I am trying to establish the following relation, but no joy! Can someone please tell me how should I do this. Thanks. Luis #Sched attributes: #id #... # pcp_id:integer # admitingMd_id :integer class Sched < ActiveRecord::Base belongs_to :admitingMd, :class_name => "Pcp",

[Rails] Re: Routing error

2016-05-12 Thread Neo Elit
Your PapTagsController should be inside monitor module. I don't how it worked in local server without that. file: /app/controllers/monitor/pap_tags_controller.rb module Monitor class PapTagsController < ApplicationController ... end end On Thursday, May 12, 2016 at 6:19:23 PM

[Rails] AWS Elastic Beanstalk - Passenger Standalone - Rails not setting asset cache headers

2016-05-12 Thread Neo Elit
I have a rails application running on AWS EB with passenger standalone. However the asset served doesn't seem to set cache headers. What is the preferred way to do this? I tried running standalone in a single instance and it's properly setting cache headers. However that's not the case in aws

[Rails] Routing error

2016-05-12 Thread Yuri Redaelli
Hi all, for first sorry for my english. I've a Rails app with a namespaced route that works fine on localhost but does not work on remote Server. This is my error: ActionController::RoutingError (uninitialized constant Monitor::PapTagsController): My routes.rb namespace :monitor do

[Rails] Any plans on removing browser dependency from ActionCable javascript?

2016-05-12 Thread Kim Fransman
Been doing some react-native work and naively just assumed it would be easy-breazy to get websocket support via the ActionCable code I already wrote for the web-app. Just wondering if there's any plans on it from anyone before I make an attempt myself. -- You received this message because you

Re: [Rails] problem store hash field

2016-05-12 Thread Colin Law
On 12 May 2016 at 09:03, Alessio Varalta wrote: > Hi, I have an application in rails3 and i have a problem with store a > hash. I create a form with these two field > > id="person_birthplace[it]" value="" > > > id="person_birthplace[de]" value="" > > > The problem is when

[Rails] problem store hash field

2016-05-12 Thread Alessio Varalta
Hi, I have an application in rails3 and i have a problem with store a hash. I create a form with these two field The problem is when i call create and make save i have this string in database for the field birthplace that is wrong ---