My Recent Pastes (6 and counting)
Pastes by CleverDaddy (6 and counting)
Below are the 6 most recent pasties by CleverDaddy.
November 26, 2006
7:46PM EDT
by CleverDaddy
View more (18 lines)
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)
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)
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)
/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)
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)
def comment @comment = Podcast.find(params[:id]).comments.create(params[:comment]) current_user.comments<<comment @comment.save flash[:notice] = "Added your comment."
