
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
{}[https://secure.travis-ci.org/aantix/sex_it_up]
== Description
Turn your boring demo website and placeholder images into a beautiful display of artwork.
In your Gemfile, add the following : gem "sex_it_up", ">= 1.0.0"
Then perform the following from the root of your application directory :
bundle install
Now we need to copy over the needed migration : rails g sex_it_up rake db:migrate
== Displaying Images
If you want to display a random image for the term 'dog', first add the following to your Rakefile : require 'tasks/sex_it_up'
Once you have the rake task available, you can issue the following rake command to warm the image cache for a given term : rake sex_it_up:cache[]
e.g. :
rake sex_it_up:cache["dog"]
Once the rake task has completed, change your erb view to call the following helper : sexy_image('dog', :width => 100, :height => 100)
This helper will find a random image for the given term, scale it to the passed in dimensions, and display it.
== Other Uses If you wanted to replace your boring default user avatars, you could do the following user.icon = SexItUp::SexItUpImage.find_all('dog').random.first
== Sample Screenshot http://i.imgur.com/bmHvj.png
== Copyright
Copyright (c) 2010-2012 Jim Jones. See LICENSE for details.
FAQs
Unknown package
We found that sex_it_up demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.