similar to: Routing Error using Paperclip

Displaying 20 results from an estimated 100 matches similar to: "Routing Error using Paperclip"

2011 May 28
4
Rais 3, nested attributes problem with paperclip
I have two models, one model girl and one girl_photos (a file upload asset). The only code I have in models which describes the association is: For the girl => belongs_to :girl and has_attached_file :photo For the model girl_photos => has_many :girl_photos and accepts_nested_attributes_for :girl_photos I''ve tried to save as a nested attribute the photo, it saves the association
2010 Nov 28
2
converting xml to a OpenStruct
Hi just wondering if there is a easy way to turn an xml entity into a object like of type OpenStruct where i can access everything like a property? It''s kind of like parsing xml, I already know about nokogiri, but I want to work is a OpenStruct and not a DOM object, does that make sense? =P -- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux:
2012 Mar 04
5
moving form validation to client-side
Hi I know with javascript we can validate the input of a form on the client, is there an easy way to specify this in rails? I am thinking the javascript code getting generated using some sort of DSL? -- Kind Regards, Rajinder Yadav SafetyNet Test Driven Development http://safetynet.devmentor.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 May 20
4
Unable to figure out why a photo attribute of the paperclip plugin is not being passed in as a param
Hello all, I am trying to implement a feature in my app where a user posts a message along with an image. This is something similar to what is there in `www.diasp.org` . I dealing with a pretty much outdated configuration of Rails 2.0.2 and Ruby 1.8.7 , both running on Ubuntu 10.04 OS for project specific purposes. Initially, I found a problem in finding an appropriate plugin for paperclip
2009 Oct 01
3
sqlite limit
Hi All, I am working on a POC that I''d like to show a group of 10 to 15 folks. I was wondering if sqlite would do for db with about 20 people hitting on the application. Does sqlite locking the entire db while writing manifest itself in such scenario? Regards, Kashyap
2011 Oct 26
4
Help wanted: pg vs. postgres-pr gems
Hi all, I installed Rails 3.0 + PostgreSQL 8.4. Installed the gem postgre-pr I added " gem ''postgres-pr'' " to my Gemfile I defined my database.yml with: # PostgreSQL 8.4 development: adapter: postgresql encoding: unicode database: testdb pool: 5 username: test password: ****** I run rails server which starts, but application environment returns this error:
2010 Oct 20
2
form_tag not working correctly?
So I''m trying to make <form action=''/path'' method=''get'' class=''ajax_box''> using: <% form_tag :action => "search_for", {:method => :get, :class => ''ajax_box''} do %> but I get: <form action=''/path?method=get&class=''ajax_box''
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of searching ive managed to get a little bit of Authlogic working. I''m able to register a user, login & logout. Now, I would like to add more features, get more of authlogic working. I''m using Railscast EP 160 as my reference. Portions of the code found on the tutorial throw errors: Eg: <!--
2010 Dec 04
7
Error loading mfc42.dll - failed (error c000007b)
:D Hi, I installed wine on ubuntu 10.10 to run a windows program as reported here (http://appdb.winehq.org/objectManager.php?sClass=version&iId=22133&iTestingId=59338). After few trails I decided to reinstall Wine (now version 1.3.8 ), to configure it as instructed by the guide, and than to install again the windows application, Birthday Reminder. At present the application doesn't
2010 Nov 28
2
Dynamic find_by method returning nil in a class method
I have a user Model with a class method that I am using to do some authentication basically something like this class User < ActiveRecord::Base attr_accessor :password attr_accessible :first_name, :last_name, :email, :birth_date, :sex, :password, :password_confirmation email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i validates :first_name,
2011 Feb 05
2
Re: Error loading mfc42.dll - failed (error c000007b)
:) Hi experts, hi dimesio Few days ago Wine/Birthday Reminders stopped to run. I suppose that it is a consequence of an automatic updating of Ubuntu and I ask an advice on the best way to solve the issue. Consider that: if I run the application clicking on it, as usual, I see the system working and stopping after tens of seconds, If I run the application by console, this is the code that I get
2006 Jan 22
23
calculate users age
i know it''s probably really simple, how do i work out someone''s age if i have their d.o.b. stored as a date in my db. cheers -- Posted via http://www.ruby-forum.com/.
2012 Feb 14
6
SMTP problem.
Hey all, well I am trying to send emails to newly created users but I have a problem. In the rails log it states that the email has been sent but the email is never actually received so obviously there is a problem. I have noticed one in particular and I don''t understand how to fix it. Once I create the user I get the following error message: Net::SMTPAuthenticationError (535-5.7.1
2007 Sep 21
1
calculate age of a person and compare it
how can i calculate the age of a person using database " birth date" my teble is user and column is bday .... now i want to calculate the age will some one please tell me how can i calculate the age.. actually i want to compare my two database fields birthdate and joining date ......that is why i need this.... will someone please tell me how can i do that
2013 Aug 21
3
syntax error, unexpected tRPAREN raised in server log
In my server log, I am seeing this error message that is raised in activesupport. 2013-08-12T23:06:08.932580+00:00 app[web.2]: SyntaxError (/app/vendor/bundle/jruby/1.9/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:374: syntax error, unexpected tRPAREN 2013-08-12T23:06:08.932580+00:00 app[web.2]: 2013-08-12T23:06:08.932580+00:00 app[web.2]: def () value = nil
2014 Nov 12
2
Query: SELECT "INBOX" permission denied
Yesterday I was forced to migrate servers due to a hardware failure. I have been able to bring up my mail server, and set up Squirrelmail and Dovecot. I am able to access (via Squirrelmail) all users' mail except one - which happens to be my wife's, so it would be really helpful if I could get that working too. I am able to log in, but see the following message in the main pane:
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like rails server Could not find pg-0.12.2 in any of the sources Run `bundle install` to install missing gems. I dont know what to do Thanks for all the help -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2006 Feb 20
0
vpimd, a personal information server
This isn''t even close to ready for release, but in case anybody is interested, has feedback, finds it useful as is, or even wants to collaborate... I''ve been working on a "personal information server", something of a protocol multiplexer. Right now it serves calendar feeds for: - a local calendar folder (iCal 1.x''s Library/Calendars) - rss for local todos
2006 Jul 15
3
How bad is it to have 7 joins in my find_by_sql?
My question is whether there''s a more idiomatic rails way of structuring this query or of redoing the underlying models. First, the ugly find_by_sql code, which is the method to generate an atom feed: def atom items_per_feed = 15 sql_query = "SELECT activities.*, users.real_name AS real_name, accounts.last_scraped_at AS last_scraped_at,
2008 Jun 11
19
Which Wine Download?
Hi, Which of the various Wine downloads on the download page should I get for PCLinuxOS? Thanks. Stephen Carter