similar to: ActiveScaffold :form_ui select

Displaying 20 results from an estimated 40000 matches similar to: "ActiveScaffold :form_ui select"

2009 Mar 23
2
Select updates database?
I am running on Rails 2.2.2 on Solaris (and also on my mac) against mysql. For some reason, when I use a select in the partial, the database does not get updated with the changed value. I am using checkbox for other fields which works perfectly. I can provide more information if needed, but I would like the field to work as a dropdown instead of a text field. My Model:
2007 Oct 29
2
UI drop down list pulled from database values in activescaffold
as i''m finding it difficult to override the form Ui elements using activescaffold -= i''m looking for a help to build a drop down list in UI (values pulled from databse through SQL query) and so user can select these valus while submitting to database. pls provide any example strictly using activescaffold plugin. thanks selvan-kalaiselvan
2008 Apr 20
1
how to select "no date" in activeScaffold
HI, I have a date column which is not mandatory. How can I get it so activeScaffold offer the ability to select no date (i.e. nil or null type thing)? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
2010 Aug 01
3
Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-8BIT"
Hi First off, I''m using Ruby 1.9.1p378 and Rails 2.3.8. I was creating a minimal application to test handling of Norwegian special characters when I bumped into this strange problem... I have a simple Car model with fields maker:string and model:string. For the controller I planned to just have an index action do all the work: class CarsController < ApplicationController def index
2007 Oct 07
1
Streamlined/ActiveScaffold don't support has_many :through?
All, I hear tell that neither Streamlined nor ActiveScaffold support the use of has_many :through relationships in the sense that HM:T relationships will effectively be read-only in those frameworks. Does anyone know why this is? I assume that it has something to do with the way that the relationships are introspected on? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2007 Oct 19
1
ActiveScaffold many to many relationships
Hi there, when I create active scaffolding in a many to many relationship, I would like that my create/delete actions in the nested scaffold would actually erase one relationship between the two tables or create a new link between the two tables, and not delete the record itself in one table or create a new record of one of the two tables involved. Is this possible with Active Scaffold? Thank
2008 Jul 09
1
Problem with ActiveScaffold+RecordSelect
Hello, i''m using this two plugins. But i have some problems. My model is USER belongs_to :avatar. Error is the follow: NameError in Admin/avatarsController#browse undefined local variable or method `field'' for #<Admin::AvatarsController:0x68aae98> RAILS_ROOT: C:/Progetti Rails/RNetPortal Application Trace | Framework Trace | Full Trace Request Parameters:
2008 May 02
0
Getting a dynamic selected field from an activescaffold...?
Hi there. I need to get a specific field from a activescaffold object. The specific field must be editable, and must de available to be set to a new value, thus the object.send(:field) will not work, since it only gets the value, but does not enable reasigning a new value to the field. Is theer a way to do this? -- Posted via http://www.ruby-forum.com/.
2006 Dec 05
1
has_many :through questions
I have a database with 4 tables Months has_many :weeks Weeks has_many :days Days has_many :hours Hours Weeks belong_to :month Days belong_to :week hours belong_to :day I need to access the month_id in the Hour.rb model. find(:first, :conditions => ["user_id = ? AND month_id = ?", user_id, month_id]) Thanks -- Posted via http://www.ruby-forum.com/.
2008 Apr 17
0
Having problem with validates_presence_of fields in form when trying to also use ActiveScaffold (x-posted at ActiveScaffold group)
I have an events listing site that includes the models Event and DateAndTime, so an event that happens more than once (like a high school play) can have more than one date_and_time. The Event model has_many date_and_times, and the DateAndTime model belongs_to event. The Event model validates_presence_of two submission form variables, the_date and the_time, and those variable values then get used
2007 May 11
0
ActiveScaffold Released
I''m happy to announce that we released ActiveScaffold 1.0 today after 8 months of hard work on the plugin. In addition to announcing our launch, I did a writeup on where the project is going next (hint: think semantic) which I''d love to have some feedback on: http://activescaffold.com/2007/5/10/activescaffold-goes-gold-1-0-released Thanks and let us know if there''s
2012 Jan 27
3
How to test the model dependence ?
Good morning, I''m new to rails and am having some basic questions in development. See if anyone can help me with a test problem. I need to test if my model "Procedure" is linked to the workflow. If not, the system must acknowledge an error. Below is the code that is in the file test \ unit \ procedure_test.rb. require ''test_helper'' class ProcedureTest <
2008 Sep 29
1
has_one :through with :source. How to alias association?
Hi to everyone, I have the following models: class Attachment < ActiveRecord::Base has_attachment :content_type => [:image, ''application/pdf''], :max_size => 3.megabytes, :path_prefix => ''../private/attachments'', :storage => :file_system, :processor => :rmagick,
2009 Mar 18
1
set_table_name woes, fragmented domain class
Hi all, I''m running Rails on top of a Mongrel cluster. I have several model classes that are going to have so many records it is not feasible to keep them all in the same table. So I''ve split out the records into many different tables, each with its own suffix which corresponds to the id of the model to which all records in that particular table belong. For example,
2007 May 19
3
form question
Suppose I have the following models/migrations: class Car < ActiveRecord::Base belongs_to :manufacturer validates_presence_of :manufacturer validates_association :manufacturer end class CreateCars < ActiveRecord::Migration def self.up create_table cars do |t| t.column :name, :string t.column :manufacturer_id, :integer end end class Manufacturer <
2009 May 21
1
How to install ActiveScaffold plugin?
I am upgrading to raills 2.3.2. I’m having problems with AjaxScaffold which has been deprecated. I am a linux novice. The web site http://activescaffold.com/ has the following command: script/plugin install git://github.com/activescaffold/active_scaffold.git I tried the above and also ruby script/plugin … Nothing happens. Any ideas?
2008 Jul 08
4
Conditional "link_to" helper function - AYUDAME POR FAVOR
Hello, I need to write a function that will return a link only if the current user is the owner. Here is my code... 1. application_helper.rb 2. 3. def link_to_if_owned(owner_id, anchor_text, where_to_go) 4. if current_user.id == owner_id # current user is owner 5. "#{link_to anchor_text, where_to_go}" 6. else 7. anchor 8. end 9. end And
2010 Aug 19
4
implementing project management and event types
I am implemented a simple project management application. Each project has various events, and each event can be a different type. Some event information is common, such as name, start date, close date, and comments. I have a projects table which has_many events. My plan is to have several sub-event tables, like event_get_access which will contain an event_id field to link it to table events as
2007 Aug 16
1
Nested REST resource routes without controller name
I am curious if the following URL pattern is appropriate to use with REST and map.resources: Let''s say I want to build a website with information about cars. I decide that there will be a page to view/manage cars by model. The route for this is easily created: map.resources :cars The URLs look great. But now I want to introduce the ability to specify cars by year. I can do this by
2011 Aug 09
0
ActiveScaffold - custom show action
Hi all, I''ve added custom show action (as an action link - I want to use default one too). Everything renders well, but I''m missing a "Close" ([x]) button. So, I copied AS'' default _show.rhtml template and edited it a bit (just added custom output and removed label). However, when I click at "Close" I get error output: You have a nil object when you