similar to: Offsite Job

Displaying 20 results from an estimated 1000 matches similar to: "Offsite Job"

2006 May 03
8
Subversion and tmp directory in Rails 1.1 project
Hello everyone! I''m thinking of the right way to store tmp/ directory of Rails 1.1 project in Subversion. It has cache, session and sockets subdirectories. To me, it looks good to have svn delete tmp/* svn propset svn:ignore "*" tmp So it will ignore all directories and files in tmp/. Even if you create sessions/ and put some files in it, tmp/ content is still ignored. But
2006 May 08
6
how to make field in model immutable after create
Hello everyone! I want to have login field in User model which is set only once (on create), and then it should fail validation if the value is changed. How can I do this? I dig around for validation and tried def after_validation_on_update unless User.find_by_login(:login) errors.add(:login, "is immutable. You can''t change it") end end in model, but somewhat it
2006 Mar 20
5
Google AdSense question to Rails community
Hello everyone! I''m not sure if it''s right place to ask, but what is your experience with google adsense? I plan to implement free web service for community and would like to cover hosting costs. Is adsense worth the hassle? olegf
2006 Apr 14
2
Puzzled with filters
Hello everyone! I''m trying to create an after filter for all my actions in all controllers. I put it in application controller (application.rb). class ApplicationController < ActionController::Base after_filter :tidyit def tidyit xxxx # syntax error - intentionally end end I have a Example (example_controller.rb) controller with index action. class
2006 Apr 28
1
how do I test links in templates?
Hello everyone! Sorry, if it''s stupid question, but I can''t figure out how to do this. I have a set of statements, for example, ''login page should have a link to register new user'' and ''login page should have a link to password recovery''. How do I transform it into tests? Where it should go? It does not look like functional tests or
2006 May 18
5
acts_as_classifiable plugin
Hello, I am pleased to announce the availability of the plugin acts_as_classifier which allows using the ''classifier'' gem in a Rails application. This plugin can be downloaded from http://opensvn.csie.org/sksinghi/acts_as_classifiable/ This plugin is useful in scenarios where you want to distinguish between spam or non-spam comments, Or maybe you want to track the
2006 Mar 21
13
Double and single quote usage in AWDWR
Hello everyone! I''ve noticed, that the book uses double quotes almost everywhere. It is like <%= javascript_include_tag "prototype" %> I''ve checked the "programming ruby, 2ed" book and found that double quotes are most suited when escape sequences and substitutions are required. Isn''t it more semantically correct to write this code like
2005 Dec 25
2
Caching of models?
Hello, people! I have a problem. I googled, asked for help on IRC. I can''t find an answer. Suppose I have model Cart (from "Agile Web Development with Rails"). I added call to logger.warn("Some warning") to one of it''s methods. It fails with NameError, because ''logger'' is unknown to model. undefined local variable or method
2006 Apr 02
2
Problem with edge rails
Hello, When I am trying to run rake migration tasks, I get the error as shown below. I am using ruby 1.8.4 and edge rails. What am I missing or doing wrong? C:\rails\temp1>rake db:migrate (in C:/rails/temp1) rake aborted! no such file to load -- rails_version Thanks for your help. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at:
2006 May 18
7
Ruby Before Rails
As I, like many people, are coming to ruby in the rails era, I''m curious about how Ruby Web Dev was done prior to rails. Any veterans want to share their insights? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/20cde24d/attachment.html
2006 May 03
7
anybody using GoDaddy for hosting ?
Is anybody hosting with GoDaddy.com? I''m about to set up a hosted account for my RoR app and see that they''re now offering RoR hosting. I''d really appreciate hearing from anybody who''s tried them for RoR. Any congrats / complaints / etc. you had / are having would be really appreciated! Thanks, Bill -------------- next part -------------- An HTML attachment
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this is possible, but i cant seem to find how to do this, nor any example code for this. I would appreciate if someone could point me to some info or just give me an explanation. thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target pointing to the iframe. All is working, but I would like to display an indicator of the upload. All I want to do is show a hidden animated gif via Element.show. With form_remote_tag, i could use the :loading and :complete callbacks to do an Element.show and Element.hide. How do I achieve a similar effect with form_tag?
2006 Jun 19
2
Autocompleter enhancement feature request
Hello, I have created a ticket for an enhancement of the autocompleter to show the options immediately when the field gets focus. Right now at least one character must be typed for autocomplete to kick in. http://dev.rubyonrails.org/ticket/5435 I have also made some code changes directly in the script Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
2006 May 04
2
Is there a way to version the contents of a table as a set?
I am looking at using acts_as_versioned to manage revisions of data in several tables in my application. However, the default behavior of acts_as_versioned appears to apply to individual rows within a table. The tables I want to version are complicated lookup tables and what I really want is to version the entire contents of each table as a single set. Adding a row, deleting a row, or updating
2006 Jun 15
2
AJAX form inside table - error
Hello, I need to put an AJAX, form such that it is inside a table, and spans across few rows. But, what I am noticing is that, while submitting the form, the data in the fields is not submitted. If I move the form outside the table or inside a cell, things work OK, but not when the form is inside the table and spans few rows. This problem is only with AJAX forms, regular forms work perfect. I
2006 Aug 12
3
Capistrano deployment pathname error
When I try to do a deployment with Capistrano I get the error "No such file to load -- pathname" when Cap tries to execute reaper. Any ideas what''s causing this or how I can troubleshoot it? (Output follows.) Thanks. Evan -----BEGIN OUTPUT----- [evans-powerbook:~/Desktop/asktheguys] evan% clear ; rake remote:deploy (in /Users/evan/Desktop/asktheguys) loading
2006 Jul 09
6
ajax effects
Hi, i was wondering if there was some kind of general line of code i could add to my application, anywhere i suppose, that would generate some kind of effect to notify the user that an effect is happening...it could be a box on the top of the screen or something, that would be like the small bar at the end of the browser that shows the user the status of a loading page ... i was hoping
2006 Jun 27
4
Action Mailer - weird rendering issues
Hello, While sending email notifications from ThoughtNotifier, I am getting weird exceptions, which sometimes occur on the production machine, but I haven''t been able to reproduce on my development machine. There should be no error while rendering `thought_notifier/share_notification.rhtml'' template, but if for some reason it is rendering
2006 Jul 20
1
Model CRUD via web services
Hello, I was wondering if there was any automated (may be scaffolding) way of exposing Model CRUD via web services. I found this ticket for django, but nothing for Rails. http://code.djangoproject.com/ticket/115 Thanks in advance for your opinions and suggestions. Regards. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: