Re: [Rails] Delayed methods

2013-03-23 Thread Jodi Showers
task from cron) is performance and memory usage - this method will save you a bunch of both. Jodi On Sat, Mar 23, 2013 at 10:10 AM, Barry burm...@mail.ru wrote: Hi, I faced such issue - my app should run some delayed method. For example, I have Test model, which User can create. But to other

Re: [Rails] Delayed methods

2013-03-23 Thread Jodi Showers
approach is not harder to implement and will scale - choosing an approach of equal complexity that won't scale doesn't hold water On Sat, Mar 23, 2013 at 11:27 AM, Colin Law clan...@googlemail.com wrote: On 23 March 2013 15:15, Jodi Showers j...@homestars.com wrote: for regularly scheduled jobs, I

Re: [Rails] Delayed methods

2013-03-23 Thread Jodi Showers
...@gmail.com wrote: Please bottom post (appending). It makes responses easier to find. On Sat, Mar 23, 2013 at 10:32 AM, Jodi Showers j...@homestars.com wrote: that is a good thinking, just like normalization - then comes a time to denormalize we have millions of visitors per month

Re: [Rails] Delayed methods

2013-03-23 Thread Jodi Showers
already provides job/worker failover) On Sat, Mar 23, 2013 at 5:37 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Sat, Mar 23, 2013 at 1:20 PM, Jodi Showers j...@homestars.com wrote: I'm just about to scale to a second app server - so good timing in which ways did you find

Re: [Rails] Re: render and render_to_string

2013-03-18 Thread Jodi Showers
what are the differences in the responses reported in the console (firebug, etc) ? On Mon, Mar 18, 2013 at 7:22 PM, fuzzy hlog...@gmail.com wrote: I am currently reading 'Jose_Valim-Crafting_Rails_Application' wherein he discussed the Rails stack and shows you how this all works. I am not

Re: [Rails] How to create an object in one model at the same time as another

2013-03-10 Thread Jodi Showers
use a model callback - http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html :after_create :create_profile private def create_profile ... end On Sun, Mar 10, 2013 at 10:14 AM, Dave Castellano li...@ruby-forum.comwrote: Hi, I'm using Devise and Cancan in my project. I'm a

Re: [Rails] Persistance of good data on validation fail

2013-03-02 Thread Jodi Showers
render the view - @question will be given to the view for rendering the previous values render :new if @question.errors.any? On Sat, Mar 2, 2013 at 12:23 PM, Dave Castellano li...@ruby-forum.comwrote: Thank you everyone for the previous validation help. I have one last question... Can

Re: [Rails] Persistance of good data on validation fail

2013-03-02 Thread Jodi Showers
further this url will help with any other questions http://guides.rubyonrails.org/layouts_and_rendering.html On Sat, Mar 2, 2013 at 12:40 PM, Jodi Showers j...@homestars.com wrote: render the view - @question will be given to the view for rendering the previous values render :new

Re: [Rails] Re: Persistance of good data on validation fail

2013-03-02 Thread Jodi Showers
Dave, consider this refactor create an instance method in your question model def standard? question_type == standard end then your view/controller syntax get a bit more readable @question.standard? On Sat, Mar 2, 2013 at 12:56 PM, Dave Castellano li...@ruby-forum.comwrote: When I render

Re: [Rails] Re: validation help please

2013-03-01 Thread Jodi Showers
Dave, you have to add an instance method standard_question? to your model def standard_question? end from the url below you can see that you can pass a :message param to customize the error message http://guides.rubyonrails.org/active_record_validations_callbacks.html#message On Fri, Mar 1,

Re: [Rails] Rails CMS Suggestions

2013-02-25 Thread Jodi Showers
Curtis, we have used the liquid templating language for our internal cms http://liquidmarkup.org/ the downside is a lack of front end editor - to date we have used a text area. We implemented the solution years ago, so there may be some better options today - also thought this looked pretty good

Re: [Rails] Re: how to setup wizard mult-part form

2013-02-09 Thread Jodi Showers
I've done this before in general, create an attribute (call it :stage) - base your view names and validation rules upon :stage :stage can be virtual, or if you store it you could allow someone to return to entry later for a more advanced implementation you could use a state machine (instead of

Re: [Rails] Re: Rails 2.3.5 to Rails 3.2 error

2012-07-31 Thread Jodi Showers
I suggest opening your console - type Person - the console should return to_s of the class - if not, the person model isn't in your path better yet, take this opportunity to write some tests - start with the Person model On 2012-07-31, at 2:38 PM, masta Blasta wrote: deal bitte wrote in post

Re: Re: [Rails] Upgrading to Rails 3

2012-04-07 Thread Jodi Showers
a suitable replacement Jodi On 2012-04-07, at 9:08 AM, Jeffrey L. Taylor wrote: Quoting Gurdipe Dosanjh rhomobilea...@gmail.com: Hi All, Re: Upgrading to Rails 3 I am working on a rails application I need to upgrade to the latest version of Ruby and Ruby on Rails. It is currently using

[Rails] asset precompilation is crashing ruby 1.9.3-p125

2012-04-02 Thread Jodi
to the ruby team Love to hear if anyone else has experienced this. I've spoken with another who's dev team is seeing the same back trace. I first saw it i 1.9.3-p0. I've seen intermittent issues with 1.9.2 and openssl Jodi -- You received this message because you are subscribed to the Google

[Rails] Re: asset precompilation is crashing ruby 1.9.3-p125

2012-04-02 Thread Jodi
I've filed the following bug report with ruby-core http://bugs.ruby-lang.org/issues/6246 On Monday, 2 April 2012 11:04:51 UTC-4, Jodi wrote: Hey folks, I'm tracking a periodic ruby crash - about 1 in 10 - when compiling assets RAILS_ENV=new_staging bundle exec rake assets:precompile

Re: [Rails] Creating a separate admin panel area - how to?

2012-03-01 Thread Jodi Showers
I suggest taking a loot at active_admin, etc Jodi Showers 705.749.4955 On 2012-03-01, at 7:08 PM, Agis A. corestudios...@gmail.com wrote: Hello.. In my app, I want to implement a separate admin panel, which the users will be able to enter with their credentials and each one of them

[Rails] Re: libmemcached_store and rails 3

2011-12-21 Thread Jodi
I was able to solve this by upgrading libevent and the memcached server (and the memcached gem to the latest) server: memcached-1.4.10 libevent: libevent-2.0.16-stable memcached gem: 1.3.5 headcold put me at a loss - perhaps this breadcrumb can help others cheers, Jodi On Dec 20, 10:22 pm

[Rails] libmemcached_store and rails 3

2011-12-20 Thread Jodi
welcomed! Jodi -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options

[Rails] Re: Managing Feature Backlogs

2009-06-12 Thread Jodi Showers
- http://www.redmine.org/ and as a rails project, you can tune to your needs Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk

[Rails] Re: DRY (don't repeat yourself) way / Hook to Activerecord object (to store IP address on every object created)

2009-06-10 Thread Jodi Showers
Makund - it is quite likely that your solution will break when multithreading arrives (as will will loads of other stuff) On 9-Jun-09, at 6:41 AM, Mukund wrote: Have a look at active_record::observers and wrap the save method with an update to the ip address. Declare a class level

[Rails] Re: Annotate Models

2009-05-19 Thread Jodi Showers
Milan - On 19-May-09, at 12:35 PM, Julian Leviston wrote: On 20/05/2009, at 2:08 AM, Milan Dobrota rails-mailing-l...@andreas-s.net wrote: Is it possible to annotate models under app/models/some_directory if the models do not have SomeDirectory namespace? -- Posted via

[Rails] Re: Code runs in development but not in test

2009-05-08 Thread Jodi Showers
Lee - On 8-May-09, at 9:53 AM, Colin Law wrote: Is it failing while running one of your tests (possibly an error in the test) or while preparing for the test (possibly a problem with your fixtures)? Colin to build on Colin's comment about your fixtures, if you're relying on the

[Rails] Re: has_many / belongs_to issues

2009-05-07 Thread Jodi Showers
Bogdan - On 7-May-09, at 4:47 PM, Bogdan Pop wrote: Hi, I just faced this problem today. I have a site which will have a USER model and a SUBMISSION model. Apart from the cosmetics parts, each user will be able to have multiple submissions, while each submission could have or not a

[Rails] Re: rake aborted! undefined method `empty?' for nil:NilClass

2009-04-04 Thread Jodi Showers
On 4-Apr-09, at 5:21 PM, comopasta Gr wrote: Hi, I'm getting the next errors, would anyone have any suggestions? Thanks. /home/domain/rails/hip/config/environment.rb:15 what's on line 15 of your config/environment.rb ? Jodi

[Rails] Re: rake aborted! undefined method `empty?' for nil:NilClass

2009-04-04 Thread Jodi Showers
? the env is loaded once. Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send

[Rails] Re: rake aborted! undefined method `empty?' for nil:NilClass

2009-04-04 Thread Jodi Showers
On 4-Apr-09, at 5:51 PM, comopasta Gr wrote: what's on line 15 of your config/environment.rb ? Hi, yeah I was looking at that as well. This is the line: config.active_record.observers = :user_observer Commenting it out didn't make a difference... forget my last comment. forgot it was

[Rails] Re: Trackback support

2009-04-04 Thread Jodi Showers
://theadmin.org/articles/2007/12/4/mephisto-trackback-library found with this query; http://www.google.ca/search?q=rails+mephisto+trackbac Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: my bug, nefarious scraper or a legitimate browser plugin?

2009-04-01 Thread Jodi Showers
This latest info rules out JS-off or a noscript plugin - On 30-Mar-09, at 1:22 PM, Frederick Cheung wrote: On Mar 30, 4:09 pm, Jodi Showers j...@homestars.com wrote: I've been faced the the following symptoms for some time. I have links coded as :post or :put, so I can make sure that bots

[Rails] my bug, nefarious scraper or a legitimate browser plugin?

2009-03-30 Thread Jodi Showers
this in very case if it's possible that a legimate (pre-loader browser plugin) is causing this to happen. Does anybody else this kind of behaviour? How do you handle it? thanks. Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: couldn't find item with ID = 100

2009-03-30 Thread Jodi Showers
wonder what's amiss? Dermot. Model.find(id) intentionally returns an exception when the row isn't found. you can either trap the exception (rescue), or do a Model.find_by_id(id) which won't fire the exception. Jodi --~--~-~--~~~---~--~~ You received

[Rails] Re: OT: What is the best DNS for wildcard subdomains?

2009-03-09 Thread Jodi Showers
On 8-Mar-09, at 10:33 PM, Chris Olsen wrote: Thanks for the advice Jodi. I signed up and was able to get everything working. Hopefully I never see this problem again. BTW, when I signed up I added your name to the referral slot, so hopefully you get something out of this. Thanks

[Rails] Re: Model Knowledge Of Controller Calling It

2009-03-02 Thread Jodi Showers
Howdy - On 2-Mar-09, at 2:21 PM, Starr Horne wrote: Does anyone know a good way for a Model to be aware of which Controller is calling it? For example, I have an after_find method that should always be called unless the Controller is the 'FooController'. This doesn't sound like such a

[Rails] Re: local variables in partials lead to NameError

2009-02-25 Thread Jodi Showers
Jamie On 25-Feb-09, at 3:25 PM, Jamie Forrest wrote: I am trying to call the variable 'foo' in a partial called _attachment.html.erb, which is nested in another partial called _form.html.erb. In _form.html.erb, I have: %= render( :partial = 'listings/attachment',

[Rails] Re: Mongrel Socket read error on .pages (iWork) file

2009-02-08 Thread Jodi Showers
is confused. Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk

[Rails] Re: Create my own template language

2009-02-02 Thread Jodi Showers
Smarty), but i would like to add the other as an option, anyone has any idea about where i should start looking to get this to work? Maybe Liquid would work for you. http://wiki.github.com/tobi/liquid/getting-liquid-to-work-in-rails Jodi --~--~-~--~~~---~--~~ You

[Rails] Re: Hotlink Prevention in Ruby?

2009-01-11 Thread Jodi Showers
likely wire up some checking there. Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group

[Rails] Re: Additional config file like database.yml

2009-01-09 Thread Jodi Showers
Peter On 9-Jan-09, at 11:44 AM, Harold wrote: You can do solr_conf = open('path/to/solr.yml', 'r') { |f| YAML.load(f) } solr_conf now holds a hash with your parameteres. You can access it simply by doing something like: url = solr_conf[RAILS_ENV][:url] On Jan 9, 11:33 am, scott

[Rails] Re: New cheat sheet: Jump Start Credit Card Processing in Ruby

2009-01-06 Thread Jodi Showers
Thank you Amy - always a (brutal) and mysterious process. Jodi On 6-Jan-09, at 10:46 AM, Amy Hoy wrote: Hey guys... it's me ;) I've come out of a long cheat sheet-free period! I want to share with you my new, really massive cheat sheet on credit card processing: * the process

[Rails] Re: Calling System on winows batch file

2009-01-06 Thread Jodi Showers
Ryan - On 6-Jan-09, at 3:59 PM, Ryan Mckenzie wrote: Hi guys, Thanks for your input. I tried using the console and it seems that ruby does not like the content that is in the .bat file for some reason (but the command does work). The bat file contains this line of text which

[Rails] Re: Ruby vs. RubyOnRails compatibility matrix ?

2008-12-19 Thread Jodi Showers
avoid 1.8.7 if you're rails 2.2 - I had a number of problems (today) - On 19-Dec-08, at 5:37 PM, Thibaut Barrère wrote: Hi Rob, Well, since I know that Rails 1.1.6 and 1.2.2 application will run fine under Ruby 1.8.6 (and 1.8.5), I'll start you with that. There's plenty of evidence

[Rails] re: relative urls - browser plugin? scraper? other?

2008-12-17 Thread Jodi Showers
A short update on this - never saw this behaviour before - but will see more now Googlebot just hit this url - /companies/1199238-action-assembly/forum All I can imagine is that the relative url must exist - but for the life of me I can't see it. Jodi -- I have a very strange

[Rails] Re: Will_Paginate, with muliple same type collection

2008-12-10 Thread Jodi Showers
into an OR? items = Post.find(:all, :conditions = (#{item_one_conditions}) OR (#{item_2_conditions})) Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: adding sound to Rails app

2008-12-02 Thread Jodi Showers
: This ajaxian article looks good: http://ajaxian.com/archives/sound-with-javascript-but-not-flash hth, Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: how to make an image grow and make everything else dark until you click close

2008-11-18 Thread Jodi Showers
until the user clicks close (or clicks the picture). Is there an easy rails plugin for this? thanks, dino The effect is called a lightbox. we use lightbox2 at HomeStars http://huddletogether.com/projects/lightbox2/ Jodi --~--~-~--~~~---~--~~ You received

[Rails] Re: Validating email

2008-11-14 Thread Jodi Showers
Hey yo - On 13-Nov-08, at 11:14 PM, Craig Demyanovich wrote: In my current project, I'm using the regexp from http://www.regular-expressions.info/email.html with validates_format_of to validate email addresses. Regards, Craig Checked out this baby?

[Rails] Re: Distributing Plugins

2008-11-13 Thread Jodi Showers
the script to recognise these plugins? Why don't you just do... ./script/plugin installhttp://my_repos/trunk/plugin1 ? the plugin install script scrapes this page: http://wiki.rubyonrails.org/rails/pages/Plugins Jodi --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Ruby on Rails based Applications Development Methodology by HiddenBrains.com

2008-10-04 Thread Jodi Showers
On 4-Oct-08, at 3:27 AM, albertsmith007 wrote: What is Ruby on Rails? By using architecture of Model-View-Controller (MVC) Ruby on Rails provides developer friendly technology to develop the web applications. It is an open source framework that provides cost ur brain does seem to be

[Rails] 'new' sql injection attack

2008-10-02 Thread Jodi Showers
I've found references to the following attack in our logs this week: http://www.lexa.ru/security-alerts/msg01435.html At the time of the above posts writing, it was targeted at IIS and mysql - but the general scheme looks to be portable to other configs. Generally it passes a hex string, to

[Rails] Re: How do you validate the availability for a block of time?

2008-10-01 Thread Jodi Showers
Bob - On 1-Oct-08, at 8:09 PM, Bob Sanders wrote: I'm building an appointment time application, where the user selects an appointment time through a datetime_select field. I'm trying to validate that the appointment time the user selects is available. The appointment times are for 30

[Rails] Re: daemons gem vs cron jobs to execture rails code

2008-09-26 Thread Jodi Showers
restarting it. I've gone back to cron to do regular tasks. (wasn't sure if you were talking about Daemons in general or the gem/ plugin. Fred's description is correct with regard to daemons in general, and so the gem might be misnamed as it seems to be a railscron) Jodi

[Rails] Re: Technical recruiters on list

2008-09-18 Thread Jodi Showers
consensus would be nice. Fred +1 Direct employers only Jeff +1 Jodi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com