Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8516213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:21:43+00:00 2026-06-11T05:21:43+00:00

i do all instruction for use prettyPhoto in https://github.com/hiq5/prettyphoto-rails . and i do this

  • 0

i do all instruction for use prettyPhoto in https://github.com/hiq5/prettyphoto-rails.

and i do this to show a single photo( not gallery )

=link_to image_tag(photo.photo_url(:thumb).to_s, :alt => photo.name ,:class => "img-polaroid"), photo.photo_url, :rel => 'prettyPhoto'

but still redirect to photo url and show photo, and doesn’t use jQuery to show it on the current page.

i check it with chrome development tools, there isn’t any error.

i use haml to generate views (instead erb), and carrierwave to upload photos.
by the way I use twitter bootstrap.

any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:21:45+00:00Added an answer on June 11, 2026 at 5:21 am

    in the documentation don’t tell we should add the following code in bottom of body (html tag)

    so we should add the following code

    in haml

    %script{:charset => "utf-8", :type => "text/javascript"}
      $(document).ready(function(){
      $("a[rel^='prettyPhoto']").prettyPhoto();
      });
    

    in erb or html

    <script type="text/javascript" charset="utf-8">
        $(document).ready(function(){
            $("a[rel^='prettyPhoto']").prettyPhoto();
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use gem delayed_job from collectiveidea(https://github.com/collectiveidea/delayed_job) in my project, but it throws exception:
I followed all of the instructions so far from: http://code.google.com/p/appengine-jruby/wiki/RunningRails and http://gist.github.com/268192 Currently, I'm
Is it possible to force gcc use int instruction for all the system calls,
As you all might know that the MIPS instruction set supports clz (count leading
Pretty sure some people encountered this problem before. Followed all the instructions to setup
I'm trying to get GCC (or clang) to consistently use the SSE instruction for
I am trying to use core-plot and I followed the instruction from the following
My concern is about what will use stack memory in an instruction involving arithmetics
I have a program which crashes on the ShellExecute() instruction. If I use the
I'm building several XSLT stylesheets (e.g. hotels.xsl, flights.xsl, tickets.xsl, etc..) that will all use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.