Displaying 20 results from an estimated 1000 matches similar to: "acts_as_versioned"
2005 Dec 29
2
form_remote, getting data from submit
Hi list,
I'm writing a little survey application, and surveys are generated
dynamically. I use form_remote_tag and AJAX to submit the form to a
method 'submit' in my 'survey' controller.
The view generates the form as:
<tr>
<td>Question 1?</td>
<td><input id="resultset_1" name="resultset[1]" size="30"
2006 Jan 11
1
Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''
Hi list,
I keep getting the following error:
NoMethodError in Admin#create_survey
undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>
contents of Admin#create_survey is:
@template = Survey.find(params[''survey''][''id''])
render :layout => false
I have no idea where this comes from, bug in Rails?
--
Michiel Sikkes
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my
controller, all the other actions use the application.rhtml layout, so
what i''m doing is ...
class SomeController < ApplicationController
layout "simple", :only=> :some_action
......
end
and the "simple" layout is applied to all the actions, can someone
please give me a hint?
2013 Jan 22
2
Rails 4: Should a HEAD request not be handled like a GET for CSRF protection?
I am running a Rails 4 app in semi-production and I constantly get
exceptions from crawler bots that use a HEAD HTTP method, which causes the
CSRF protection to kick in.
Shouldn''t HEAD requests normally be handled like GET requests?
I am not sure if I''m just being stupid or that hit is a bug somewhere.
Michiel
--
You received this message because you are subscribed to the
2006 Apr 13
2
acts_as_versioned gem
I''ve installed the acts_as_versioned gem, and it shows up as
installed when i do a "gem list"
After installing it, I set up my new model with the
"acts_as_versioned" line in its model file. I think went to run my
migration to create this table, and I got the following error:
== CreateDpslevels: migrating
================================================
--
2008 Dec 01
3
acts_as_versioned and rails 2.2.2
Hi people I have tried to install the acts_as_versioned gem from
github in rails 2.2.2 but it seems to conflict with some methods in
the activerecords dirty.rb-file. I can solve some of the problem by
changing code in the activerecord, but I don''t think that was the
intention.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2006 Jun 03
1
First time plugin user: Problem with "acts_as_versioned"
Hi,
I am having trouble with using the acts_as_versioned plugin. I installed
the plugin, and ran the migration. acts_as_versioned created the
versioned table OK, but when I try to use it I get an error. Here is
some console output:
>> m = Mymodel.find(:first)
NameError: undefined local variable or method `acts_as_versioned'' for
Mymodel:Class
Did I miss a step?
Ingo
--
2006 Feb 17
2
acts_as_versioned and acts_as_taggable on same model?
I am trying to use acts_as_versioned and acts_as_taggable (plugin) on
the exact same model. Has anyone successfuly done this? I think
what I need to do is make model_versions acts_as_taggable instead of
my main model. Anyone have any other suggestions or any suggestions
how to do this?
Your Friend,
John Kopanas
http://www.kopanas.com
2006 Mar 20
3
help: acts_as_versioned setup error "undefined local variable or method ''base_class''"
Hi All,
Rails newbie here trying to set up acts_as_versioned according to Chapter 14
in the Rails Recipies book. I''ve taken the following steps (nearly
verbatim) as mentioned by the book:
- created the target model "Post"
- added the "acts_as_versioned" label to the model file
- generated a migration file
- added the table creation code and the command
2006 Feb 14
10
acts_as_versioned and getting authors
Hey guys and gals,
I have the following object that has acts_as_versioned:
class Note < ActiveRecord::Base
acts_as_versioned
belongs_to :user
end
The schema for my notes table is as follows:
create_table :notes, :force => true do |t|
t.column :id, :integer
t.column :noteshare_id, :integer
t.column :user_id, :integer
t.column :title, :string
2007 Nov 14
2
Globalize and acts_as_versioned
The subject says it all: Has anyone had any experience with using
globalize and acts_as_versioned (or equivalent) together. That is, I
would like the version control to take the locales into account, the
en-US translation could be on version 7 while the fr-FR version is 3.
Am thinking about extending these plugins but maybe someone has
already done this?
Tanks in advance.
Regards
Erik Lindblad
2006 Jan 12
0
Apache proxy + lighttpd + rails
Hi list,
I''m having another problem deploying my Rails application. I set up
the servers and apache2 configuration using the excellent essay by
Duncan Davidson:
http://duncandavidson.com/essay/2006/01/railsonapache
However, he describes proxying using a subdomain. What if I want to
proxy the requests of www.domain.com/railsapp/<url> to
www.domain.com:8888/<url> and reverse
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller:
class FredController < ApplicationController
def hello
render :text => ''Hello, world!''
end
end
and I create a simple functional test within the engine:
class FredControllerTest < Test::Unit::TestCase
...
def test_hello
get :hello
assert_response :success
end
2006 Dec 07
0
rails_file_columng + acts_as_versioned
Anybody using both of these plugins simultaneously? It appears that the
methods dynamically generated by rails_file_column don''t get added to
the Version class:
NoMethodError (undefined method `image='' for
#<Opinion::Version:0x35c9254>):
.//vendor/rails/activerecord/lib/active_record/base.rb:1847:in
`method_missing''
2007 Jan 28
0
problems with acts_as_paranoid (noticed while using acts_as_versioned)
hello,
I''m using the trunk versions of both plugins.
I''m running into this error when I run a migration to try and create
the versioned table for the model ''Note''
stack level too deep
/Users/Adam/dev/sweetspot/app/trunk/config/../vendor/plugins/
acts_as_paranoid/init.rb:5:in `belongs_to_without_deleted''
2008 Aug 26
0
acts_as_versioned rails 2.1 namespacing
Anyone knows how to use namespace with acts_as_versioned-0.5.1?
Model example:
class Namespace::MyModel < ActiveRecord::Base
require ''acts_as_versioned''
acts_as_versioned(:class_name => "Namespace::MyModel", :table_name =>
my_model_versions'')
...
The error looks like:
NameError in Namespace::MyModel
wrong constant name
2005 Oct 18
0
Fwd: acts_as_versioned for many-to-many
> However, as I understand acts_as_versioned the models are not synchronized
> so when I look up the permissions of an old version of the employee I have
> to manually find the corresponding version of the permissions (ie the
> version of permissions that existed when that version of employee was
> updated), and when navigating to the corresponding system from that
> permission I
2006 Jul 11
2
acts_as_versionable and prospective versions
Anyone out there really familiar with acts_as_versionable ?
I''ve recently got it working, and I think it''s working great.
But what I want to do is a little different than what it does by
default.
Currently, each time I save the activerecord, the plugin increments
the version number in the main table, and writes a copy to the table
that stores old versions.
What
2006 May 06
0
Issues using GUID plugin: IDs and acts_as_versioned
Hi,
First off, I think the GUID plugin is very slick (
http://wiki.rubyonrails.org/rails/pages/Uses+Guid+Plugin). However, I''m
running into a few issues:
ISSUE #1) Rails'' handling of IDs as strings instead of integers. In
particular, it didn''t seem to work when I had a model doing "acts_as_list"
with a scope:
Example:
Class Big < ActiveRecord::Base
2009 Mar 26
0
acts_as_versioned and qa
Hi,
I have Article model and it has aasm_column qa, that is initially
"pending".
In order to get it reset qa column on new versions, I have made:
def set_new_version
write_attribute(:qa, "pending")
end
But now the aasm methods are also triggering the new version, dispite:
self.non_versioned_columns << ''updated_at''