similar to: routes.rb question.

Displaying 20 results from an estimated 1000 matches similar to: "routes.rb question."

2005 Mar 10
2
NoMethodError in Event_type#create
I am new Ruby on Rails, so excuse me if my question seems pretty obvious. I am trying to validate uniqueness of a filed: class EventType < ActiveRecord::Base belongs_to :sport validates_uniqueness_of :event_type end When I run it, I get this error message: Showing /event_type/new.rhtml where line #27 raised undefined method `each'' for nil:NilClass <select
2005 Feb 15
5
date_select where to add "class"=>"something"
Hi, I''ve looked on api.rubyonrails.org but I''ve not found how to add to a date_select(object, method, options = {}) a class option to set the class of all the select tags. I''ve tried using "class" => "myclass" in thoose ways: <%= date_select("costo", "data", "class" => "testo" ) %> <%=
2005 Dec 21
5
text search engine ?
Hi there, What are you using for text search engine in your rails applications ? I have been using simple search for simple applications, but then I need to search text in model instances inside collections such as user.documents and the like. I believe that simple search does not support any sort of ranged queries, and sql like might be overkill for tables with lots of records. Bests, Sergi
2005 Mar 10
6
Expiring Cache Fragments and fcgi
First let me say that Rails caching is very very cool. The traffic (and responsiveness) I''ve saved by added 10 lines of ruby code would be enourmous, if I actually had traffic... ;) Sweepers as observers are great, btw. Since every page of my side is dynamic, once I did some DB optimization I''m caching the content of the index page which was taking the bulk of the time to load
2005 Mar 10
4
error messages, loops and saves, actionmailer and finaly authentication
Thanks to everyone who responded to my first set of questions. Not only did I get my questions answered but I improved my code and learned a couple new things. I think I prefer the mailing list over IRC... easier to follow :-) I have some more questions if you don''t mind. Some are Rails related and some are Ruby related. 1) This is concerning displaying error messages. I am assuming
2005 Apr 16
2
Authorization
Hi, Maybe I ask again for something what is wasn''t able to find anything. Is there simple way how to process authorizations? My imagine is that some action for controllers are allowed only to few users. E. g. Everybody can look category list, but only registred user can edit or add. In best way, when user is signup, rails will remember his rights like: adding_category = false
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that my users can have multiple roles. ("Admin" role does always have id = 1). I have added these methods to my application controller. <code> helper_method :is_admin? helper_method :is_user? def is_admin? if @session[''user''] @session[''user''].roles.find(1)
2005 Mar 08
15
Rails 0.10.1and WEBrick
Doesn''t appear to work with WEBrick. Works find with Apache/FastCGI. Something wrong in the way Rails is trying to process paths from the WEBrick server. If I try to send in http://localhost:3000/recipes/new, WEBrick is interpreting /new as my controller, instead of my action.
2005 Feb 13
5
Select Enumerated Values with FormOptionsHelper
Hey, I''m new, so apologies if I''ve overlooked obvious resources or violated any etiquette rules for this list. Since rails does not support the MySQL enum data type, I''m following David''s advice of using a varchar and storing the valid values in the application: http://one.textdrive.com/pipermail/rails/2005-January/001536.html So here''s my
2005 Apr 28
7
Calendar helper?
Does anyone know if someone has created a popup calendar helper for selecting dates? The current way in rails with the multiple selects is cumbersome at best, and I didn''t see any calendar type helpers in there.
2017 Sep 22
2
sparse files on EC volume
Hello I'm running some tests to compare performance between Gluster FUSE mount and formated sparse files (located on the same Gluster FUSE mount). The Gluster volume is EC (same for both tests). I'm seeing HUGE difference and trying to figure out why. Here is an example: GlusterFUSE mount: # cd /mnt/glusterfs # rm -f testfile1 ; dd if=/dev/zero of=testfile1 bs=1G count=1 1+0 records
2003 May 01
1
Batch Mode?
I realize batch mode is still experimental, but I was hoping there might be a workaround for a problem I am getting. I have been trying to run some tests and I get the below error when I use the --read-batch option to. I can successfully create an initial set of batch files, then a second set based upon a few modified test files from the first batch. When I first run the --read-batch option
2017 Sep 26
2
sparse files on EC volume
Hi Xavi At this time I'm using 'plain' bricks with XFS. I'll be moving to LVM cached bricks. There is no RAID for data bricks, but I'll be using hardware RAID10 for SSD cache disks (I can use 'writeback' cache in this case). 'small file performance' is the main reason I'm looking at different options, i.e. using formated sparse files. I spent considerable
2003 Jan 08
7
ping from local to net
I try to do ping between my local network and Internet and i can''t do it, in my policy I have: loc net ACCEPT info loc fw ACCEPT loc dmz ACCEPT info fw loc ACCEPT fw net ACCEPT info fw dmz
2017 Sep 26
0
sparse files on EC volume
Hi Dmitri, On 22/09/17 17:07, Dmitri Chebotarov wrote: > > Hello > > I'm running some tests to compare performance between Gluster FUSE mount > and formated sparse files (located on the same Gluster FUSE mount). > > The Gluster volume is EC (same for both tests). > > I'm seeing HUGE difference and trying to figure out why. Could you explain what hardware
2017 Jan 03
2
Inconsistent behavior using 3.1.2 from macOS 10.12.2 to an AFP mount
Hi, I've been attempting to use rsync 3.1.2 to copy files from a macOS 10.12.2 system to an AFP mounted share. The command I'm using is: rsync -avAX -M--fake-super ./testDir ./mnt/testDir/ This works fine and all the extended attributes are copied and readable. I then try to use rsync to copy these files back with: rsync -avAX --fake-super -M--super ./mnt/testDir/ ./testDir2/ This
2017 Sep 27
0
sparse files on EC volume
Have you done any testing with replica 2/3? IIRC my replica 2/3 tests out performed EC on smallfile workloads, it may be worth looking into if you can't get EC up to where you need it to be. -b ----- Original Message ----- > From: "Dmitri Chebotarov" <4dimach at gmail.com> > Cc: "gluster-users" <Gluster-users at gluster.org> > Sent: Tuesday,
2006 May 05
6
rake rails:update
This question has been asked before, but I am still can''t run rake rails:update. I get rake aborted! Don''t know how to build task ''rails:update'' My environment: FC4, Ruby 1.8.4, Rails 1.1 Any idea what to do? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 23
17
Poor performance on NFS-exported ZFS volumes
I''m seeing some pretty pitiful performance using ZFS on a NFS server, with a ZFS volume exported (only with rw=host.foo.com,root=host.foo.com opts) and mounted on a Linux host running kernel 2.4.31. This linux kernel I''m working with is limited in that I can only do NFSv2 mounts... irregardless of that aspect, I''m sure something''s amiss. I mounted the zfs-based
2006 Jan 19
4
PHP ob_start in Ruby
I need to include Content-Length in each file. In PHP it would be: <?php ob_start(); ?> html <?php header(''Content-Length: '' . ob_get_length()); ob_end_flush(); ?> How can I do the same in Ruby? Thanks, eduard -------------- next part -------------- An HTML attachment was scrubbed... URL: