Skip to content

Destroy not working in rails


in my rails application i changed my JavaScript connection in my application.html.erb


<%= javascript_include_tag :default %>

i include my new jquery file like

<%= javascript_include_tag '' %>

now in my application destroy function not working while i click destroy button it goes to edit page.

then some struggle i got the inner JavaScript function need default JavaScript file such as jquery.js and rails.js .

just include the both file in application.html.erb file like

<%= javascript_include_tag '','jquery','rails' %>

now its works successfully..



From → Rails

One Comment
  1. We are a group of volunteers and starting a new scheme in our community.
    Your website offered us with valuable info to work on.

    You’ve done an impressive job and our entire community will be grateful to you.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: