Displaying 20 results from an estimated 3000 matches similar to: "*** Quick help with paperclip ***"
2010 Feb 10
16
nil object - can anyone help?
Hi there,
I''ve been looking for a while now and can''t seem to find where I''m
going wrong..
I''m following a railscast tutorial to send invites out to people.
there''s n invitation.rb page:
class Invitation < ActiveRecord::Base
#attr_accessible :sender_id, :recipient_email, :token, :sent_at
belongs_to :sender, :class_name =>
2009 Dec 29
15
help needed - undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
Hello,
I am trying to deploy my app at the moment, and each time I do, I get
the following error when i run a trace on it:
rake db:migrate --trace
(in /srv/some area/someplaceelse...)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake
2009 Dec 24
12
no such file to load -- ferret
Hi there,
I''m just trying to deploy my app to my vhost, and i''m getting an error
on the phusion passenger page:
no such file to load -- ferret
now everything worked fine in development.
DO i need to reinstall the plugin and gem again? if so - would these
be in domain.com/public? or should it be installed at domain.com?
ANy advice would be great!
THank you.
--
You received
2010 Jan 03
9
ferret search in production
Hi there,
after recently deploying my app, I have noticed that the search
results are not being displayed...
When I look in my app, I also notice that the apps content (search
criterea) is not being indexed, so I dont have an index folder being
created.
I read on a google post that it may be that the ferret.yml server
isn''t started (or perhaps the content of this file are not right)
I
2010 Feb 15
4
Changing the :path and :url options of has_attached_file in paperclip
Hello,
I am using the paperclip plugin to upload images and it works
absolutely fine.
I intend to save my uploaded images to C:\Application_name\public
folder. Accordingly, with some study over the i-net, I changed
the :path option of has_attached_file to -
:path => "C:/Application_name/
public/:class/:attachment/:id/:style_:basename.:extension"
Now, the files are being saved to
2009 Sep 25
8
Cheapest Rails Hosting where they give you full access to Apache (to load modules etc)???
any pointers / suggestions re cheapest Rails hosting where they give
you full access to Apache (to load modules etc)??? Can be a shared
platform, however not sure if there is a shared platform type hosting
service where they do give you such access?
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
2009 Jun 17
1
File UPLOAD and put it on a DB BLOB
@contact = Contact.new
@contact.file_file_name=params[:contact][:file].original_filename
@contact.file_content_type=params[:contact][:file].content_type.chomp
@contact.file=params[:contact][:file].read
@contact.save
the first two elements work,
@contact.file=params[:contact][:file].read results empty, can you say
me where I am wrong.
Sergio
2010 Nov 09
6
Upgrading to snow leopard
Hi All,
I''m currently mid-project at the moment, and am scepticle in upgrading
to Snow Leopard.
If I do, will it affect my current Ruby on Rails set up on my
machine??
Cheers
--
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
2010 Jun 13
4
internal server error(500) when attempting to sendmail
Hello,
I have an application that, when you create an appointment it sends an
email to the client to say someone has just booked.
Locally, this works fine (i''m just using sendmail)
Locally - all email tests have come through - no problem.
However - when I copy all the files onto the server and attempt to
create a booking, it comes up with the 500 page. The error below if
taken from my
2009 Sep 16
12
Connecting to Oracle (Solaris Sparc 10)
My company''s System-admin installed Ruby and Gems (using Sun Coolstack
package) and I have sudo access to ruby, gem etc. Now I need to get my
app to talk to oracle db (through network).
From what I understand, it requires three steps:
Step 1: Install oracle instant client ( I installed it in my ~/oracle/
instantclient_11_1)
Step2: Install OCI8 libraries (this is where I am stuck). Here is
2009 Sep 16
5
piece of code that runs only once
hi, an strange error is happening here
in User model i have the following method:
def falta_votar
Category.find(:all) - votes.collect {|v| v.category}
end
and in the default.html.erb layout i have:
<%= current_user.falta_votar.size %>
but it only works once, when i try to access another page i get an
error message saying that the falta_votar method is nil, then i have
to restart
2010 Aug 07
12
Paperclip Trouble - Not Writing to the Database
Hello all,
I''m a Rails newbie trying to get a basic implementation of Paperclip up
but it''s giving me problems. I''m developing on Windows XP (I know...)
with WEBrick and MySQL.
In my model I have:
class User < ActiveRecord::Base
has_attached_file :avatar,:styles => { :medium => "300x300>", :thumb
=> "100x100>" }, :url =>
2010 Feb 09
2
undefined method `generate_token'
Hi Everyone...
I''m following a railscast episode on how to implement an invitation
feature.
It''s going really well, but i''ve hit a minor snag that I cant get
over..
undefined method `generate_token'' for #<Invitation:0x2563bf8>
The invite form allows me to check for a user, and whether they
already have registered. If they have, the invitation is not
2010 Sep 27
7
Uploading photos
Hi all,
Learning RoR (and loving it!) to develop a website. A requirement of the website is enabling users to upload photos to be made viewable (dynamically) on the website. Is this something I can develop with RoR?
Thanks,
Jeff
--
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
2010 Sep 29
4
Best image upload plugin?
Hey everyone,
I''ve been dealing with Rails 3, Paperclip and Windows 7 for a few nights
now and don''t feel like I''m actually getting anywhere. I''ve hit config
issue after config issue and it''s a bit of a nightmare. Can anyone
recommend any other gems that will accomplish the same thing?
Thanks, Brandon
--
Posted via http://www.ruby-forum.com/.
--
2010 May 08
2
uninitialized constant - Please Help Me...
Hello everyone,
I''ve decided to take the step into creating a mini-forum for my
website where users can open new posts on exixting topics and allow
people to discuss things etc...
I am following a tutorial in the book: APRESS - Practical Rails Social
Networking Sites and have hit a minor issue.
Part of the Forum requirements is to add a moderator role to allow
only certain individuals
2009 Nov 11
1
getaddrinfo: nodename nor servname provided, or not known
Hi there,
If I want to create email within my application (in production), how
is this best achieved??
Following the railsspace tutorial, it only really suggests to
use :smtp.
I''d read on another site that to generate emails locally, i need to
use :sendmail instead... However - I havent seen any decent examples
of how to get this configured to be able to send emails within my
local
2009 Dec 10
2
How to customize the default scaffold?
I know the scaffold generator is really only useful for beginners
and/or very the preliminary state of a project, but I find that I use
it a lot (especially, since I am still a beginner). There are a
couple of things I find myself tweaking (or wanting to tweak, but
never getting around to tweaking) each time I generate a new scaffold:
1) Change the layout from blah.html.erb to
2008 Jun 19
2
any news about swfupload & sessions?
Hi all,
I''m up to rewrite my swfupload code as a plugin (as far as possible).
My actual solution to the old problem with session handling and flash
was to ignore it, send an upload_request to the server, get back some
secret code and then upload the file to an action where session/
authentication
is disabled.
Works fine so far, but the normal way would be better.
There are many