Hello All,
i want to integrate light box ajax feature in my web app so that any
idea about it.
Hello All,
i want to integrate light box ajax feature in my web app so that any
idea about it.
Wap A. wrote:
Hello All,
i want to integrate light box ajax feature in my web app so that any
idea about it.
It would be better if you put down what you have done so far and where
exactly you are encountering issues or atleast the procedure to recreate
the issues you are facing…
without any of these, it sounds as if you want some one to provide you
an entire working code…
ok
pages addon <%= stylesheet_link_tag 'default' %> <%= stylesheet_link_tag 'lightbox' %> <%= javascript_include_tag 'prototype' %>
<%= javascript_include_tag 'lightbox' %>
</head>
Title | Body | Uname | |||
---|---|---|---|---|---|
<%=h page.title %> | <%=h page.body %> | <%=h page.uname %> | <%= lightbox_link_to 'Show', page, :class => 'lbOn'%> | <%= link_to 'Edit', edit_page_path(page) %> | <%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %> |
click on show lightbox_link_to then open box but i got error
ActionController::InvalidAuthenticityToken in PagesController#1
ActionController::InvalidAuthenticityToken
in this 1 is id from page 1
may be you could try this. put it in your controller. Here i assume your
view is for the action ‘my_action’
protect_from_forgery :except=>[:my_action]
let me know how it goes.
Rails L. wrote:
may be you could try this. put it in your controller. Here i assume your
view is for the action ‘my_action’protect_from_forgery :except=>[:my_action]
let me know how it goes.
i follow ur suggestion but same problem as above
ActionController::InvalidAuthenticityToken in PagesController#1
ActionController::InvalidAuthenticityToken
i am give procedure
scaffold in page in my project
show and edit both r inbuild file i want just open through lightbox
ok, put this in your controller and see if that works.
skip_before_filter :verify_authenticity_token
In Application controller Try to comment the line
I too had a similar type of error when i commented that line it
worked.I dont know if this could be a solution for your problem.
Any ways lets give a try.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs