Skip to content

Commit

Permalink
ajout annonces en ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
roulili committed Mar 4, 2016
1 parent f13d61c commit 689577a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion app/controllers/adverts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def create

def update
@advert = Advert.find(params[:id])

respond_to do |format|
if @advert.update_attributes(advert_params)
if params[:levels_chosen]
Expand Down
3 changes: 1 addition & 2 deletions app/views/adverts/create.js.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
var advertsList = $('#adverts');

advertsList.append("<%= j render( :partial => 'become_teacher/advert' ) %>");
advertsList.append("<%= j render( :partial => '/become_teacher/advert' ) %>");

0 comments on commit 689577a

Please sign in to comment.