search for: benr75

Displaying 20 results from an estimated 135 matches for "benr75".

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: htt...
2006 May 05
5
Attach a PDF File to an Email
...om the get_pdf(), but that also is not working. Is there something I am missing? Is there more documentation on attachments for action mailer? So far my only reference has been the wiki and http://api.rubyonrails.com/classes/ActionMailer/Base.html Thx, -- Ben Reubenstein 303-947-0446 http://www.benr75.com
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 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 May 04
1
Wiki Best Practice
...o I think that using a migration example in the wiki is a better practice than outlining the schema and assuming new Rails users will know to use a migration approach to add the tables. I was hoping to get some thoughts from the community on this. Thx, -- Ben Reubenstein 303-947-0446 http://www.benr75.com
2006 May 23
2
TextMate and Tabs
...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 feature. Thx, -- Ben Reubenstein 303-947-0446 http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/25375441/attachment.html
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
2007 Mar 12
7
Capistrano Hanging on Deployment
...dated my gems to see if this was a version issue, but am experiencing the same problem. I also tried running this task :after_restart, the web app is successfully restarted, but it still hangs. Thanks in advance for any ideas on how to fix this. ~ Ben -- Ben Reubenstein 303-947-0446 http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070312/3f321843/attachment.html
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
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
2006 Nov 04
1
ActionMailer Sending Two text/plain Parts
...view it online here: http://www.someurl.com/somefile --mimepart_44f5dbaadb3d0_b20127aae466a6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline <html> <head> </head>.... -- Ben Reubenstein 303-947-0446 http://www.benr75.com
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 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my SQL: CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `user_name` varchar(80) default NULL, `login` varchar(120) NOT NULL default '''', `last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'', `last_attack` timestamp NOT NULL default ''0000-00-00
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 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 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 Aug 09
0
Gentoo and mysql-5.0.24 Rails Problem Solved
Hello ~ Today running emerge -u world on my Gentoo box upgraded MySQL to 5.0.24, and immediately my rails apps stopped working. I have posted a solution on my blog for getting things back up and running: http://benr75.com/pages/ruby_on_rails_gentoo_mysql-5.0.24_commands_out_of_sync I also was fortunate enough to have upgraded to version 1.1.5 right about the same time, so at first I thought this was the issue. Rails 1.1.5 WAS NOT the problem. ~ Ben -- Ben Reubenstein 303-947-0446 http://www.benr75.com -----...
2006 Jun 27
2
Render partials in folders
Right now I have partials in a view folder corresponding with my controller. ie: controller: example, view: example/_partial.rhtml and I call it with render :partial => ''partial'' How do I add the partial to another folder and call it? ie: controller: example, view: example/new_folder/_partial.rhtml render :partial => ''new_folder/partial'' # does NOT work
2006 May 01
2
how to reference a file for download
I have an app that uploads files into the directory RAILS_ROOT/documents/ I tried to access the file for downloading using <a href="#{RAILS_ROOT}/documents/file_name">my file</a>. Rails prepends the controller name to the link so I get <a href=" http://localhost:3000/tasks/show_document/config/.../documents/file_name" What''s the right way to do this?