Displaying 20 results from an estimated 1000 matches similar to: "storing views in subdirectories?"
2006 May 11
3
can''t call link_to from within a model class
can anyone tell me how to call link_to from within a model class? I''m
trying to do something like the following:
validates_uniqueness_of :email, :message => "address has already
been taken. If you''ve forgotten your password, please click " +
link_to(''here'', :action => ''forgot_password'', :controller =>
2006 Jul 07
1
question about routes and using flash for navigation
I have a flash movie that I''m using for site navigation.. I have links such as:
''/site/signup'', ''/site/login'' and ''/site/faq'' where site is my
controller and signup, login or faq are my actions.. I also have the
following routes defined in routes.rb:
map.connect "/", :controller => "site", :action =>
2006 Nov 04
1
Dynamically updating a sortable list using RJS
I''ve got the following sortable list in one of my views:
<ul id="sortable_list" class="sortable_list">
<%= render(:partial => ''section'', :collection => @sections) %>
</ul>
<div class="new_section" id="new_section">
<%= form_remote_tag(:url => {:action =>
2006 May 29
9
design recommendations for authenticating users with lots of different attributes..?
I''ve been struggling a bit trying to figure out the best way to
design/implement a system with authentication/authorization, and was
hoping some of you may be able to offer some advice..
At the moment, I have a system with 4 different types of users -
clients, administrators, sales_reps, and public_users. I''m using
"Authorizing Users with Roles" from the Rails Recipes
2006 Apr 29
7
catch "find" exception
obviously, follow code is not working
<p>
<% if !@group.users.find(session[:user].id) %>
<%= link_to "Join This Group", :action => "join", :id => @group %>
<% end %>
</p>
"find" always throw an exception. I want to display the link of "find"
fails, what is the right way to do this?
Thanks.
--
Posted via
2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
Hi all, I''m running into a very strange but incredibly annoying
problem that I just can''t seem to solve.
The exception is occurring from a seemingly innocuous line in my code,
a simple ''logger.warn("some debug information")''. The backtrace
follows:
SecurityError (Insecure: can''t modify array)
2006 Jun 16
4
Form magic
Didn''t know what else to call this subject, sorry.
Anyway this is more a general discovery question then a coding one.
Is it possible (and I already know it should be) to create forms where
depending on a particular choice in one select tag, one or another
select tags would be presented in the form.
As an example, a shopping site , where a dropdown has options of:
1-Men''s shoes
2006 Aug 14
3
validating required fields during an update?
I have a User model with an email attribute. I''m using the following
validations:
validates_confirmation_of :email
validates_format_of :email,
:with => RFC822::EmailAddress,
:message => "must be a valid address in the form user@domain.com"
validates_uniqueness_of :email, :message => "address has already
been taken. If you''ve forgotten your
2008 Jul 14
8
ROR job opening.
Hi,
I have a job opening which is for the newest technology "Ruby on Rails",
15000/- per month for freshers.Not much interviews .
Job shall start in a few days.Hurry.
Get back to me if in case you are interested.
Rest is my responsibility.
Revert back if really interested .
--
Web.bloggers-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
CJ(JON)
2009 Feb 07
3
Re-post data format question (apologies)
Hello all,
I have a *.csv file that looks like this (actual file is orders of magnitude
larger):
Site taxa no.ind
forest LMA 1
forest LCY 1
forest SCO 1
meadow LMA 2
meadow LCY 1
meadow PNT
2006 Jul 07
10
problem serving pdf files
I''m using the instructions from
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/to
configure mongrel_cluster with apache mod_proxy_balancer. Everything
works fine, except when I try to link to a pdf file to be opened in a new
window, it displays the contents of the pdf as text instead of opening it as
a pdf document through Acrobat.
2006 May 20
3
Any IP phones with pro-audio connections?
Does anybody know of any IP phones (ideally SIP based) that have
interfaces to plug into a pro audio system (eg for phone interviews).
Something can probably be hacked up with a headset connector or the 1/8"
jacks on a 7970 but I'm wondering if there's something better out there.
Thanks,
Julien
2006 Mar 10
2
2nd R console?
hello all, i'm forwarding this question for a colleague.
"Is it possible to open a 2nd R Console?"
regards,
mark+
--
mark garey
ucsf
department of epidemiology and biostatistics
division of biostatistics
185 berry street, suite 5700
san francisco, ca. 94107-1739
415.514.8147
2011 Apr 12
6
audio recorder compatibility
I'm shopping for a small/tiny audio recorder, the kind for recording in
a class, interviews, etc... not really music, just voice. Per usual, a
lot of these write their audio files in some Windows format, e.g., WMA.
As a confirmed Linux guy, I'd want to offload the audio files in some
format that Linux can read/play natively. I've read a sketchy
suggestion that there's a Linux
2006 Oct 13
5
Polycom IP 501 phone randomly resets itself (loses Received call log, Missed calls, placed calls)
I've been noticing that my group of Polycom IP 501 phones seems to
randomly reset themselves nearly every night (I guess it usually
happens at night, since I've never seen it happen while I've been at
work during the day)..
When I say "reset", I mean, the hands free volume and ring volume are
set to the default and the call logs (received calls, missed calls,
placed calls)
2007 Jan 06
1
Camping Podcast
I''m putting together an episode of the Rails podcast that will be dedicated to Camping.
I already have the first interview recorded. I''d like to get 3 or 4 more short interviews (short...maybe 4.096 minutes each).
If you''d like instant fame, send me an email and tell me what camping project you would like to talk about, what your skype username is, and when is a good
2011 Oct 29
2
comments on HAML ?
I have been asked a couple of times at job interviews if I am
familiar with HAML or Liquid so I was wondering if maybe I should
start using them and perhaps it would make the views easier to work
with.
If I install HAML on a machine where my app is that has alot of
regular HTML in the .erb views already, will it still work with those
or do I need to convert everything to HAML ? Can I have some
2006 Mar 23
6
I'm FED UP with BroadVoice
After months of BroadVoice ignoring my trouble tickets for dropped calls,
delayed termination, etc., I'm throwing in the towel. While they have
credited $19.95 to my account, they refuse to credit anything more, despite
ALL of the problems I've had. I feel the least they could do is credit the
remaining $8.61 to my account, yet they won't.
I haven't really been following up on
2012 Mar 27
1
problem with setting up ssh chroot account
Hello -
I am trying to set up a ssh chroot account on a Red Hat
Enterprise Linux 5 server. I have my jail set up and have copied over
a selection of commands and their libraries. I have also created a /
dev and some devices. As part of that, I had to create a /dev/pts
directory to handle the terminals.
However, when I try to connect as the chrooted user, I get the
following error:
2003 May 25
3
Vorbis vs Speex
Hi,
I have downloaded Vorbis and played with it, and I have downloaded
Speex but not yet played with it. My understanding is that Vorbis
is targetted at high-quality audio (music) while Speex is targetted
at speech quality audio (telephoney and such). So I have two questions
to ask the group:
1. Which would your experiences show is the better codec for recording
high quality speech such