Skip to content

Destroy not working in rails

02/04/2011

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

before


<%= javascript_include_tag :default %>

i include my new jquery file like


<%= javascript_include_tag 'jquery.mobile-1.0a1.min' %>

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.mobile-1.0a1.min','jquery','rails' %>

now its works successfully..

thanks…

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: