My Recent Pastes (6 and counting)
Recent Pasties by CleverDaddy (6 and counting)
Below are summaries of the 6 most recent pasties by CleverDaddy.
November 26, 2006
7:46PM EDT
by CleverDaddy
View more (18 lines)
1 2 3 4 5 |
I'm trying to create a new rating entry that has 4 ratings attributes. I get the rating created ok, with the correct audition_id & user_id, I am not getting any of the fields from the form: Is it a mismatch of field types with form_remote_tag? or the name of the form? or how I'm trying access the params? audition_controller.rb def rate @audition = Audition.find(params[:id]) |
November 26, 2006
7:19PM EDT
by CleverDaddy
View more (6 lines)
1 2 3 4 5 |
def rate @audition = Audition.find(params[:id]) @rating = Audition.find(params[:id]).ratings.create(params[:rating]) @rating.user = current_user @rating.save |
November 17, 2006
12:26PM EDT
by CleverDaddy
View more (13 lines)
1 2 3 4 5 |
def comment @comment = Podcast.find(params[:id]).comments.create(params[:comment]) @comment.user = current_user @comment.save flash[:commentsnotice] = "Successfully added your comment to the bottom." |
November 14, 2006
12:22PM EDT
by CleverDaddy
View more (18 lines)
1 2 3 4 5 |
/views/user/change_password.rhtml: <div id="change_password" class="login"> <span> <%= start_form_tag %> |
November 14, 2006
12:16PM EDT
by CleverDaddy
View more (47 lines)
1 2 3 4 5 |
VIEW: /user/info.rhtml: <br /> <table align="center" cellspacing="0" cellpadding="0" border="0"> <tr> |
November 11, 2006
10:28PM EDT
by CleverDaddy
View more (7 lines)
1 2 3 4 5 |
def comment @comment = Podcast.find(params[:id]).comments.create(params[:comment]) current_user.comments<<comment @comment.save flash[:notice] = "Added your comment." |
Pastie