You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At threads_controller.rb the new codes/topic created in the edit view don't get saved. What else should I use instead of "update_attributes"?
In the update method:
#it should iterate through the recently created codes@thread.codes.to_enum.with_index.eachdo |code,index|
ifparams["topic_deleted_#{index}"] == '1'code.destroy()else#To Do: it should save the new codes createdcode.update_attributes({code_text: params["topic_name_#{index}"],color: params["topic_color_#{index}"],code_description: params["topic_description_#{index}"]})endend
besides "params[:topic_count].to_i" was not working and I used "@thread.codes.length" in the update method.
It is not possible to add a topic. When editing a topic it is only possible to edit them. Related to https://github.com/numeroteca/PageOneX-ruby/issues/62
The text was updated successfully, but these errors were encountered: