similar to: xxx.valid? still true after xxx.errors.add(...)?

Displaying 20 results from an estimated 1100 matches similar to: "xxx.valid? still true after xxx.errors.add(...)?"

2006 Jun 20
2
Converting from acts_as_tree to acts_as_nested_set
I''m currently using acts_as_tree to display threaded Comments on my forums-like site. It''s waaay too slow to display a page with 1,000 comments, as it''s issuing a TON of selects. I''m pretty sure I want to convert to the nested set model, using acts_as_nested_set or acts_as_threaded. This should give me the performance I''m looking for. The problem,
2006 May 15
33
acts_as_commentable release
I now have the acts_as_commentable plugin up on RubyForge. This plugin will allow you to add comments to any active_record object in your Rails application. So far the directions are simple, and there are only a few features: To install: ruby script/plugin install svn://rubyforge.org//var/svn/commentable/acts_as_commentable In the readme there is a sample migration you will need to use, with
2008 Oct 29
5
Polymorphic Associations with inheritance
I have two models, Article and Post, that has many Comments. However, both Article and Post are inherited from a BaseContent class like so: class Article < BaseContent has_many :comments, :as => :commentable end class Post < BaseContent has_many :comments, :as => :commentable end and here''s my Comment model: class Comment < ActiveRecord::Base belongs_to
2009 Mar 11
12
Eager loading comments associated with user submissions.
Hey everyone, I am working on an application that allows users to submit articles, and also comment on those articles. Pretty much exactly like Digg. Everything works fine except that when there are a lot of comments there are a lot of database queries to both fetch the comments and the users who posted those comments. I have used eager loading in other parts of my application to reduce the
2006 Mar 31
2
"Owning" a polymorphic
I''m playing around with RoR and I''m having trouble figuring out how to describe a certain relationship. I''m building a social networking site where you have users who can comment on other users, photos, videos, and blogs. I''ve figured out how to have a comment belong to a user or media item through a polymorphic relationships but I dont'' know how to
2013 Feb 28
2
Create polymorphic resources
Hi I have created a polymorphic association for comments since I need commenting functionality on several models. The issue is that when I create the comment in my Commets#create action, I really don''t know what type the parent is of. So, let''s say I have Foo, Bar and Comment. Comment have this: belongs_to :commentable, polymorphic: true And Foo and Bar both have:
2009 Jan 02
5
Very odd NoMethodError/stack overflow....
I''m getting this very weird error and I can''t figure out what the problem is. I''m using acts_as_commentable. Basically, I have a partial with this code in it: <div id="<%= ''#{comment.commentable_type}_comment_# {comment.commentable_id}'' %>" class="comment"> <dl> <dt><%= link_to comment.user.login,
2010 Sep 10
2
Simple_captcha issue
I have a weird issue .I am using simple captcha in forms in my rails applications. If I am using one captcha in a web page I don''t have any problem. But I have a scenario of using three(3) forms in one page in which all the three forms will have the captcha . So that when I refresh the page the captcha data of the three forms are equal. When we come to database
2011 Sep 09
9
Captcha conception
Hi guys, the next problem: I create a controller, (/controllers/rmagick_controller.rb), which have aim to test an captcha Actions: def download # creates an captcha image def show # show the page where image took place def check # must check right captcha or wrong views/rmagick/show.html.erb: > <div id="captcha"> > <p><%= image_tag download_rmagick_path
2008 Nov 11
1
captcha plugin
Hi all, I was working through the simply rails book, i have completed up to chapter 10, now i would like to add a captcha to my login form, where can i get the captcha plugin? can anybody suggest any links for captcha plugin that would work for rails version 2.0.2 ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Dec 20
5
Refreshing an Image
Hi, I''m trying to refresh an img tag that as a captcha image. <img src="captcha.php" align="absmiddle" /> How am I able to do this with prototype? Thanks N --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email
2010 Feb 20
6
Captcha Trouble
Hello Rails, I have a problem. I would like to use captcha in one of my project. When I did try to install, this is what I got $ sudo gem install captcha Building native extensions. This could take a while... ERROR: Error installing captcha: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError)
2006 Aug 09
3
rel=nofollow or akismet
Hi guys, My site ( http://shunya.in ) recently started receiving some spam and I had ignored the issue till it became a problem, and I guess it is becoming a problem now. I looked around on suggested ways to address the problem and found two systems - CAPTCH and Akismet. I consider both of them in this email along with the reasons why I am debating using neither of them. Then I ask for your
2012 Feb 12
1
Rails devise with recaptcha
I''m trying to use the recaptcha gem with devise 2.0.0 in rails 3.2.1. Every time I try, I am able to display the captcha and input the 2 words it asks about. But in my controller (using code I found on github for the recaptcha gem, and after I replaced render_with_context with just plain render) verify_recaptcha always returns false and when I look at flash[:recaptcha_error] it says
2006 Jul 01
3
Captchas in Rails
Hello Everyone, I was wondering what people on this list were using to generate captchas within forms on sites they are developing? I know there is a ruby gem named captcha, but I have seen some others floating around as well. Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Sep 03
2
The quadprog package
Hi everybody, I'm using Windows XP Prof, R 2.5.1 and a Pentium 4 Processor. Now, I want to solve a quadratic optimization program (Portfolio Selection) with the quadprog package I want to minimize (\omega'%*%\Sigma%*%\omega) Subject to (1) \iota' %*% \omega = 1 (full investment) (2) R'%*%\omega = \mu (predefined expectation value) (3) \omega \ge 0 (no short sales). Where
2015 Aug 27
2
Anyone doing speech to text?
I had been using google tts, but it started requiring a captcha for my browser, and via linux I can't access http://translate.google.com/translate_tts?q=test (redirects to captcha) as so, its not reliable On 27 August 2015 at 17:16, Carlos Chavez <cursor at telecomabmex.com> wrote: > On 8/26/15 1:15 PM, Tech Support wrote: > > All; > > I have a customer who is
2011 Jan 18
2
how to get captcha image with mechanize ?
Hey, how to get captcha image with mechanize ? the image is not a static picture, it''s a stream, a text-model. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110118/bf9a58ff/attachment.html>
2006 Jul 16
1
Captcha Module
Does anyone have a link to an example of the module Captcha<http://captcha.rubyforge.org/>being used? I really apprecite it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060716/2d09e74c/attachment.html
2009 Dec 07
3
captcha
Hi all, I want to implement a captcha on my register page to help weed out any ''non-human'' visitors. I was told to check out http://expressica.com/simple_captcha/ but the site isnt responding. Does anyone have any other reccomendations that are tried and tested & successful? Many Thanks -- You received this message because you are subscribed to the Google Groups