similar to: Non model question in a model form

Displaying 20 results from an estimated 20000 matches similar to: "Non model question in a model form"

2014 May 14
0
Modelling multiple types of users with Devise and Rails 4
I have 3 types of "users" Shop Provider Customer The last 2 users will have similar attributes such as First Name Last Name and so on And the Shop user type will have the most contrast between types. As far as behaviours they will all be quite different, although Provider and Shop will inherent many of customer behaviours. It seems the behaviours can be dealt with CanCan as
2006 Aug 12
0
Form Validation with non-model fields
I have a couple of questions. I''m learning Ruby at the same time as Rails, so please forgive me if this is trivial. But when I get non-model related params back from the form, is there a quick and easy way to extract those into local varialbes? i.e. if params has keys fname and lname, to have them extracted into local variables called fname and lname without resorting to: fname =
2006 May 15
0
Using rails form helpers for non model objects
Here''s a very simple tutorial that I wrote for using form helpers like text_field or text_field_with_auto_complete for creating non model attribute fields. http://eugene.eggkeg.com/?p=8 -- Posted via http://www.ruby-forum.com/.
2010 Mar 23
1
Log linear model - Showing non-deviation form in glm()
Hey, Whenever I set up a log linear model using glm(Y~. , data=data, family=poisson) I get the parameters in the form of deviation from the first cell kombination. I find this to be hard to interpret when I for instance want to know if there is a difference between two factors in the first category since those parameters are not shown directly. Is there any way to get the summary() command, or
2011 May 20
3
How to handle non model data in form?
Hey, I got a form which looks like this: - form_for(@article, :html => {:multipart => true}, :url => articles_path) do |f| = errors_for(@article) .field = f.label :text %br = f.text_field :text .field = f.label :author_id %br = f.text_field :author_id .actions = f.submit But since I don''t want anyone to type in an author id I changed it
2006 Feb 15
0
WebRick Page not found on strange URL''s
Group, I noticed today that the WebRick server displays a page not found for a file named use_case_analysis,{28014615-A62F-452D-B821-30C7CAB0EC44}.html Is this bad URI syntax? I am not happy with the strange characters in the filename but unfortunately this is not my doing and I cannot change it. Probably this means I cannot use the WebRick server? Anyone experienced this before? Regards, Onno
2007 Jun 14
0
b410p
Hello, I'm trying to set up a b410p rdsi card, and I'm having problems getting it up. I followed the instruction on asteriskguru and everything seem to be fine but all leds on the card are in red. [root@rdsipbx ~]# uname -a Linux rdsipbx 2.6.15.7 #2 Tue Jun 5 16:37:07 CEST 2007 i686 i686 i386 GNU/Linux [root@rdsipbx ~]# dmesg |grep Digium HFC-multi: card manufacturer: 'Cologne Chip
2006 Jan 21
5
How do you deal with non-model property form values
I have a User ActiveRecord model that has email and password properties. I want to build a login for that has a "remember me" option. My view looks like this: <% @page_title = "Login" -%> <%= error_messages_for ''user'' %> <%= form_tag %> <table> <tr> <td align="right" width="1%"
2014 Jun 11
0
Calculating string length in a model
I'm using Ruby 2.1.1 and Rails 4.1.1, with SQLite and, respectively, Postgres. All my strings are supposed to be UTF-8 encoded. Now, assuming I create a field in my model as data:string{20} can I safely assume, that this will store up to 20 characters, even if each character happens to be 3 bytes long in UTF-8 encoding? -- Posted via http://www.ruby-forum.com/. -- You received this
2014 May 19
0
Missing production secret_key_base in rails
Hi, I have asked this question on github<https://github.com/rails/rails/issues/15175> . Senny answered me to set export SECRET_KEY_BASE =d1f4810e662acf46a33960e3aa5bd0 ************************ in your peoduction server. but I do not know how to set that. I am deploying in openshift. I also have access to SSH via putty. I have tried this command in SSH but it gives an error "Invalid
2014 Aug 27
0
Could not install Rmagick Gem in rails 4 (Ubuntu 13.04)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /home/anil/.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc... yes checking for Magick-config... no Can't install RMagick 2.13.2. Can't find Magick-config in
2014 May 08
0
Rails log for rspec tests inside of an engine
Would anybody know how to do this: http://stackoverflow.com/questions/20001361/rails-log-for-rspec-tests-inside-of-an-engine ?? thanks for the help -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2014 Apr 06
0
collection_check_boxes with has_many through: association Rails 4
I am trying to list all the categories a user can be interested in with check boxes so that a user can submit these interests through my join table. collection_radio_buttons works with a simple has_many, belongs_to association: <%= collection_radio_buttons(:listing, :category_id, Category.all, :id, :name do |b| %> <%= b.label { b.radio_button} %> <%= b.text %>
2014 Oct 23
0
Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'
Dear all, since today the puppet agent does not work anymore if it is executed by service. I prints out: Could not retrieve local facts: Could not find fact 'define_fact' If I run puppet agent -t I do not get the message. I have updated facter from 1.7.1 to 2.1 and hiera from 1.2.1 to 1.3.4 I have Linux RedHat 5 and 6 puppet 3.3.1 facter 2.1.0 hiera 1.3.4 ruby 1.8.7 Does any have an
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
Hi, I'm looking for a way to solve an error I get each times I run my functional tests. I have a Rails Engine gem (isolated), I have a JSON action with a route declared. But each times I use the method get in a test I get an ActionController::UrlGenerationError exception. Here an example of code with the problem: # config/routes.rbMyEngine::Engine.routes.draw do resources :cats, only:
2014 Mar 31
0
Unable to delete post in sample blog application
Hi All, I am new to RoR and I am writing a small blog application. I have added a Destroy / Delete link to the post index, but when I click this delete link the show action is fired. The log seems to confirm this: Started GET "/posts/2" for xxx.xxx.xxx.xxx at 2014-03-31 15:51:03 +0000 Processing by PostsController#show as HTML Parameters: {"id"=>"2"} Post
2014 Apr 17
0
RestClient::ResourceNotFound in UsersController#index
Hi, I am trying to implement Rest Api for a sample application for learning purpose. But when I try to make a "GET" request through the RestClient it is showing error as RestClient::ResourceNotFound in UsersController#index def index uri = "#{API_BASE_URL}/users.json" # specifying json format in the URl rest_resource = RestClient::Resource.new(uri, USERNAME,
2014 Apr 05
0
Datepicker FlatUI rails
Hi guys, How does one use a datepicker flatUI calendar in rails? I have been poking around for documentation, but can't seem to find any. Is there any out there? Thx! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2014 Mar 07
0
Abril Pro Ruby 2014 - The Tropical Ruby Conference
Hello everybody, On April 24th to 27th the biggest Ruby Conference on the Northeast of Brazil will be happening, Abril Pro Ruby <http://abrilproruby.com/>. We would like to invite you to be part of the event and share you experiences with great rubists from all over the world in Porto de Galinhas, very close to Recife. Speakers from everywhere are already confirmed to the event. Take a
2014 Mar 19
0
ActionView::Template::Error: end of file reached Rails 4.0.4
I have an application I'm migrating from Rails 3.2 to 4.0. On my CI environment, I'm getting "ActionView::Template::Error: end of file reached" randomly in different controller specs pointing to a view in which I have "javascript_include_tag 'application'". Has anyone seen this before? Relevant gems: rails (4.0.4) sprockets (2.11.0) sprockets-rails (2.0.1)