Displaying 20 results from an estimated 4000 matches similar to: "New Guide - Looking for Feedback"
2007 Jun 21
9
it_should_behave_like
I''m trying to use it_should_behave_like, and something seems to be wonky
with the syntax. When I add :shared=>true, the DSL complains that the next
line is the fixture declaration:
/vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:137:in
`method_missing'': undefined method `fixtures'' for
#<Spec::DSL::EvalModule:0x324a2cc> (NoMethodError)
Here''s the
2006 Mar 01
1
HowtoInstallOnTextDrive : run command ?
Hello,
I try to install my local little site on my textdrive account.
So I read this :
http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnTextDrive
But I''m very newbie, and I don''t understand the line :
*1. run the command “rails sites_directory/app_name”*
How "run" the command ? From what app ? From where ?
Can someone could tell me what are the software I
2006 Apr 13
3
Java/J2EE DAO/model objects vs. Ruby/Rails model objects
In typical Java/J2EE applications, domain model object do not have much
logic, they are basically data holders. It seems to be considered a sin to
put persistence logic in the domain model objects, instead it should be put
a DAO (Data Access Object). I have always thought this seems funny, after
all, what seems more natural/object-oreiented?:
user.save()
or
userDao.save(user)
In Ruby/Rails,
2006 May 05
5
Attach a PDF File to an Email
Hello ~
I have an email that I need to attach a PDF to. The email is being
sent, and a file is attached but it is not the original file. I am
following the example:
attachment :content_type => "image/jpeg", :body => File.read("an-image.jpg")
changing it to:
attachment :content_type => "application/pdf", :body => File.read("pdf/my.pdf")
2006 Jan 23
3
[OT] Lighttpd + AWStats
Hello ~
I have posted a tutorial on my blog,
http://www.benr75.com/pages/lighttpd_awstats_tutorial, on how to get
AWStats and Lighttpd to work together. I thought it might be of interest to
Rails folk as I know many run Light.
Enjoy,
--
Ben Reubenstein
http://www.benr75.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 15
4
RJS template eating encoding
I was previously doing an update via .rhtml templates creating an AJAX
:evaluate_remote_response. I use UTF-8 in my pages, and my app
requires that I be able to, say, put Japanese characters in.
The problem is that when I switched this over to an RJS template it
started eating the encoding. I now get garbage characters where before
I got the correct ones.
The code for the RHTML:
<%=
2006 Feb 07
11
Possible Rails Security Issue?
I have an e-commerce site and users check out with a form. The
results of that form are sent to a "confirm your order" page via
POST. I take great pains to NEVER store the full credit card number
on my server--just the last 4 digits. I was very surprised to find
that by default Rails will record POST requests with parameters in
the production.log. And those parameters
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like
to use Basecamp''s todo management system, but that''s not an option
since I can''t install Basecamp on a server I own. The information
being tracked in the list cannot be sent out of my intranet.
I would imagine that there are a couple of open source rails apps that
would meet my
2007 Mar 12
7
Capistrano Hanging on Deployment
Hello ~
I am using the Capistrano recipe outlined in this post to restart my
backgroundrb server:
http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html
My Version:
~~~~~~~~~~~~
task :before_restart, :roles => :app do
restart_backgroundrb
end
task :start_backgroundrb, :roles => :app do
sudo "nohup
2006 May 23
2
TextMate and Tabs
Hello Everyone ~
Recently I have been moving Rails files between Mac, Linux, and Windows. As
many know the Windows Ruby version 1.8.4 doesn''t like tab characters. I
know in TextMate on the mac you can replace your tabs with spaces from the
Text > Convert menu, but is there a way to set it to do tabs with spaces
instead as you work? The preferences do not seem to have such a
2006 May 17
4
Unable to connect to mySql localhost
Unable to connect to mySql localhost
I installed MySQL 5.0 community version, without opening an account and
leaving the password empty with the Path included in the environment
variable.
In the post-installation testing, I typed C:\mysqlshow, the error
message is
Mysqlshow: Access denied for user ?ODBC?@?localhost? <using password:
NO>
Next, in RadRails 0.6.3, when I double-clicked
2006 Mar 16
4
Handling/Catching Exceptions
Hello!
I was wondering, sometimes I raise an exception in my Rails apps, e.g.:
raise SecurityError unless @post.user == logged_in_user
Now: is there any way to catch that SecurityError exception somewhere
and render a custom template? E.g., I want to render
''app/views/content/security_error.rhtml''
Does anyone know how to do this?
Thanks a bunch,
Rob
2007 Aug 01
4
stability of using scheduled workers
Hi,
Going through the archive, and just keeping a general watch on this list seems to indicate that there are some issues using scheduling with backgroundrb. I need a worker that will perform some actions on an hourly interval. These actions will require access to several of the models in my application. I am currently using backgroundrb to handle processing of files, where I spawn a worker to
2006 Apr 28
4
Conditional in Model
Hello ~
Is there a way to determine within a model which controller/action
instantiated the model?
Thx,
--
Ben Reubenstein
http://www.benr75.com
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my
testing with webbrick and it refuses to display the cached page for a
particular action. I''ve modified my paginator helper to put the page
parameter in the url so that the paginated page can be used with
caching. This works perfectly when the page parameter is in the url (ie
browse/2006/2 or
2006 Apr 27
4
Sessions Problems
Hi to group!
I am new to ROR!
I am facing problems on sessions.
First I created the one session variable.
after that I created the other one.
after moving to three pages the session was destroyed automatically.
What is the reason please help me!
Thnaks and Regards,
-Kumar Varma
--
Posted via http://www.ruby-forum.com/.
2006 May 04
1
Wiki Best Practice
Hello Rails Community ~
Today I added tagging support to one of my Rails apps following this Wiki page:
http://wiki.rubyonrails.org/rails/pages/ActsAsTaggablePluginHowto/versions/32
It outlined adding the necessary database tables with a schema
description in table format. I altered the article to use a
migrations approach with the code from the migration I created to add
the two tables,
2006 Apr 08
5
Strange error ...
I''m getting a very strange error in a very vanilla Rails app setup:
compile error
./script/../config/../app/views/home/index.rhtml:1: parse error,
unexpected $, expecting kEND
_erbout = ''''; _erbout.concat " <div id=\"index_main\">\n"
... ?
Anyone know what this might be? I installed the Login Engine and the
error started. I''m using
2006 Jan 31
6
Login works in dev but not in production
Hi,
I''ve implemented the login code from the Agile rails book and it works
perfectly in local development but as soon as I put it into production
it wont accept usernames/passwords. It just goes straight back to login
page.
Any ideas? thanks
--
Posted via http://www.ruby-forum.com/.
2006 Mar 16
3
image doesn''t show (rhtml path???)
Hi,
we try to show an image which is not inside the rails
framework, and we are not able to see the image!!!!
does someone know how to do this???
our rails is installed on
/opt/rails/project1/, so inside "project1" we have all
the rails directory like "app", "public", etc.)
our image is on the "/usr/images/"
so in our link on the rhtml. we use a link