Displaying 20 results from an estimated 100 matches similar to: "modelling data to specify user access"
2009 May 12
3
forms & link css classes - not working
I used a scaffold to create an interface. I''m trying to style it and
I''m having trouble. In my css I have:
#content a, a:link, a:visited{
color: #ff8400;
}
#content a:hover{
background: #ff8400;
color: #FFFFFF;
}
#content a.urgent, a.urgent:link, a.urgent:visited {
color: #FF0000;
}
#content a.urgent:hover {
color: #FFFFFF;
background: #FF0000;
}
#content input.m_title{
2005 Dec 23
4
OO model style: inheritance
Hi everybody
I am totally new to rails and I am trying to start a
tiny project to get familiar with rails. But I already
got my first problem and I would be happy if somebody
could point me in the best and cleanest direction.
I am trying to develop a small gallery app. Since I
would like to add more features in future I am trying
to design a clean OO architecture of my models:
The base object
2006 Jun 08
5
update only the join table in a HABTM - how?
I have a photographers app that requires giving access to galleries for
users. in one part, I want to be able to define gallery access for a
user seperate from updating any of the user info. I have this function:
def edit_access
@user = User.find(params[:id])
@user.galleries = Gallery.find(params[:gallery_ids]) if
params[:gallery_ids]
if @user.update_attributes(params[:user])
2008 Jan 10
0
BUG? has_many :through makes funny queries
So I have this structure.
class Gallery < ActiveRecord::Base
belongs_to :owner, :polymorphic => true
has_many :folders, :order => ''slug'', :dependent => :destroy
class Folder < ActiveRecord::Base
has_many :photos, :dependent => :destroy, :conditions => "parent_id IS
NULL"
belongs_to :gallery
class User < ActiveRecord::Base
has_one
2018 Jan 19
1
Leaflet maps. Nudging co-incident markers
I have a dataset showing points, with a category for each point and its location.
I simply want to display my points, in a way that users can toggle the points on and off by category.
Where I have two objects in the same category I'd like to display them nudged to appear as two distinct, but very close points.
I have made reproduceable example (the places are not real), which is loosely
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 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
2006 Jun 22
5
Sliding Gallery
I have a little image gallery application in rails enough for small galleries
(20< photos). But as images increase and the user needs to scroll down the
page it starts getting anoying to see all pictures...
I thought pagination but then I saw this AJAX goodness
http://www.apple.com/getamac/ads/
As you can see the videos scroll right/left when the arrows are pressed in a
circular manner
2007 Apr 16
6
How to use a form.check_box ?
Hey guys,
I''m trying to have a simple webform in my administration section to
add a user. I have the text_fields for adding the user''s name,
password, and password confirmation, but cannot seem to figure out the
checkbox. I want it to be a single checkbox, that if clicked, will set
the database column "access" to be "admin" and if its unchecked, set
it to be
2013 Mar 29
3
ovf conversion
I try do use one of the images available from [1]
These images comes in two flavors, one vmx, one ovf.
I do not know how to convert one of these to centos6-libvirt-kvm
virt-convert gives me an error
$ virt-convert -i ovf -o virt-image path_to_image.ovf
ERROR Couldn't convert disks: Disk conversion failed with exit status
1: qemu-img: Could not open 'path_to_image.vmdk'
The vmdk
2009 May 12
4
Controlling outbound bandwidth utilization by port
Among other things, I run an http server on my home DSL line
(6M/768kbit). The content includes several large image
galleries, and when certain crawlers hit our server w/
multiple large image uploads, we end up with large
ping time delays - sufficient to disrupt the kids''
on-line gaming. Attempts to control this with robots.txt
has not be very successful; Solaris IPQoS appears quite
2007 Jul 01
3
Session WTF ?
Hi.
How to use session in ruby on rails ?
I try to make it work for hours, but it still doesn''t work...
In my controller I have this:
def identification
@current_user = User.new(params[:user])
ok = false
redir = ''login_failed''
@remote_user = User.find(:all)
@remote_user.each do |r_user|
if (r_user.login == @current_user.login and
2012 Jul 18
0
Rails 3.1 Optional Routes
Hi all,
I am using Rails 3.1 and Ruby 1.9.2
In my application i am using optional routes like below
match ''Gallery(/:gallery_id(/:image_id))(/page/:g_page)'' => "wps/
gallery#show_gallery_page",:as => :gallery_page
in console i am trying to call the routes like below
include Rails.application.routes.url_helpers
=> Object
1.9.3dev :002 > gallery_page_path
2006 Aug 11
1
Absolute path to public/images in rake task?
Hi all
I''m trying to create a rake task for the first time, so please be a bit
patient with me. ;-)
I''m coding a photo gallery. Every photo gallery''s photos are in its own
folder, and after an update I''d like to be able to synchronize the photo
files with the database (because every photo has its own Photo class
object). I''ve got so far:
# File
2008 Sep 25
5
Dot plot - equivalent of MINITAB
hi folks,
Bit of a newbie, but I've spent a fair bit of time looking for an answer on
this, with no joy. Can anyone help me?
Dataset: A single column of values in a csv file (eg. 52, 53, 54, 85, etc)
Goal: In Minitab, you have what they call a dot plot. It's a histogram,
where a single dot represents a set of identical values (eg. 57, 57, 57
would be one dot). Multiple dots are
2006 Dec 14
12
Saving dates
Hi having trouble saving dates in my form i have the following in the
view
<%= date_select("details", "open_date") %>
and i have
@exhibition.open_date = params[:details][:open_date]
and then
@exhibition.save
All the other values form (not seen here) get saved but not the dates.
What am i doing wrong ?
--
Posted via http://www.ruby-forum.com/.
2011 Aug 09
1
simple plot question
Hi,
please excuse the most likely very trivial question, but I'm having no idea
where to find related information:
I try to recapitulate very simple plotting behavior of Excel within R but
have no clue how to get where I want.
I have tab delimited data like
cell treatment value
line a treat1 4
line a treat2 3
line b treat1 8
line b treat2 11
I'd like to have a plot (barplot), that
2006 Jun 20
1
R galleries
Hello!
I just noticed new link on R wiki on R galleries and wanted to share
this info with YOU!
- R graphical manuals (this is awesome page as there are all help pages
of all packages on CRAN and probably even more and all graphics examples
are displayed! - more than 8000 images!)
http://bg9.imslab.co.jp/Rhelp/
This is a very nice addition to already existing R graph and movies
galleries
- R
2006 May 05
0
Small design problem
Hi,
I''ve got a page with galleries. Everything works quite ok. But now i
need to create a special gallery that will be used only to randomly
display images on the home page.
The main difference between this and the other galleries will be that it
won''t have description and title like the others and its images won''t
have their thumbnail versions. Admin
2004 Dec 29
9
Shorewall rpm failed dependency: iproute (ip is working)
Hello Shorewall gurus, as outlined on the shorewall site I have done the
following after failure to install shorewall via the rpm:
I have read all of the FAQ.
I have read the quickstart guide with particular attention directed at
the Mandrake solution.
I have searched the mailing list archives (all old replies).
I have studied the documentation index.
I have previous experience using shorewall