On Saturday, January 2, 2016 at 7:38:13 PM UTC-5, James Jelinek wrote:
>
> If a user has many schools you would want
>
> current_user.schools.new(school_params)
>
> Unfortunately I don't know how your associations are setup so I'm taking a
> guess at this. 👍🏻
>
> On Jan 2, 2016, at 6:32 PM, fugee
@school = current_user.create_school(school_params)
undefined method `create_school' for #
On Saturday, January 2, 2016 at 3:51:12 PM UTC-5, fugee ohu wrote:
>
> def create
> @school = current_user.build_school(school_params)
>
> causes the above error my models are users has_one pro
that's a reference to the new action, i'm asking about the create action
where create_association is used, not build_association
On Saturday, January 2, 2016 at 7:38:13 PM UTC-5, James Jelinek wrote:
>
> If a user has many schools you would want
>
> current_user.schools.new(school_params)
>
> Unf
On Saturday, January 2, 2016 at 7:38:13 PM UTC-5, James Jelinek wrote:
>
> If a user has many schools you would want
>
> current_user.schools.new(school_params)
>
> Unfortunately I don't know how your associations are setup so I'm taking a
> guess at this. 👍🏻
>
> On Jan 2, 2016, at 6:32 PM, fugee
On Saturday, January 2, 2016 at 7:38:13 PM UTC-5, James Jelinek wrote:
>
> If a user has many schools you would want
>
> current_user.schools.new(school_params)
>
> Unfortunately I don't know how your associations are setup so I'm taking a
> guess at this. 👍🏻
>
> On Jan 2, 2016, at 6:32 PM, fugee
If a user has many schools you would want
current_user.schools.new(school_params)
Unfortunately I don't know how your associations are setup so I'm taking a
guess at this. 👍🏻
> On Jan 2, 2016, at 6:32 PM, fugee ohu wrote:
>
> what should the create action be
> @school = current_user.crea
what should the create action be
@school = current_user.create_school(school_params)
On Saturday, January 2, 2016 at 4:45:20 PM UTC-5, Colin Law wrote:
>
> On 2 January 2016 at 20:51, fugee ohu >
> wrote:
> > def create
> > @school = current_user.build_school(school_params)
> >
>
what should the create action be? i tried
@school = current_user.build_school(school_params)
On Saturday, January 2, 2016 at 4:45:20 PM UTC-5, Colin Law wrote:
>
> On 2 January 2016 at 20:51, fugee ohu >
> wrote:
> > def create
> > @school = current_user.build_school(school_params)
Sorry Colin I fell asleep Here's how I worked it out
<%= form_for(@school) do |school_form| %>
<% school_form.fields_for :profiles do |f| %>
On Saturday, January 2, 2016 at 4:45:20 PM UTC-5, Colin Law wrote:
>
> On 2 January 2016 at 20:51, fugee ohu >
> wrote:
> > def create
> > @school
No, you've mentioned top posting and your dislike of it countless times. 🌶
> On Jan 2, 2016, at 4:38 PM, Colin Law wrote:
>
>> On 2 January 2016 at 22:21, wrote:
>> Why not kindly pointing out the error and offer a suggestion to assist the
>> OP instead?
>
> Because one learns more by workin
On 2 January 2016 at 22:21, wrote:
> Why not kindly pointing out the error and offer a suggestion to assist the OP
> instead?
Because one learns more by working out the error for oneself. If the
OP goes and looks at the documentation that he thought said that he
should be able to do this then
Why not kindly pointing out the error and offer a suggestion to assist the OP
instead?
Yes. I'm top posting.
> On Jan 2, 2016, at 3:44 PM, Colin Law wrote:
>
>> On 2 January 2016 at 20:51, fugee ohu wrote:
>> def create
>>@school = current_user.build_school(school_params)
>>
>> causes
On 2 January 2016 at 20:51, fugee ohu wrote:
> def create
> @school = current_user.build_school(school_params)
>
> causes the above error my models are users has_one profile, profile has_many
> schools, profile belongs_to user, school belongs_to profile
What makes you think that current_use
def create
@school = current_user.build_school(school_params)
causes the above error my models are users has_one profile, profile
has_many schools, profile belongs_to user, school belongs_to profile
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rai
Hi Walter!
Thanks for your response!
Yes ActionControl is much more lightweight (probably also because I started
it as recently as yesterday ;)) than CanCanCan and the other Gems. The main
reason I've created this Gem was because I don't like the way CanCanCan
stores the authorization code. Yo
15 matches
Mail list logo