# Rails application failed to start properly

**URL:** <https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/142936>\
**Category:** Rails\
**Created:** [July 13, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/142936 "2008-07-13T19:30:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [July 13, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/142936/1 "2008-07-13T19:30:42Z")

</div>

I think I’m too close to this problem - and I’m guessing that the answer  
is actually obvious, but I don’t see it.

I have an application that’s getting the error message “Rails  
application failed to start properly”. Everything else (all written with  
rails) on the site is running, it’s just one function that is not  
working. I’ve tracked it down to the following statement in a view:

\<%= link\_to(‘Delete’, {:action =\> ‘deleteUser’, :id =\> u},  
:confirm =\> “Delete #{u.firstName} #{u.lastName}?”,  
:method =\> :post ) %\>

If this statement is in the view, the function fails. If it is not in  
the view, the function works. I have further tracked it to the part of  
the statement that starts with :confirm. If I end the statement at that  
point, the function works.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [July 14, 2008, 8:09am UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/142936/2 "2008-07-14T08:09:00Z")

</div>

I have encountered the same problem.

You may try running dispatch.fcgi directly in the public folder of your  
rails application. And you may get something helpful.

#cd public/  
#./dispatch.fcgi

In my case, I got the error log below  
“ActionView::TemplateError (wrong argument type String (expected Proc))  
on line #63 of unit/\_search\_form.rhtml:”  
(I am using a submit\_to\_remote in #63 of unit/\_search\_form.rhtml)

After googling about it, I think this problem was introduced recently  
and  
hopefully it has been solved.

You may refer to:

[http://www.bluehostforum.com/showthread.php?t=13848](http://www.bluehostforum.com/showthread.php?t=13848)

I wish this helps.

Michael S. wrote:

> I think I’m too close to this problem - and I’m guessing that the answer  
> is actually obvious, but I don’t see it.
> 
> I have an application that’s getting the error message “Rails  
> application failed to start properly”. Everything else (all written with  
> rails) on the site is running, it’s just one function that is not  
> working. I’ve tracked it down to the following statement in a view:
> 
> \<%= link\_to(‘Delete’, {:action =\> ‘deleteUser’, :id =\> u},  
> :confirm =\> “Delete #{u.firstName} #{u.lastName}?”,  
> :method =\> :post ) %\>
> 
> If this statement is in the view, the function fails. If it is not in  
> the view, the function works. I have further tracked it to the part of  
> the statement that starts with :confirm. If I end the statement at that  
> point, the function works.
> 
> Any suggestions?

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [July 14, 2008, 8:42am UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/142936/3 "2008-07-14T08:42:13Z")

</div>

> \<%= link\_to(‘Delete’, {:action =\> ‘deleteUser’, :id =\> u},  
> :confirm =\> “Delete #{u.firstName} #{u.lastName}?”,  
> :method =\> :post ) %\>

\<%= link\_to ‘Delete’, {:action =\> ‘deleteUser’, :id =\> u}, :confirm =\>  
“Delete #{u.firstName} #{u.lastName}?”, :method =\> :post %\>

have you tried that?? if not work too, may be your problem is in your  
“u” variable.

Reinhart  
[teapoci.blogspot.com](http://teapoci.blogspot.com)  
removed\_email\_address@domain.invalid
