Displaying 20 results from an estimated 3000 matches similar to: "MyAlbum - photo application"
2006 May 13
0
trouble with Dir.chdir
Hi, folks
I wroted the codes below.
I have the trouble with the line start from "Dir.chdir".
When I run this code, the FTP of photos is successfuly done.
But, the display of browser is white out.
When I comment out the line start from "Dir.chdir",
the trouble doesn''t happen.
Is there anything wrong with my usage of "Dir.chdir"?
def ftp_photo
2008 Nov 03
1
Questions about changes to Restful Authentication.
I have a couple of projects with Restful Authentication
The first snippet is from the Git repo today and is supposed to be the
newer code.
# Store the given user id in the session.
def current_user=(new_user)
session[:user_id] = new_user ? new_user.id : nil
@current_user = new_user || false
end
# Store the given user id in the session.
def current_user=(new_user)
2010 Oct 30
0
Will_Paginate — Set the Starting record ? IE, Photo 3, of 8
Hello. I''m working very hard to build projects > photo_albums > Photos
But am Stuck on being able to implement it.
Desired User Flow...
#1 - User clicks their project
#2 - User sees a list of photo albums
#3 - Users clicks a Photo Album
#4 - User see a list of photos in the album
#5 - User views the clicked photo BUT has will_paginate showing in
the nav for all
2006 May 07
1
Overwriting setters for associated objects
Hi all,
I''m trying to overwrite a setter method, but am running into some
difficulties. This is normally really easy when overwriting a setter for
a table column, but in this case it is the setter for an associated
object.
Here''s a hypothetical example:
class User < ActiveRecord::Base
has_many :posts
end
class Post < ActiveRecord::Base
belongs_to :user
2011 Apr 21
0
Create multiple photo upload Error!!!!!!!!!!!!!!!
Hi all,
Create a simple application where user can have many albums and album
can have many photos. User should be able to upload multiple photos
while creating new album by clicking on "Add More Photo". Photos can
also have tags(comma separated). Thumbnails must be created for each
photo after uploading. Album and associated photos and tags should be
created simultaneously, use
2011 Sep 27
2
passwd problem with new vps
greetings,
I am setting up Centos 6 i686 remotely, on a new VPS.
A problem I have is that I cannot set password for new users. I have
created one with
useradd -m new_user
but when I type
passwd new_user
this is the result:
[root at vps ~]# passwd new_user
Changing password for user new_user
New password:
Retype new password:
passwd: Authentication token manipulation error
[root at vps
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
Hi,
I just installed Rails 2.0.2
[root@mymachine easyx]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
[root@mymachine easyrx]# gem install rails --include-dependencies
Need to update 16 gems from http://gems.rubyforge.org
................
complete
Successfully installed rails-2.0.2
[root@remandev easyrx]#
But I''m getting this error in my restful_authentication
2013 Sep 26
0
Fetch the user albums and photos
Hi,
I am using omni-auth for the user authentication and logged in the user
via access token.
But like facebook i want to fetch the user profile information and all
the albums he/she uploaded and images belongs to that albums, than save
the public url to my own database.
I found fb_graph a very good gem to use FB Graph search but i could not
find any Gem that helps me to extract images,albums from
2013 May 08
1
Using koala get facebook albums photos
Hi Folks,
Good day,
I need to display my facebook album photos in my application.
I used *Koala *for facebook API.
I used this query for getting my album photos,
*current_user.facebook.get_connection("me","albums")*
by using this i can get only the albums details.
*"I need my photos which i upload in facebook "*
*
*
Please advise.
Thank you
--
You received
2006 May 19
1
validates_presence_of and ajax-forms
Hi.
I have "validates_presence_of :login, :password, :firstname,
:lastname" in my user-model. I enter the information in
new_user.rhtml:
<%= error_messages_for(:user) %>
<%= form_remote_tag :url => { :action => :register }, :html => { :id
=> ''new_user'' } %>
I have a register.rjs with :fade.
Omitting firstname or any other required field
2006 Aug 16
6
Photo Albums?
Hello all,
Can anyone recommend any free(ish) Ruby photo album components?
Preferably something with a user structure built in.
Cheers.
--
Posted via http://www.ruby-forum.com/.
2009 Jun 11
8
before_create return value breaking object.save: rails bug?
I know that usually when people say ''i think i found a bug in
rails/ruby'' they''ve done something dumb. I''m wondering if this is the
case here, but this does seem like a genuine rails bug to me.
In my user model i have a few different before_create callbacks. In one
of them, if it happens to return false (just because the last statement
in it evaluated to
2007 Apr 24
1
Saving digikam photos for update to Centos 5
I will be installing Centos 5 soon and would like to know how to save my
digikam photos from centos 4.4 for inclusion in the centos 5 digikam version.
I have a external usb 2.0 hard drive to save the messages on. I know how to savethe messages on the hard drive.
I am interested in knowing should I save the entire pictures directory or only
the photos from my albums.
I would greatly appreciate
2010 Aug 08
1
help me
i am creating an aplication where table name albums width attributes
CREATE TABLE albums ( id int(11) NOT NULL auto_increment,
title varchar(255) NOT NULL default '''',
artist_old varchar(255) NOT NULL default '''',
release_date datetime NOT NULL default ''0000-00-00 00:00:00'',
genre varchar(50) NOT NULL default '''',
created_at
2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb
def album_list(genre)
albums = genre.albums.sort
list = albums.collect { |album| link = link_to album.title,
:controller =>
''albums'',
:action => ''show'',
2003 Apr 22
0
Weird unicode related bug in smbfs?
Dear All,
I have encountered a strange bug that occurs (I think) with Unicode
related file names in samba. Let me illustrate the example:
I have a Win2k box with IP 192.168.0.2. This box has an NTFS folder
called "Music" on it, which is shared for only one user. I have a Debian
Unstable box with IP 192.168.0.1 which coincidentally acts as the router
for the Win2k box. Both
2008 Jan 04
2
Nested Routes + Facebook Resources
Does anyone have nested routes working with the facebook_resources
method?
My routes.rb has:
map.facebook_resources :users do |users|
users.facebook_resources :images
users.facebook_resources :connections
end
but user_connections_url won''t generate.
"rake routes" gives me:
new_user POST /users/new
{:action=>"new",
2011 Nov 10
4
Maktabah Syamilah on wine
Hi, I'm one of ubuntu indonesian muslim users. The truth is; all of kind software piracy is forbidden in our religion, some people who care this rule get an OS migration. But there are a problem, the best Islamic software "Maktabah Syamilah" doesn't run perfectly, take a look at the screenshots!
This is maktabah syamilah on windows:
[Image: http://i44.tinypic.com/iqyo48.png ]
2006 Jul 18
0
another 2 newbie questions
Hey all,
Ok I have three tables:
Images(id,name,dirid) #dirid is a foreign key to Album.url, the path
to the image
Albums(id,url)
Tags(id,name)
ImagesTags(image_id,tag_id)
I have a HABTM relation for tags and images and a belongs_to/has_many
relation for albums and images.
Now in my views/tag/show.rhtml I have this:
<% for album in @albums %>
<% for image in @images %>
<% if
2006 Nov 12
6
Compiz bugs?
Hi,
I've been following the list for a few months but this just my first
post to the list. I've just started to use compiz again a few days ago
and I have a few things (probably bugs) here that bugged me a little
bit. I am not sure whether the bugs is in compiz or somewhere else so it
would be nice if someone could confirm them. Here they are:
- on default window decoration the maximize