Displaying 20 results from an estimated 100 matches similar to: "has_many :addresses, :as => :addressable"
2006 Jul 27
4
roles based authentication
hi!
im trying to implement a role based authentication in my project, but im
writing too many conditions, and i think thats not the right way to
proceed.
i have search in google, but there are a lot of plugins and "tutorials",
and they are always not similar, so i dont understand them.
please could someone help me? maybe with a easy authentication or with a
good/nice tutorial?
2006 Mar 23
4
Error with Rails 1.1RC1 and Properties page
I just tried setting up a simple Rails app, after updating to the
1.1RC1 version of Rails. Generating a simple scaffold worked fine, and
WEBrick started fine with script/server.
I then went to the http://localhost:3000 page and clicked on the
"About your application''s environment" link, and an error was
displayed:
NoMethodError in Rails/info#properties
private method
2012 Oct 18
1
GlusterFS failover with UCarp
Hi,
we've successfully configured GlusterFS mirroring across two identical
nodes [1].
We're running the file share under a Virtual IP address using UCarp.
We have different clients connected using NFS, CIFS and GlusterFS.
When we simulate a node failure, by unplugging it, it takes about 5
seconds for the CIFS and GlusterFS clients to refresh the connection and
continue operation. The
2006 Jan 17
4
find_by_sql column ordering defect?
Hello.
I have a program that accesses a metadata (translation) table for column
names as well as the ordering of columns for a specific model. Also in
there is a collection of bool options such as column_visible_on_form,
column_visible_on_screen_quicklist etc. The idea is that our customer
can specify to a certain extent how their layout/user interface will
appear.
To accomplish this, I use
2006 Mar 25
1
Question about upgrading to rails rc1.1
My current under-developed project is using rails 1.0 and now plan to
upgrade to rails rc1.1,the project uses the Rails-engine and
Login-engine as the login module,when I update the rails according to
http://weblog.rubyonrails.org/articles/2006/03/22/rails-1-1-release-candidate-1-available
The project still can not be started,anybody can tell me the reason?very
thanksful!And following is the
2006 Jan 05
1
Looping through all models in the application
Hello.
I have an application that depends on a table/model
(ModelInternationalization) that provides international translations in
various languages for all the model/table and columns names as well as
some other stuff (whether the column is visible on forms, dropdowns,
lists, reports etc).
I need to create a management interface for this translation stuff (the
plaintext stuff, btw, will be
1997 Oct 08
5
Malicious Linux modules
As halflife demonstrated in Phrack 50 with his linspy project, it is trivial
to patch any system call under Linux from within a module. This means that
once your system has been compromised at the root level, it is possible for
an intruder to hide completely _without_ modifying any binaries or leaving
any visible backdoors behind. Because such tools are likely to be in use
within the hacker
2006 Mar 25
1
Re: Rails Digest, Vol 18, Issue 656
Here''s an alternative in-depth treatment on setting upo rails on Debian
(Ubuntu, Kubuntu, ... ), may be interesting to follow through in more detail
for some:
The Perfect Rails/debian/lighttpd Stack... (
http://brainspl.at/pages/perfect_vps )
Victor Kane
http://awebfactory.com.ar
On 3/25/06, rails-request@lists.rubyonrails.org <
rails-request@lists.rubyonrails.org> wrote:
>
2006 Jul 08
2
Creating/Saving dependent objects
Folks,
Am new to RoR and am building an example to get myself familiar. I am
running into a simple issue while creating a user registration page.
I have a User and Address models defined as below (partial/relevant code
included below). User has_one address and Address belongs_to user. I have a
foreign key defined in address table that refers to user(id)
In a form I take in username, password,
2006 Mar 28
11
ActionWebService date casting error
I have defined a web service to return information from a database as follows.
class BackendApi < ActionWebService::API::Base
api_method :find_all_vobs,
:returns => [[:int]]
api_method :find_vob_by_id,
:expects => [:int],
:returns => [Vob]
class BackendController < ApplicationController
wsdl_service_name ''Backend''
2005 Dec 20
0
db/schema.rb and PostgreSQL sequences
Hello.
I''m working the "proper way" with creating the initial db schema via
migrations and db/schema.rb.
However, I have a bit of a special need, and need to know if anyone
knows the solution to this;
I need a sequence that is common to several tables - a "data id" that
gives a sort of unique object number to every row in every table. Some
associated tables (a
2006 Aug 23
8
acts_as_ferret with Mongrel and Edge Rails
Hi there,
Has anyone tried acts_as_ferret with Edge Rails and Mongrel? When I
install the plugin to a project that has Edge Rails frozen, and the
Mongrel gem installed, I can''t start the server. There''s no error, it
just doesn''t start.
I''ve used acts_as_ferret in the past with WEBrick, and stable Rails
releases without a hitch.
If I remove the
2006 Apr 03
6
problem upgrading to rails 1.1 on Unix
Hi,
I''m having problems installing rails on our Unix server.
"gem install rails --include-dependencies" only install rails 1.0.0
"gem update rails" updates to rails 1.0.0
I have installed rails on my windows box (i forgot how!).
Running "gem -list --local" on my windows box gives me:
rails (1.0.0.4008,....
Yet when i run :
gem -list --remote
there is
2006 Mar 24
1
Rails 1.1RC Where?
I have read references to RoR v1.1RC being available in gem form and
would like to find out if:
1. Is this true?
2. If so, then how do you tell gem to get it?
I re-installed rake and rails this morning using:
gem install rake --source http://gems.rubyonrails.org
gem install rails --source http://gems.rubyonrails.org
I got a lot of ActionXxxxx dependency updates and rails-1.0.0.4008. Is
2006 Mar 23
2
rails 1.1 and mysql errors
Hi,
I just upgraded to rails 1.1 this morning and i am getting a variety of
errors from tests that were passing effortlessly on the previous edge
release (i froze several weeks ago, so I not sure what version that was).
Has anyone else experienced these types errors with the new rails:
I have several errors that are grouped around create and destroy commands
the errors are similar, first the
2006 Mar 23
11
ActiveRecord: Oracle metadata loading slow on large database
All,
While attempting to use ActiveRecord against a large database, approx.
1700 tables and 4 million rows, I discovered an inefficiency in
oci_adapter.rb. The problem seems to be the SQL being generated to
lazy-load the columns metadata. "def columns(table_name, name = nil)"
method generates the following SQL:
select column_name, data_type, data_default, nullable,
2018 Jul 12
0
Asterisk 13.22.0 Now Available
The Asterisk Development Team would like to announce the release of Asterisk 13.22.0.
This release is available for immediate download at
http://downloads.asterisk.org/pub/telephony/asterisk
The release of Asterisk 13.22.0 resolves several issues reported by the
community and would have not been possible without your participation.
Thank you!
The following issues are resolved in this release:
2018 Jul 12
0
Asterisk 15.5.0 Now Available
The Asterisk Development Team would like to announce the release of Asterisk 15.5.0.
This release is available for immediate download at
http://downloads.asterisk.org/pub/telephony/asterisk
The release of Asterisk 15.5.0 resolves several issues reported by the
community and would have not been possible without your participation.
Thank you!
The following issues are resolved in this release:
2012 Jan 10
1
[LLVMdev] Minimum addressable unit
Hi,
How can we set the minimum addressable memory unit to be 32 bit ?
As far as I know, getTargetData() provides all type sizes and alignments
to compute address offsets assuming a MAU of 8 bits.
But what if I have a MAU of 32 bits ?
Currently I have 2 legal types in my BE, i16 and v2i16, and I could set
TargetData in order to have v2i16 types with a size and alignment of 8
bits. Doing so, I
2020 Aug 25
0
a saner API for allocating DMA addressable pages
Hi Christoph,
On 19.08.2020 08:55, Christoph Hellwig wrote:
> this series replaced the DMA_ATTR_NON_CONSISTENT flag to dma_alloc_attrs
> with a separate new dma_alloc_pages API, which is available on all
> platforms. In addition to cleaning up the convoluted code path, this
> ensures that other drivers that have asked for better support for
> non-coherent DMA to pages with