Possible Duplicate:
Pushing app to heroku error
Hello. I am trying to push an app to heroku and I am getting the error detailed here.
So I am trying to determine the corrupt objects using git fsck -full but it isn't returning anything. Nothing happens:
Ryan@Ryan-PC ~
$ git fsck --full
Ryan@Ryan-PC
But I get the object...
In a form_tag, there is a list of 10 to 15 checkboxes:
<%= check_box_tag 'vehicles[]', car.id %>
How can I select-all (put a tick in every single) checkboxes by RJS? Thanks
EDIT: Sorry I didn't make my question clear. What I meant to ask is how to add a "Select/Un-select All" link in the same page to toggle the checkboxes.
...
im trying to understand the process of creating tables in ruby-on-rails 3.
i have read about migrations. so i am supposed to create tables by editing in the files in:
Database Migrations/migrate/20100611214419_create_posts
Database Migrations/migrate/20100611214419_create_categories
but they were generated by:
rails generate model P...
I'm building a website based on RoR, and using a third-party gem "devise". I have used rake gems:unpack to unpack the "devise" to my "vendor/gems" directory. Now, I found the method "SessionsController.create" provided by "devise" is not fit my requirement, and I want to modify it.
But I don't know what it is best way:
just modify t...
I'm using Facebox, and when I tried to change the content of a tag, it's giving me raw HTML but the rendered form, the code snippet is:
jQuery('#facebox .content').html("<%= escape_javascript(render :partial => 'form')%>");
Anybody has any idea about this? Thanks a lot.
...
Hi there
I have a question to the following procedure:
script/generate scaffold product
title:string description:text
db:migrate
#then I generate a migration which adds a column description to the
table products and migrate the db
again.
My question is: why is the field description not added to the project-views? Is that normal rail...
Hi,
I would like to insert a link into the Google Maps InfoWindow to show more information about the point the user has clicked on in my rails app. My current code:
$.getJSON("/places", function(json) {
if (json.length > 0) {
for (i=0; i<json.length; i++) {
var place = json[i];
addLocation(place);
}
}
});
func...
Hello, I am currently trying to save information for an invoice/bill. On the invoice I want to show what the total price is made up of. The procedures & items, their price and the qty. So in the end I hope to get it to look like this:
Consult [date] [total_price]
Procedure_name [price] [qty]
Procedure_name [price] [qty]
...
Is there a rails plugin which can handle authentication with facebook, twitter and openID providers (ex. google, yahoo...)
...
I'm very newbie in ruby and need your help.
I must save a "Topic" and make it like this :
@topic = Topic.new(params[:topic])
But I would like to pass an other information to this topic. It has a field "community_id" that link it to a community.
The logged user has this information on his table.
How can I pass the "community_id" from...
I have a rails app that I am trying to deploy to heroku. This app generates pdfs using prawn. I installed prawn as a git submodule rather than as a gem as this is what is recommended on the prawn website (here).
This has not worked well with heroku so far though. As stated on heroku's application constraints page submodules are not supp...
There seems to be several technology demos such as http://rails-primer.appspot.com/ on how to run Rails on App Engine. What would be the easiest way to run Rails on App Engine?
...
Hi Everyone,
Is it possible to display the created_at date, only if that date matches today's date?
<%=h k.created_at %>
Is this possible? Or should it be done in the controller rather than the view?
Thanks,
Danny
I have the following in my environment.rb:
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(:def...
Hi
I'm implementing a wiki style site and want to highlight changes made to articles between successive versions. Using htmldiff to highlight changes works great, except it is rather cpu intensive. I'm using the awesome vestal_versions plugin for versioning.
So how best to handle this? I considered having an on_create callback on versi...
Hi Everyone,
A follow on from this questions:
http://stackoverflow.com/questions/3032598/rails-created-at-on-display-if-today
Is it possible to output the word TODAY rather than the date when using the following helper?
def created_today k
k.created_at if k.created_at.to_date == Date.today
end
<%=h created_today(k) %>
Thanks,...
So here's the scenario:
User:
has_one :company
accepts_nested_attributes_for :company
Controller:
@user = User.new
@user.build_company
View:
<% semantic_form_for @user, :url => register_path do |form| %>
<h2>User Information</h2>
<%= form.inputs %>
<h2>Company Information</h2>
<% form.semantic_fields_for :company do ...
I am new to rails but have read a book and created small features before. I'm now about to create a big new feature for an application (it really just involves a lot of forms and relationships) and I was wondering if anyone has a good/consistent strategy for pre-coding.
...
I am using form_for to create a form that has 1 input field and 1 button. I'd like the submit button to be beside the input field rather than underneath it.
Relevant code is:
.input{border: 1px solid #666666; width:400px; height:22px;font-size:16px;}
<td width="900" height="50" align="left" valign="middle">
<% form_for @contact...
I'm running Rails 2.3.4. When I create a new rails project, the public/index.html file has a link named "About your application's environment" that points to "rails/info/properties". In dev mode, it gives a summary of the runtime environment. However, in production mode, it gives a 404 page cannot be found.
Could someone point me in th...
I want to include a hash and list inside a YAML file that I'm parsing with the following command:
APP_CONFIG = YAML.load_file("#{RAILS_ROOT}/config/config.yml")
My YAML file looks like this:
feeds: [{:url => 'http://www.google.com', :label => 'default'}]
But this doesn't seem to work.
How would I go about achieving such a thing?
T...