[Rails] Re: Rails CMS best fit

2012-10-23 Thread Jay Damodaran
Functionality wise, I've had really easy time integrating these CMS libraries. https://www.filepicker.io/products/libraries/ Let's you grab content through urls. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Re: SyntaxError in Posts#index ?

2012-10-23 Thread Colin Law
On 23 October 2012 05:27, wragen22 bradwr...@gmail.com wrote: Ok, looked at the rails guides. Aparently the syntax is different from the tutorial I'm following.. they use %= link_to 'Remove', book, :confirm = 'Are you sure?', :method = :delete % How can I be sure to use the correct syntax

Re: [Rails] Re: Rails CMS best fit

2012-10-23 Thread Erwin
My issue seems to be related to Rails railties : action_controller/metal/params_wrapper.rb#_default_wrap_model quoted : # Determine the wrapper model from the controller's name. By convention, # this could be done by trying to find the defined model that has the # same

[Rails] Insert multiple entires

2012-10-23 Thread Werner
need some help with this.. form: %= simple_form_for(@week) do |f| % % @kws.each do |w,y| % th%= w %.%= #{y}[2..4] %/th #gives a val something like: 482012 %= text_field_tag workhour[] % %= hidden_field_tag week_ids[], [#{w}#{y}] % % end % %=

[Rails] Not updating the updated_at field

2012-10-23 Thread Peter Hickman
This is for Rails 3.1.1 I have a field called last_seen in a model. This field will be updated when the something about the record is seen in the real world (don't worry about this part) So I go x.update_attribute(:last_seen, Time.now) and the following happens is UPDATE blah SET last_seen =

Re: [Rails] Re: Rails CMS best fit

2012-10-23 Thread Erwin
[SOLVED] I guess.. It seems I had a wrong route in my cms_admin namespace namespace :cms_admin, :except = :show do match '/', to: 'base#jump' resources :sites do is the correct one... but I tried to bypass the base controller and I wrote namespace :cms_admin,

[Rails] [JOBS] PlaySpan (a VISA Company) is seeking a Senior Software Engineer (Ruby on Rails)

2012-10-23 Thread Carrie Williams
At PlaySpan, a Visa company, we power one of the fastest growing areas in consumer spending – digital goods. Joining the PlaySpan team doesn’t just let you experience this growth; you are expected to lead it. Picture your gaming enthusiast buying virtual goods to advance a level. Now multiply a

[Rails] AJAX truncated response on Phusion Passenger v3.0.17 on CentOS v6.x

2012-10-23 Thread Jiten Savla
Our application deployed on Phusion Passenger version 3.0.17 server on CentOS 6.x box makes a AJAX call which returns a large response ranging from 1MBs to 8 MBs. It works fine a lot of time but we have seen truncated response from the server inconsistently. Its breaks are different places

[Rails] multidimensional Array or Hash with group_by 'created_at'

2012-10-23 Thread Johann Christoph Gorzny
Hello, i want to create a multidimensional Array or Hash with group_by 'created_at'. 3 dimensions needed: myArray[week][day][data] currently i only created it with 2 dimesions: #model def self.group_per_day all.group_by{|t| t.created_at.strftime(%d. %B, %Y)}.sort #%U for Weeks end

Re: [Rails] ActiveRecord::Base.connection.select_all() returns integers as strings

2012-10-23 Thread Dmitry Maksyoma
On Tuesday, October 23, 2012 3:32:20 AM UTC+13, Hassan Schroeder wrote: On Mon, Oct 22, 2012 at 2:51 AM, Dmitry Maksyoma lede...@gmail.comjavascript: wrote: I'm doing a select_all(SELECT attnum, attname FROM pg_attribute) and the resulting hash has attnum value as string, despite it

Re: [Rails] ActiveRecord::Base.connection.select_all() returns integers as strings

2012-10-23 Thread Hassan Schroeder
On Tue, Oct 23, 2012 at 3:48 AM, Dmitry Maksyoma ledes...@gmail.com wrote: The adapter you're using is for JRuby, I'm using native Ruby. Right, just making the point that it's not a PostgreSQL issue, it's that the adapter you're using is broken. Or at least not behaving as you'd expect :-) And

[Rails] Re: extracting a portion of a model to a separate file

2012-10-23 Thread Marc B.
Gentlemen thanks for having this conversation. Was pulling my hair out trying to get state_machine to work with a mixin. I need to define state_machines behaviors unique to each client while keeping a single code base. I ended up using opening up the class like Maren suggested. class

[Rails] whats wrong with this migration

2012-10-23 Thread roelof
Hello, I try to add a column named id_category to my database table berichten. So I have this : class Bericht ActiveRecord::Migration def up add_column :berichten do [t] t.column :name, 'id_category' end end def down end end But I get wrong number ( 1 of 3 ) error

[Rails] A general question about railstutorial.org sessions helper methods

2012-10-23 Thread Jean-David
Hi guys, As you probably guess I'm pretty new to RoR. I'm going through railstutorial.org, which I would recommend to other beginners like me, but at some point in chapter 8 there's a bit of code I don't really get in the sessions helper. Here's the code I'm talkng about : module

Re: [Rails] whats wrong with this migration

2012-10-23 Thread BalaRaju Vankala
you have to create a new migration for add_column using rails g migration col_name_table_name in that migration file you have to follow below syntax def up add_column : table_name, column_name, data_type end i hope its help to you.. On Tue, Oct 23, 2012 at 8:19 PM, roelof rwob...@hotmail.com

Re: [Rails] whats wrong with this migration

2012-10-23 Thread roelof
Sorry I dont help me I did rails g migration id_category bericht And changed the migration file to this class IdCategory ActiveRecord::Migration def up add_column :bericht, id_category, number end def down end end After that I did rake db:migrate and get this output : ==

[Rails] Re: Developing A Better Curriculum for Learning Rails

2012-10-23 Thread fuzzy
Hi Kevin, If you dont mind, let me give you some perspective from the other side of the coin ... a students perspective. I am in my mid sixties and from an accounting background with experience in writing vba for Microsoft Excel and Access. In fact I have an Excel working model as well as an

Re: [Rails] whats wrong with this migration

2012-10-23 Thread roelof
Op dinsdag 23 oktober 2012 17:03:29 UTC+2 schreef roelof het volgende: Sorry I dont help me I did rails g migration id_category bericht And changed the migration file to this class IdCategory ActiveRecord::Migration def up add_column :bericht, id_category, number end

Re: [Rails] whats wrong with this migration

2012-10-23 Thread Norm Scherer
You need something like class IdCategory ActiveRecord::Migration def up add_column :bericht, 'id_category', :integer end def down end end You can use either strings or symbols. Norm On 10/23/2012 08:03 AM, roelof wrote: Sorry I dont help me I did rails g migration id_category

Re: [Rails] Rails Services Module

2012-10-23 Thread Matthias Frick
Rails does not support an interface for external APIs? Or does it offers one? For example you have to interact with the facebook graph api, twitter api, and others, is there a main basic end-to-end point for such api's? Am Dienstag, 23. Oktober 2012 00:19:52 UTC+2 schrieb Martin Wawrusch:

Re: [Rails] whats wrong with this migration

2012-10-23 Thread roelof
Thanks. Another problem solved. Roelof Op dinsdag 23 oktober 2012 17:10:51 UTC+2 schreef Norm het volgende: You need something like class IdCategory ActiveRecord::Migration def up add_column :bericht, 'id_category', :integer end def down end end You can use either

[Rails] Re: A general question about railstutorial.org sessions helper methods

2012-10-23 Thread Frederick Cheung
On Tuesday, October 23, 2012 2:11:31 PM UTC+1, Jean-David wrote: module SessionsHelper def sign_in(user) cookies.permanent[:remember_token] = user.remember_token self.current_user = user end def current_user=(user) @current_user = userend def current_user

[Rails] [JOB] Rails Developer - Denver Colorado

2012-10-23 Thread Beau G.
I'm looking for a RoR Developer for a Denver, CO client for a full time, salaried position paying to 90k + benefits. If anyone would like more information, please shoot me a resume so I can verify your candidacy and I'll reply with details. Thank you, Beau J. Gould --- Open Source

[Rails] route problem

2012-10-23 Thread roelof
Hello I have this routes.rb Tamara::Application.routes.draw do ActiveAdmin.routes(self) devise_for :admin_users, ActiveAdmin::Devise.config resources :users resources :category do resources :berichten end end So I thought that localhost:3000/category/bericht/new I could

[Rails] using web browser to control a ruby program

2012-10-23 Thread Edward QU
Dear All I want to learn ROR. I have 3 years of experience on Ruby program, I want to use ROR web page to star or stop a ruby program, and modify the config file of the ruby program. so the user can control the program using web browser in anywhere he can access the webpage, instead of logging in