Displaying 20 results from an estimated 40000 matches similar to: "Application Error"
2007 Dec 23
7
Help with error "undefined method `downcase' for nil:NilClass" after migration
Hi all,
I have a rails 1.5.2 application. I''ve frozen the application via the
"rake rails:freeze:gems" command. This application worked well on a server
I previously had it installed on. My server was getting really slow, and I
requested that I be moved to a new server. When I perform a "gem list
rails" command on my new host, I receive only version 1.2.6. Since
2006 Oct 21
6
test_create gets 200 instead of :success
Help!
I have a new/create process that works fine in the actual app. But when
I test I always get a failure in the test_create section. Here''s some
controller code:
def new
end
def create
begin
@borrower = Borrower.new(params[:borrower])
if @borrower.save
flash[:notice] = ''Borrower '' + @borrower.FirstName + '' '' +
2006 Oct 25
4
Flash messages stay up too long
I run a check on the address line parameters to make sure the user isn''t
passing my list method a :year to search for that does not exist in the
database, which would create null pointer exceptions. I then splash a
flash message telling the user that the year doesn''t exist in the
database. Then, if the user enters another year into the command line
as an argument for the
2009 Mar 10
4
RoR on Bluehost
Hi all. I''m having problems getting a RoR app to run on bluehost. Here''s
the rundown. First I''m frustrated because I have two accounts, I''ve
gotten an app to run on one account, and I can''t get one running on the
other. And I''m pretty sure I did everything the same.
On the one that isn''t working, I keep getting the error page. When I
2006 May 09
3
validations erasing the form
Hi there
I have a for with a couple of text_fields. I''m doing some validation
via the model and when the validation "works" I get there was an error
on blah blah
the problem is the form is erased and I have to fill up the form again!
I saw that scaffold keeps the form filled when the validation "works"
but I dont know exactly what''s making it happen!
I would
2007 Mar 25
5
Insert text into text area field with RJS
Hi,
I''d like to insert/append some default text into a text area after
clicking on an image button ''test.png'' in edit.rhtml:
<%= link_to image_tag("test.png"), url => { :action => :new_text } %>
Action:
# article_body is the textarea''s id.
def new_text
render :update do |page|
page.insert_html :bottom, :article_body,
2009 Mar 13
7
rails, passenger, and images
Just switched over to passenger for development and production for my
rails app. Liking it so far.
My problem is my image_links, stylesheet_tag_links, and
javascript_tag_links are all adding "http://localhost:3000 to the
generated links. I got around the stylesheet and js links by not using
the helpers.
I can access my all of my assets directly via http://dating.local/stylesheets/all.css,
2007 Feb 09
3
Re: URL issues
hello...
On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi,
> I watched the rails screencast on creating a blog in 15 minutes.
> I followed along got it working on my home PC and I then uploaded it
> to my web host. So I have,
>
> /home/<username>/blog
>
> I had to change some config in the blog app (i.e. production
2010 Sep 08
2
subbing a string vector for another string vector
I have a data frame with two columns:
image pattern
1 http://$IMAGE_ID$ www.url.com/image.jpg
2 $IMAGE_ID$ http://www.blah.com/image.gif
...
I want to replace "$IMAGE_ID$" with the corresponding entry in the pattern
column such that the result would appear as follows:
url
http://www.url.com/image.jpg
2006 Dec 19
7
Improve the rendering speed of rhtml
I found through the log file that the render of the rhtml template would
take too much time if there exists ruby code in the rhtml files.In many
cases,these ruby code are tied with these rhtml files closely and can
not be decoupled from that,therefore,i have a question that,is there
exist some way to improve the rendering speed of rhtml when some ruby
codes are included?
--
Posted via
2008 Oct 06
8
.htaccess rewrite
can someone help me with an .htaccess rewrite?
i''m trying to convert all requests to "/?spot=8888" to be "/locations/
888".
thanks.
--~--~---------~--~----~------------~-------~--~----~
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
2007 May 29
4
cache everything but...
I saw this older post when searching for information:
On Feb 16, 5:10 pm, Ingo Weiss <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> withfragmentcachingonecancacheparts of a page. However, more often
> than not what I would need is the exact opposite approach. I would like
> to be able to use action cashing and have a mechanism for telling Rails
> to
2006 Aug 07
9
problems with ActionMailer
Hi all,
I''m trying to create a worker to send a mail to all the users in my
db. Right now I''m doing the tests, this is the code in my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
2010 Oct 19
4
Rails3 on bluehost??
I''m trying to deploy a rails 3 app to bluehost... Does anyone have
related experience??
I tried a few hours, still struggling....
Many thanks...
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this
2007 Dec 24
5
output link_remote_to in helper
Hi all,
I have a complex link_remote_to link I need to generate often. I want
to DRY up my view and create a helper that generates this
link_remote_to for me.
Is there a way my helper can output the link_remote_to javascript?
Thanks
STijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Mar 06
2
Computer Inventory: Problems Retaining Values in a Forms
This is my first rails app and I am creating a Computer Inventory system as
practice. The problem I am having seems trivial, but I can not figure out
what exactly is going wrong, so this is where help from those of you who are
more experienced is needed.
I am having problems retaining the values in some of my forms. Everything
works fine when I am creating or editing a Computer in the inventory
2006 Jun 08
5
update only the join table in a HABTM - how?
I have a photographers app that requires giving access to galleries for
users. in one part, I want to be able to define gallery access for a
user seperate from updating any of the user info. I have this function:
def edit_access
@user = User.find(params[:id])
@user.galleries = Gallery.find(params[:gallery_ids]) if
params[:gallery_ids]
if @user.update_attributes(params[:user])
2007 Oct 24
4
before_filter at the method level
I have used before_filter in the passed at the class level but can it be
used in the method level.
For example, I want to refuse a non-admin type from being able to delete
anything in the entire application. Is there an easy way to do this?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2006 Apr 29
11
Multiple actions from one form - possible?
Hello *
Obviously the rhtml below does not work, but it should be apparent what
I try to achieve - I would like to give the user the choice to submit a
form either to action1 or action2 but I cannot figure out how?! It would
be great if someone could give some assistance.
Thanks a lot, Alex
<%= start_form_tag :action1 => ''save'', :action2 =>
2007 May 11
4
"validates_presence_of" not working
Hi, guys,
I''m learning to use Rails, and, while reading the "Rails: Up And
Running" book, I tried to make an insertion validation, using the
following code:
class Photo < ActiveRecord::Base
validates_presence_of :filename
end
It simply didn''t work, the validation does nothing and an insertion
with an empty field returns TRUE.
What''s wrong?