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
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
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
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 %
%=
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 =
[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,
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
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
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
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
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
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
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
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
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
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 :
==
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
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
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
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:
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
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
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
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
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
25 matches
Mail list logo