Displaying 20 results from an estimated 10000 matches similar to: "posts to this list"
2006 Jun 08
21
"Rails recipes" vs "Rails cookbook"
Reviews Wanted.
I''ve read the tables of contents and haven''t yet made up my mind.
Is one book clearly better than the other? Is one clearly full of bugs? Is one so much
further ahead that there is no choice? Are they both so incomplete that I should just
wait and only cook real food? Do trains still have dining cars?
Warren Fred
-------------- next part --------------
An
2006 Jun 17
4
Simple tutorial weirdness
Sorry - working on a simple tutorial but something is throwing me
here. I''m supposed to get a Time.now() print to the page but it''s not
working and I can''t figure out why.
No errors are thrown my the page shows:
Howdy, world! My name is Stuart Felenstein.
This was verified at .
So no time stamp showing. I went into IRB , did a Time.now() and it''s
working
2006 Aug 07
8
Login form question
I''m using Rails Recipes to create a login form but instead of username
and password, my setup is firstname, lastname, password.
I seemed to be gramatically challenged and not sure how to set up the
parameter list. Can anyone offer up a suggestion.
The book shows the method starting like:
if request.post?
user = User.find(:first, :conditions => [''username = ?'' ,
2006 Aug 19
22
Wazzup with the rubyonrails-talk Google Group?
I just got a Google Groups notification that I had been
subscribed to http://groups.google.com/group/rubyonrails-talk.
Looking at the page, it appears that about 4300 folks have
been subscribed. However, I saw nothing about this on
rails@lists.rubyonrails.org. Wazzup?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm@cfcl.com
2006 Jun 09
18
Is IRB the ruby console ?
I''m running script/console but keep getting the message that irb.bat is not
recognized as an internal or external command, operable program or batch
file.
If it means anything I am running instant rails. I can invoke irb straight
forward.
TIA
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is.
Anyway if I do just session[user] I get back the user id (the id from
the user table)
which is good.
However this code does not work.
<% a = session[:user] %>
<% uname = User.find(:first, :conditions => id = a) %>
<%= @uname %>
TIA
Stuart
2006 Nov 13
9
Setting up Mongrel and Apache , some direction needed
I have a site that is PHP on Apache / RedHat , but will send requests to a
subdomain (running Rails) for database operations.
I believe the set up should be to have ROR using Mongrel, and an Apache
virtual host passing requests from apache to mongrel.
Does this sound correct ?
I believe the Virtual Host is set up in Apache.
One of my problems is I can''t find the httpd.conf file for
2006 Jun 14
13
Undefined method
I really hope this is not a bad question (as in he''s abusing the
list). However I could use a little direction (even though I''m
reading books, tutorials)
Right now I''m getting a
undefined method `category'' for 4:Fixnum
The specific lines from the rhtml file are:
<td><%= link_to position.category_id.category, :action => "show", :id
=>
2006 Jun 12
3
Syntax errors on "insert into"
I''m digging around and googling but can''t seem to find what I think is a
simple thing. All I''m trying to do is insert data in a migration into a
table, using regular SQL statements.
LIke this:
class AddStateData < ActiveRecord::Migration
def self.up
INSERT INTO states values ('''',''Alaska'');
INSERT INTO states values
2006 Jun 19
12
AWDWR- Question
I''m having a particularly difficult time undersanding one lesson from
this book. This is in relation ot how one would grab "search"
parameters from web forms to search for records in the database. I
understand the :conditions part of find() but am confused on the code:
1- name = params[:name]
pos = Order.find(:all,
:conditions => ["name = ? and pay_type =
2006 Jul 16
3
OT: Radrails
Sorry, but I have tried signing up for the RadRails list and never can
get a confirmation email. I think it may not exist.
Anyway, I created a project using just cli, now I''m trying to import
the project with no success. I choose the directory and radrails just
sits there not enabling the okay button
Sound familiar ? Maybe I''m doing something wrong.
Stuart
2006 May 18
4
Request Routing Plugin ( :requirements => { :subdomain => ''thing'' } finally works)
Hi All,
Just a quick note to say that I''ve released an intial version of the
request routing plugin which essentially allows you to use various
request object properties as requirements in routes. Most notably you
can do:
map.connect "thing", :controller => ''main'', :requirements => {
:subdomain => ''whatever'' }
..just like the wiki
2006 Jun 23
16
Help please-draggable
I asked the other day about this problem but haven''t received a response.
Trying again:
I just downloaded 1.6 and can''t get a simple draggable to work, which
is weird. I know it''s not my browser since the demos are working.
Here is my simple code. I''ve also had the "new Draggable" between
the select tags. Didn''t change anything.
2006 Jun 13
11
markaby
What''s the current status of Markaby? I''ve played with it a bit and
love it and am considering using it for a large project I''m starting.
If you''ve used it, I''d love to hear your comments!
Jamie
2006 Jun 15
8
Markaby Installation Issues
Ok,
So I followed the directions.. I did a ''gem install markaby'' (which sounds
like its enough to get me going for rails), but I wasn''t sure, so I tried to
install the plugin as well.
Plugin installation fails looking for a file:
Script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk
Outputs this error:
+ ./trunk/svnindex.xsl
2006 Jun 18
13
Currency calculation
I''m thinking of experimenting with some currency conversion. However,
I''d like the conversions to be in synch with the current rates.
Anyone know (and this maybe out in left field) if there is some online
(perhaps xml) or other data stream I can connect with in my code to
output values based on user selection ?
TIA
Stuart
2006 Sep 15
7
OT: TinyMCE in Rails
I''m having a problem getting the text area the size I want it to be.
In my view at the top I have this init calls
<script type="text/javascript" >
tinyMCE.init({
mode: "textareas",
theme: ''advanced'',
theme_advanced_toolbar_location: ''top''
});
</script>
Then in my form:
<%= text_area
2006 Jun 08
19
Agile Web Dev (book) question: errors
This is kind of frustrating (but no doubt helpful in the long run) that
after following along and coding , and d/l the code the same error is
appearing.
For those who are familiar with the depot app, I''ve run into a problem after
fixing the cart to reflect quanitites. I worked through the intended error
messages but now have this appearing:
SyntaxError in StoreController#add_to_cart
2006 Jun 16
12
FastCGI times out?
Hello there,
So I''m still struggling with this fastcgi stuff. I''m trying to upload and
process a decent sized ZIP file, but the request dies before it finishes and
I get the following error:
FastCGI: comm with (dynamic) server
"/Users/ryan/Workspace/rails/photos/public/dispatch.fcgi" aborted: (first
read) idle timeout (30 sec), referer: http://photos/album/new/4
2006 Jul 15
2
Migrations question
I started working on an app. It''s new at this point so backing up
wouldn''t be difficult, however I''m wondering if there is some plugin
that exists where I can use it to grab the current database (set up
without migrations) and create a migration file ?
Sort of grab a current snapshot of the database and use that as a
stating point for my migrations directory.
TIA
Stuart