Ruby on Rails »   

I can't access wIki.rubyonrails.org for some time.
Fri, 27 Aug 2010 12:24:19 UT
I can't access wIki.rubyonrails.org for some time. (If my memory serves me right, it is since July.) Is this functional? Is it simply down for some maintenance issue? Anyone knows why?

sumit_tag
Fri, 27 Aug 2010 13:45:03 UT
hii all, i don't know how to ask this question because am new to rails. but i want to know to is which part of code sumit_tag will take you means after execution of sumit_tag where control of programme goes??

Disabling Exception Notification for ActionController::InvalidAuthenticityToken
Fri, 27 Aug 2010 14:03:21 UT
Does anyone know how to disable exception notifications for the Exception Notification plugin when it is an ActionController::InvalidAuthe nticityToken? Thanks! Tom

PostgreSQL + Rails 3: SELECT AS weirdness
Fri, 27 Aug 2010 14:08:25 UT
Here's a class function I've made in a model called Exchange: def self.get_history(product_id) exchanges = Exchange.select("product_id, quantity, week, SUM(quantity) AS total") exchanges = exchanges.where('product_id = ?', product_id) exchanges = exchanges.group("week") end This gets me a total number of a particular widget sold by week. It

Rails 3: Routing constrants issue
Fri, 27 Aug 2010 14:22:56 UT
Hi, I'd like to have a route that looks like: [link] The params I'd like to come out of that are: So, I do this: get 'myresource/*server/(:folder)/ *mapservice' => "controller#action", Which I hope is saying, I want to match all characters for the server

Re: [Rails] How can I do an onChange event with Rails3 and jQuery?
Fri, 27 Aug 2010 15:40:09 UT
<select onchange="javascript:foo()"> function foo() { $.ajax(...);

Reserved column names in Rails 3
Fri, 27 Aug 2010 16:18:03 UT
I'm attempting to upgrade one of my sites to Rails 3 and I'm getting the following error: field_changed? is defined by ActiveRecord The particular table it is referring to has a column named "field", and I'm assuming that the error message means that I can no longer have a column named "field". First, am I assuming correctly?

Multiple joins to the same table/association with different conditions
Thu, 26 Aug 2010 00:22:26 UT
I'm looking for a nice(!) way to specify multiple joins to the same table where there are different conditions on each one. I was hoping for something like this class Model < ActiveRecord::Base has_many :things scope :some_things, joins(:things).where('things.f oo' => 'bar'). joins(:things => :others).where('others.foo' => 'baz')

Job: Remote from anywhere
Thu, 26 Aug 2010 02:14:10 UT
Did you read "Rework"? Do you like the ideas presented? Do you want to live anywhere you want? Do you want to work anytime you want? Are you good with Ruby and Rails? Does working remote make you more productive? Do you understand what not dropping the ball involves? Do you want to be the lead developer (and maybe the only one for a while) for a web

Layouts in Rails 3.0
Thu, 26 Aug 2010 03:22:05 UT
I have an admin section in my rails 3 app. where I want to use a different layout than the main layouts/application.html.haml layout. Here is the snippet of the admin_controller.rb: class AdminController < ApplicationController current_section :admin layout :admin . . end Here are the contents of the layouts/admin.html.haml file:

paper clip plugin (dleting attachments)
Thu, 26 Aug 2010 04:54:23 UT
Hi All, i created an application to upload image files using paper clip plugin,its working successfully,alsoi had a page which l;ists all the images uploaded by the user.also there is a delete button to delete the image from db by entering value in the deleted_at fileld in database not removing that complete row( not from the attachments

@cart.add_product(product)
Thu, 26 Aug 2010 06:04:16 UT
Any one can explain me???????? in agile web development book in chapter Cart Creation depot_f/app/models/cart.rb class Cart attr_reader :items def initialize @items = [] end def add_product(product) @items << product end end depot_f/app/views/store/index. html.erb <%= button_to 'Add to Cart', :action => 'add_to_cart', :id => product %>

Having trouble with link breaks in a table
Thu, 26 Aug 2010 06:38:12 UT
I have table being filled by a partial. When the fields are filled, the fields end up together or not there for half a page. See below. My controller code and views are below.. controller: @single = Array.new for @h in households do if @h.people.count == 1 @single << @h

Sending Emails to Inbox
Thu, 26 Aug 2010 06:52:04 UT
Hi All, I am having a functionality of sending emails in my rails application. Sending the emails is working properly but sometimes the email goes to Inbox folder and sometime it goes to Spam folder. I am sending one email at a time, there is no bulk/mass emails. Does anyone have any idea regarding how to send email to Inbox??

Advice on rating system
Thu, 26 Aug 2010 07:29:28 UT
Hi, I'm doing a simple rating system, but I need and advice on the controllers. My system rates article. Should I add an action rate in the article controller or should I create a rate controller and add the action create? What's the cleanest way? Greg

[JOB] Sr. RoR Developer
Wed, 25 Aug 2010 21:46:45 UT
Hello, I am doing a search for an LA Based startup company that is well funded and looking for an experienced Ruby Developer to be the #5 guy (This is a Sr. Role; work directly for the CTO) on their team; do you know of anyone who would be interested? The company is a start up by some of the founders of Pay Pal and Ebay. Salary is competitive and

Problem with consecutive GET requests in integration test
Thu, 26 Aug 2010 05:28:57 UT
class UserStoriesTest < ActionController::IntegrationT est test "some test" do get "/" assert_response :success get "/" assert_response :success end end When I run the code above the first assertion passes. However, the second assertion fails because the response is a 500. To be more

Eager loading a has_many :through (Rails3)
Thu, 26 Aug 2010 05:39:31 UT
Hello all, I've been trying out Rails 3 and can't get past this issue: I have a simple has_many :through: class Author < ActiveRecord::Base has_many :author_series has_many :series, :through => :author_series end class Series < ActiveRecord::Base has_many :author_series has_many :authors, :through => :author_series

Dynamic javascript
Thu, 26 Aug 2010 07:49:55 UT
I'm coming from a long period of CakePHP development. One of the more useful features of that framework was the ability to add any inline javascript in a view, with dynamic php codeblock-generated output (variables, framework generated URLs, etc), to a javascript buffer, and then have CakePHP render it inside an inline script tag just

Newbie Moving on to Rails
Thu, 26 Aug 2010 08:21:50 UT
Hello everyone, Currently i have been in the process of learning ruby for about 6 months, so far so good =). Now, the project i have been working on, is pretty much done, unfortunately there is no user interface for "end users" to work with it. Right away i thought about Rails, so for the last week i have been


«   6  7  8  9  10  11  12  13  14  15  16   »

Categories

Ads