Displaying 20 results from an estimated 38 matches for "vince71".
Did you mean:
vince
2006 Apr 15
19
Trouble with Lighty
I''m trying to setup my rails application with Light+fcgi.
This is the error I''m getting when I try to start Lighttpd :
============
[getcapture@alpha getcapture]$ ~/etc/rc.d/lighttpd.sh start
Starting Lighttpd
2006-04-15 11:27:24: (mod_fastcgi.c.1022) execve failed for:
/home/getcapture/application/public/dispatch.fcgi No such file or
directory
[getcapture@alpha getcapture]$
2006 Apr 15
9
newbie q: acts as authenticated or login engine?
I''m trying to create a basic web page where people can register. Before
they are approved they are emailed a link where that they must click in
order to verify their info is correct (or at least their email).
Should I use acts as authenticated or the login engine for this?
http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated
http://rails-engines.org/login_engine
TIA
2005 Dec 14
9
Passing quantity in a shopping cart
I am using this line on my index.rhtml page to capture the quantity
required of a particular item for a basic shopping cart app:
<%= text_field ''line_item'', ''quantity'', {:size=>3} %> </td>
but my next screen (a cart screen) doesn''t reflect what was entered in
that text field when the item is added to the cart. That is,
2006 Aug 16
3
Easiest way to create a google map mashup?
I wanted to add a mash up to my website and was wondering if there were
any recommendations? I saw that there is a cartographer plugin
(http://cartographer.rubyforge.org/) and also something else called YM4R
(http://wiki.rubyonrails.org/rails/pages/YM4R).
I have no idea if they are up to date or not or whether this is
currently the easiest/best way to go about it short of rolling your own.
2006 Apr 22
7
Expiring items
In my database I have a products table that has a bunch of attributes
(title, description, etc) including one for date_expires.
Is there a best practices method to get the database to erase the
expired items? Is that done outside RoR via Cron or something?
Else is it better to just have my app filter out anything that is
expired but still keep those records in my dbase?
--
Posted via
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc)
and I would like to redirect them back to the last page they were at
before calling that action. Is there an easy way to do this?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 12
7
Calling absolute links
I have a primary layout that I''m using in several controllers. On my
sidebar I have a link that I set up as follows:
<div id="sidebar">
<%= link_to("Items", :action => "list") %>
</div>
Everything is ok when I call it from my primary controller, but since I
am also calling the layout from a second controller that does
2005 Dec 04
10
web server q -- playing nice w/ PHP
I have a webserver that''s happily running apache2 and PHP. I''d like to
deploy a site that I wrote using RoR on that same server but read that
there might be some conflicts with PHP and RoR trying to access the same
MySQL database.
How real are those conflicts? Could I mess up my running PHP site if I
install mod_ruby and try to use Apache2?
Would I be better off
2006 Aug 14
2
need a warning for destroy all
I wrote a small controller to find all the expired items and destroy
them:
@listtodestroy=Product.find(:all, :conditions => [''user_id = ? AND
date_expires <= ?'', @user.id, Time.now])
for product in @listtodestroy
product.destroy
end
It works fine but there''s no warning that everything is about to be
removed like when I call product.destroy
2006 Aug 15
0
scan syntax question
I was going through the syntax on this site:
http://www.rubycentral.com/ref/ref_c_string.html
trying to figure out how to parse my tags. Basically I have a tags
field that returns a value a = ''new york'' table
I want to parse it so that I grab the new york and the table but the
only way I know to do it is with scan such as: <%a=st.scan(/\w+/)%>
which returns three
2006 Jul 08
1
reversing display order in for?
I am displaying some data on one of my pages by calling a for loop:
for comment in @comments
and then diplaying it:
<%= link_to comment.send(''comment_subject''), :controller =>''comments'' ,
:action => ''show'', :id => comment, :class => ''comment'' %>
Works great, but it displays things from oldest to
2006 Jun 10
2
Human dates
when I print Time.now,
Today is <%= Time.now %>
I get output like
It is now Sat Jun 10 18:39:33 EDT 2006
Is there a simple way to change my code so I just get
It is now June 10, 2006
Thanks..
--
Posted via http://www.ruby-forum.com/.
2006 Jun 12
0
keeping logged in via acts_as_authenticated
My site is working but every time I quit Firefox and go back I seem to
have been logged out. Is there a setting somewhere that I can alter to
keep the user logged in longer?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 13
2
If... what?
I have a simple div in my layout that I would like to change depending
on the action. For instance in the account/signup I would like it to
use <div id="register"> but in account/login I would like it to use <div
id="login">
I''m trying to find the right if statement to use here.. I thought that
maybe:
if :action => login would work but it
2006 Jun 14
1
simple-rss caching
The index page of my rails app grabs an rss feed from a neighboring news
site. Unfortunately, the process of grabbing that feed seems to be
slowing down the initial load time of my site to the point where it
takes about 10-12 seconds to respond and render.
I''d like to speed that up somehow (for 8-10 seconds it looks like my
server is not responding at all..) Any suggestions?
I
2006 Jun 19
0
map lighttpd to specific action?
I have a multi-city application set up and right now the city is set by
a session variable:
if @user.city.to_s==''3''
session[:city]="nyc"
redirect_to(:controller => "users", :action =>
"nycindex")
Is it possible to map a specific URL to that same action? e.g.
ny.foo.com would set @user.city.to_s
2006 Jun 29
1
newbie routes q
It looks like my lighttpd server crashed yesterday. The only thing I
found of interest is that the last request in my production log was from
somebody looking for a URL that doesn''t exist in my app. I should
probably fix it with routes, right? Can somebody help me understand how
to route all 404 errors back to the index page?
Also, where should I put a rescue for
2006 May 08
1
newbie: Login/Logout in view
I am using the acts_as_authenticated plugin to manage logging in/logging
out. There are a few controllers, such as search, that I don''t mind
people accessing regardless of whether they are logged in or logged out.
My current view just has some static links on the left that say Login
and Logout. How should I set it up so that it says Login when not logged
in and log out when logged
2006 May 10
2
newbie q on displaying a db field value in the view
My layout calls a few links like so:
<%= link_to ''| Home '', :controller => ''search'', :action => ''''%>
<%= link_to ''| Search '', :controller => ''search'', :action => ''''%>
I would also like to display two values from my user table in the same
layout right after the
2006 Apr 16
2
newbie actionmailer question
I''m trying to get my app to send an authentication email (via the
authenticated_as plugin)
I think the authenticated_as code is ok, but it''s failing when it tries
to send a mail.
getaddrinfo: Name or service not known
In environment.rb I set up the code for my mail server:
# Include your application configuration below
ActionMailer::Base.server_settings = {
:address