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
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
...@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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
- 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
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
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
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
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
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
? 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
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
://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
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
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
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
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
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
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',
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
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
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
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
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
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
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
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
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
:
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
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
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?
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
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
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
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
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
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
52 matches
Mail list logo