Hi,
I try to deploy my first app on heroku.
I've created a gem manifest file which include:
i18n_routing --version '0.3.3'
When I push to heroku, all the gems are installed but i18n:
-----> Installing gem i18n_routing 0.3.3 from http://rubygems.org
ERROR: Error installing i18n_routing:
i18n requires RubyGems version >...
I've created a model called Request, which is created when one user makes a request with another user. I'd like each request to only exist for 5 minutes. Is this possible?
...
Hi,
I've installed growl and autospec on mv Mac OSX and had autospec running yesterday. But now it goes to sleep after it runs the tests for the first time.
Does anyone know of this error/feature?
Thanks
Rim
EDIT: It depends on which file I edit. It's not listening to all the files in my app/ directory.
EDIT EDIT: I'm following this...
I have a column type date (shown from annotate) on my Contacts table:
# date_entered :date(255)
This is the line of code that has worked for me locally on my sqlite3 database, but now generates an error in Heroku:
<%= contact.date_entered.to_s(:long) %>
The error that I get is:
wrong number of arguments (1 for 0)
I remove...
Hey guys,
I've created controllers in the past successfully, but all of a sudden I'm getting a weird error. I'm doing this:
ruby script/generate controller Request
And am getting this error message:
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/builder.rb:175:in `build': Illegal route: the :control...
RubyGems.org, the official gems site, provides poor functions. I want to find some good gems for my website, but it's impossibleit only provides several "New Gems" / "Most downloaded today" gems, and a list of all gems by indices. And the "search" is poor as well.
Anyone know any good site for finding/voting and discussing gems?
...
I have a basic PageView model that tracks when a particular page is opened.
I want to display a graph of hits over time. I'm using flotilla for generating the graphs.
Now, I if I have a series of PageViews of a time period but I want to display a time period even if there are no PageViews flotilla seems to render a graphic that only ...
I'm a programmer, I can build a web site, but the pages looks ugly. I don't know how to choose the colors, how to design the icons. Building a simple website cost me several hours, but tried to make it beautiful will cost me several days.
I don't want it as nice as those famous websites, but I want it clean, and all pages have same styl...
Hi guys,
I've started using HAML, and everything rocks except that I cannot get my old helper shortcuts in TextMate when creating HAML templates. I've installed the HAML bundle, but it doesn't seem to support those shortcuts (like rp => render :partial).
Is there any way out of this?
Thanks a lot.
...
I m planning a web based CRM app.
Target users will be small firms with few hundred clients. I am planning to use Rails framework and Rackspace Cloud Server/Amazon EC2 for hosting.
Since the data will be confidential I would prefer not to use a single database for all users. Does that mean that I will have to fire up a new instance of...
I am developing a ruby on rails website using heroku and git.
What tools and features should I use to set up the following simple development process?
CODE > CHECK-IN > AUTO TEST > AUTO DEPLOY
I check my code into my repository (preferred option, hosted git like github)
Tests are automatically run AND website is deployed in my stagin...
hey all
ive got a really interesting set of problems
im learning some new development techniques ... ruby on rails :D
so ive run this code numerous times:
spec spec/
as you can see from the code: these are back-to-back runs via terminal of "spec spec/"
http://pastie.org/1020719
returning different results...
i was told that softw...
How do you comment out html mixed with ruby code?
some text <% ... %> more text <%= ... %>
something else
<% ... %>
In jsp it's real simple: <%-- ... --%>, but I'm unable to find any concise option in rails.
Simple html comments <!-- ... --> do not work: ruby code is still executed and yells errors.
There's an option to use if fal...
I'm not sure why I am getting these errors, seemingly only on the Shoulda matcher tests. Any advice would be helpful.
http://pastie.org/1020788
...
In rails migration, if I set text column limit to 16777215, and migrate, mysql creates column of type LONGTEXT, but it should create MEDIUMTEXT, as it can store 16Mb - 1 byte, what is wrong (log says that create table column is sent with type text(16777215), so it is something wrong with mysql)? Also spending some time gave me, that maxi...
variables a, b, c and d all need to be set to 'foo'.
Is there a way to accomplish this in one swooping assignment? Like:
a, b, c, d = 'foo'
...
the submit button works only for validating the javascript in the question.js file, but it doesnt do the basic function, which is submiting the form itself! Your help is very appreciated.
`Ruby page code containing the form element
<script type="text/javascript">
loadScript("/javascripts/questions.js",function() {});
</script>
<h1...
I have a rails app which is localized in multiple languages. Some time for the localization to complete it takes more time after the some enhancements are done in english language. So it was decided to release the latest version of the website in english language. and retain the older version for other non-english languages. So that the ...
Hi,
The following code works when I submit the form with valid content. But When I submit the form with invalid content, It validates and shows there is an error and reloads the page. But then the form does not gets submitted.
Can you please help me with this?
Thanks.
View Code
<h1 class="hdr1">Ask question</h1>
<%= link_to Profi...
Dear all,
I have 3 pages:
[Page 1] Index
[Page 2] User enter value in a form.
[Page 3] Do calculation on the value entered and output it on this page.
I as wondering how do i do this? I do not want to save the data in any database.
Thank you =)
*Added info 20100628 based on feedback. Thank you! *
for PHP, I could user $_GET and %...