Displaying 20 results from an estimated 5000 matches similar to: "routes"
2006 Feb 25
2
Ruby Interface Recommendations Photo Gallery Creation?
Hi, I''m looking to create a gallery index page of thumbnail images which
point to their associated images galleries. Also, I would like to organize
the images from left to right and top to bottom. Furthermore, I would like
to limit the number of thumbnail images on the page. I guess that I''m
needing some type of horizontal looping interface for both the thumbnail
index page
2009 May 18
3
Pagination
Hi,
I am using the will_paginate plugin for my application.
It is showing Previous 1,2,3...22,23,24 Next links
How will I hide the numbers?
I want to have first and last links also. How will i do that?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2008 Dec 26
2
Video gallery in rails
Dear all,
Iam in process of creating video gallery like youtube, please suggesst
plugins i should install and best suits fro my application.
My requirements are
1) Huge file uploading to upload videos
2) creating thumbnails on videos uploaded
3) Listing thumbnails of all videos in video gallery folder.
4) Onclicking thumbnails video should be played
Please suggest a way to proceed
2007 Jul 24
9
will_paginate plugin doesn't work with Association Extensions?
I have:
class Post < ActiveRecord::Base
has_many :comments do
def published
find( :all,
:conditions => {:published => true} )
end
end
end
When in my controller I do
Post.find(:first).comments.published.paginate :page => params[:page]
I get an error
undefined method `paginate'' for []:Array
Is will_paginate supposed to
2006 Feb 28
6
File_column, RMagick, and watermarking
I''m working on a photo gallery and I''m using File_column to handle the
uploads of the files and create my thumbnails, but does anyone here have
any idea how to have a watermark (opaque text maybe) placed over one of
the versions? Any ideas on how to go about this would be great. Even if
it''s just straight RMagick code, that would be fine too.
Thanks in advance for the
2007 Dec 23
8
will_paginate wont_paginate for me!
Sorry for the cheesy topic name couldn''t resist.
B4 I go into details I''m rocking Rails 1.2.6. I''m hosting on MediaTemple
and they seem to working on some issue between their grid servers and
2.0.
I''m struggling with pagination. I spent a few hours discovering that
everyone thinks you should use a plugin to do your paginations. It seems
will_paginate is
2006 Jul 31
2
Updating a belongs_to foreign key leaves the old association object available
Perhaps this is intentional, but it seems unlikely:
class Person < ActiveRecord::Base
belongs_to :school
end
p = Person.find(:first)
p.school # nil
p.school_id = School.find_by_name(''High School'').id
p.school.name # High School
p.school_id = School.find_by_name(''Primary School'').id
p.school.name # High School <= Shouldn''t this be Primary
2006 Jul 27
0
Controllers, Models, and Validations...
Hello,
After listening to DHH''s 2006 RailsConf keynote, I decided to take a
leap on my current application and do a little more re-organizing to
make it more CRUD-based. As such, I ended up changing some things
around to get this (simplified):
User has_many :enrollments, :conditions => ''status > 0''
User has_many :schools, :through => :enrollments
User has_many
2007 Jan 08
6
Thumbnail plugin
Hi,
With some help from Quinn_Storm, iXce, maniac103, mikedee and
KristianLy :), I've managed to modify switcher.c and make a new plugin:
thumbnail.
The plugin shows thumbnails of windows when cursor is moved over a task
button in taskbar.
Screenshot:
http://pix.nofrag.com/b0/7a/051d45e25bfffed09eeb9b00e383.jpeg
Download:
2006 Jul 17
6
3 newbie questions
hey all,
I have 3 tables like this:
Images (id,name)
Tags (id,name)
ImagesTags(imageid,tagid)
in my image model I do a "has_and_belongs_to_many :tags" but to make
it work I need to rename ImagesTags(imageid,tagid) to
Images_Tags(image_id,tag_id). My question is that given that I can''t
rename the table, is there any way to make it work with the original
names?
Second question:
2006 Jun 16
4
Depot App: Upload Images
Hello,
I''m a newbie to Ruby on Rails and like many others, I have been working
through the depot application in the Agile Web Development book.
I was wondering if anyone had enhanced the depot application to include
the upload of images for each product? The following describes the sort
of thing that I have been asked to produce for a client, so apologies if
the information is not
2006 Aug 09
8
AJAX image manipulation
I have this code in a controller that returns images to my browser...with
ROR.
def index
@products = Product.find_all_ pictures
end
....this is the .rhtml..
<% for photo in @pic -%>
<div class="entry">
<img src="<%= photo.image_url %>"/>
<h3><%= h(photo.title) %></h3>
<%= photo.description %>
2009 Jun 24
16
Web photo gallery options
Hi all,
I'm looking for a web photo gallery for my personal web server at home. Till
now I've done the galleries manually from Adobe Photoshop Elements, but I
feel that is a dead end, kinda', besides the fact that the galleries created
are rather static. I'd like an easier way to do this, eg uploading images in
folders directly to the gallery and it will take care of what needs to
2012 Mar 29
4
link Explorer Shell extensions to Gnome thumbnailer
Programs with special uncommon file formats (not jpg) often register a shell extension in Explorer that offers thumbnails for these files (since the files otherwise wouldn't have previews).
When I trigger in a Wine application (eg. SketchUp) the File Open dialog, I can see previews of the files (skp files) in the preview panel. This means the shell extension does work in Wine. The Shell
2008 May 25
2
record will absolutely not save! so weird, please help.
I have a weird problem going on. All of sudden, records for a certain
model will not save with #save Please take a look at this:
>> p = Payment.new(:payment_reason_id => 1, :payment_method_id => 1, :date => Date.today, :amount => ''5.00'', :payable => Student.find(608))
=> #<Payment id: nil, school_id: nil, payment_reason_id: 1,
payment_method_id: 1,
2006 Apr 02
7
RANT: belongs_to -> refers_to
Every once in a while, I pipe up and whine that "belongs_to" should really
be ''refers_to" [http://dev.rubyonrails.org/ticket/2130]. It''s time again.
I''ve got a bunch of stuff going onto eBay, so, like any good engineer, I
don''t just post it manually: I design a Rails-based inventory database that
creates a semantically-correct XHTML/CSS auction
2006 Apr 23
2
file_column and Thumbnails
I see that the SVN version of the excellent file_column plug-in can create
thumbnails using the url_for_image_column helper.
This uses Rmagick to create the thumbnail... Quick question...
Let''s say the file is a TIFF image - can the helper create a JPG version of
the thumbnail for display in the browser?
Curious if the plug-in can handle that transform with some creative use of
the
2008 Apr 15
4
is there a way to outsource image uploads?
I''m trying to keep my rails app lean and mean and want to avoid (if
possible) dealing with image uploads, thumbnail generation, running
RMagick etc.
I was excited about Amazon letting you upload files directly from the
browser to your S3 bucket (http://doc.s3.amazonaws.com/proposals/
post.html) but I couldn''t figure out how to generate thumbnails - has
anyone figured this out?
2007 Jul 21
2
avoiding timconsuming for loop renaming identifiers
Hi All
I was wondering if I can avoid a time-consuming for loop on my 600000 obs dataset.
school_id y
8 9.87
8 8.89
8 7.89
8 8.88
20 6.78
20 9.99
20 8.79
31 10.1
31 11
There are, say, 143 different schools in this 600000 obs dataset.
I need to thave sequential identifiers, 1,2,3,4,5,...,143.
I was using an
2006 Jun 06
8
How do I wrap a <%= link to %> around an image?
I''ve got a bunch of dynamically generated link paths that I want to use
to link some dynamically-generated image paths. Specifically, I want to
link thumbnails in a gallery to the larger images.
But I''m stymied by Rails'' syntax. I can''t figure out how to do this.
I tried this:
<%= link_to(image_tag("../../images/photos/photo.photogroup/TN_