thank's a million for this post!! I had spent lot of my time trying to find out what went wrong...U R AN ANGEL helmerj!!!
By the way...what has h() to do with the problem...!! Everything was going fine till the end of tutorial but i was stuck on this last part. Could you please elaborate the h(). I'm kind'a new rider in rails!!
:p eace!!
Hi, I have been trying to create a multistep Form (referencing episode #217) and my form has nested attributes as in episode #196.
I have merged the idea from both of these episodes.And I am in problem.
I have two Models.
Models
1) Event has_many: invitations
accepts_nested_attributes_for : invitation,:dependent=>:destroy
<%= simple_form_for @event do |e| %>
<%= render "#{@event.current_step}_step",:e=>e %>
<%end%>
<%= link_to "Back to List", events_path %>
MY PROBLEM :: WHEN I GO TO next_step...the view nor show the nested_field atrributes NOR it shows any error..it simply skips the entire nested form fields....i'm going nuts...how can it simply skip the code!! any idea!!
For users in Windows precaution:
This didn't work for me argument (0 for 1) was thrown ...
I had to get around the index action like this..
I'm using rails 3.0.7 . As I was getting through this awesome cast I couldn't make my url
localhost:3000/article/2/comments
work:I spend hours trying to find out...later I got the solution ...
in
routes.rb
file i did:and then only
localhost:3000/article/2/comments
workedWhere does this section of code should be placed.
Does this code adds auth_token to previously existed users ?? Curiousity!
Thanks a million Jean! Hit the bulls eye!! Spot on!!
has anyone encountered this error going through this tut!!
undefined method `urlsafe_base64' for SecureRandom:Module
app/models/user.rb:39:in
generate_token'
send_password_reset'app/models/user.rb:31:in
app/controllers/password_resets_controller.rb:7:in `create'
because I have and i've no idea how to solve this..
thank's a million for this post!! I had spent lot of my time trying to find out what went wrong...U R AN ANGEL helmerj!!!
By the way...what has h() to do with the problem...!! Everything was going fine till the end of tutorial but i was stuck on this last part. Could you please elaborate the h(). I'm kind'a new rider in rails!!
:p eace!!
Hi, I have been trying to create a multistep Form (referencing episode #217) and my form has nested attributes as in episode #196.
I have merged the idea from both of these episodes.And I am in problem.
I have two Models.
Models
1) Event has_many: invitations
accepts_nested_attributes_for : invitation,:dependent=>:destroy
2) Invitation belongs_to: event
Controller --Event
View:Event(new)
MY PROBLEM :: WHEN I GO TO next_step...the view nor show the nested_field atrributes NOR it shows any error..it simply skips the entire nested form fields....i'm going nuts...how can it simply skip the code!! any idea!!
I'm getting the same error. I hope u still remember how did u overcome with this problem...