Displaying 20 results from an estimated 40000 matches similar to: "How to create a custom time select form element?"
2011 Mar 14
2
how to create a form using ruby on rails
*since i''m totally new to this technology , im facing lots
of difficulties here.*
*
*
*i want to create a form with few fields which shud be connected to mysql
database using ruby on rails. can anyone help me with this difficulty?*
*
*
*thanks..*
*
*
*regards *
*
*
*mandrekar salim*
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2012 Jan 18
4
Adding a custom select to omniauth register form
Hi,
I''m creating a rails app using omniauth 1.0.1 on Rails 3.1.3 and ruby
1.9.2
I''m having trouble adding a select field that populates from a class
constant in my user model.
Here''s my model:
class User < ActiveRecord::Base
ROLES = ["Customer","Service Supplier"]
has_many :leads
validates_presence_of :role
def
2012 May 10
1
getting started with jQuery rails 3.2
Hi all,
I''m trying to work out how to get started using some jQuery in my rails
app.
rails -v = 3.2.2
ruby -v = 1.9.3-p194
I''m only sporadically a web-developer, and still quite inexperienced
with jQuery especially, so I may be making an obvious mistake.
Essentially, I''ve done very little after creating a new app, I''ve learnt
that jQuery is included by
2011 Nov 15
3
create e menu for navigation.
Do you know if there is a gem for creating menu navigations?
I''ve tried simple_navigation but it''s too simple.
I like menu navigation of active_admin gem but I don''t know how to create it.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Aug 29
1
jquery datepicker not working with nested forms rails 3
Hi people
I have a problem with the Jquery "Datepicker".
If I use datepicker in a simple-form, I have no problem... but I need
to use it in a nested form that add fields dynamically, and everytime
I add new fields I have a field that needs to use datepicker.
I''ve reading the web, and many people have the same problem, but
nobody get a solution for this issue
Could you help
2010 Dec 14
4
Custom form error messages
Hi,
What do I have to override in order to be able to have the error message
of each field in front of the input field?
I haven''t been able to find anything similar on google. All I''ve found
is how to override the container around the input field.
ActionView::Base.field_error_proc = Proc.new { |html_tag, instance|
"<span
2010 Jun 23
3
Custom default form builder in Rails 3
Hello everyone,
I am trying to set a default custom form builder.
I have defined my form builder class in "lib/mymodule/mybuilder.rb"
as:
module Mymodule
class Mybuilder < ActionView::Helpers::FormBuilder
......
end
end
Then I am trying to use this custom class in application.rb as
config.action_view.default_form_builder = Mymodule::Mybuilder. But I
get "Uninitialized
2011 Jul 05
9
How to implement a schedule of recurring events?
Hello,
I am fairly new to Ruby and Ruby on Rails. I am creating an
application that "has many :groups", each with their own schedule of
events. This is a little different than a calendar of events, since
these events recur every week and do not have a specific date. So for
example, I need to display a schedule for one group that looks like
this:
Group A''s Activities
- Monday
2011 Jan 10
8
Creating a Dynamic/Custom form
I am pretty new at rails and seem to be stuck on an issue.
Trying to find a way to get me app admin to create a form on our rails
app. These would include:
- Select form control type
- Select required validation
- Select price change if selected
How should I even start going at this?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2010 May 19
1
Cannot have both select and radio_button together on the same form
Hello, I''m new to Ruby on Rails.
I am creating a form for searching purpose:
<% form_for :src_cond,
:url => {:action =>''search''} do |p| %>
<%= p.radio_button("bd", "1") %> a
<%= p.radio_button("bd", "2") %> b
<%= p.select :bd2, %w[1 2 3 4],{},{:index=>nil} %>
<%=
2010 Apr 14
1
Rails does not display form error message on a custom method
Hi all,
I''ve created a custom method called checkout in my app. I create an
order (which is done my adding products to my "cart"), assign it to my
client, and then I head to my checkout screen where I confirm the items
and enter their customer order number and complete the order (submit).
Everything works great except that it doesn''t display error messages.
2011 Dec 19
2
Jquery Modal Dialog with Jquery DatePicker field strange behavior
Hi people.
I need your help here, please.
I have a rails 3.0.9 app, and I''m using Ajax to save some records to
the database. To achieve this, I use a jquery modal form, but one of
the fields is a datepicker, and if I click on it to display the
calendar it doesn''t work.
The thing is, I press submit without fill all the fields, so, my
custom validations were shown, telling me
2012 Mar 05
8
Create a select with HABM
Hello, I have two tables with association HABM, projects and users, and
in projects I want to show all users that was associated to the project.
I have try with this:
<%= select( "user", "id", Project.all.collect { |p| [ p.name, p.id ] } )
%>
But only show all my projects, but Iz don''t know who show only the user
in a determinated project.
class Project <
2010 Apr 09
2
dynamically linking to ajax.googleapis jquery
Hi
I am using jquery and jqueryui in my application And in layout I use
<%= javascript_include_tag
"http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"%>
<%= javascript_include_tag
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" %>
<%= stylesheet_link_tag
2011 May 21
2
How do you create a sub-layout or a partial that wraps a lot of custom html?
Basically I''d like to create a layout inside of a layout using erb.
Something like this:
<%= render :partial => ''support'' do %>
<div id="helpDocumentView">
<h3><%= @help_document.question %></h3>
<%= @help_document.content %>
<div id="helpDocumentHelpful" data-help-document-id="<%=
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi,
i am using rails 3.0.10
i am trying with sample application for searching data from table and
updating
my search.html.erb file is
<%= form_for (@employee) do |s|%
<div id ="search_details">
<%= s.text_field :name%>
<%= s.text_field :emp_id, :onfocus =>
''sal(document.getElementById(''employee_name'').value);''%>
2011 Mar 15
6
creating login form using netbeans
can any one tell the the procedure to create the login form for the project
using netbeans or any IDE?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Mar 09
9
Ajax-submit form on "check box onclick ": why this error?
Hi there,
I need to have a checkbox which ajax-submits a form.
The following code throws an error "index 112009 out of string". What''s
wrong here?
==============================================
<% form_remote_tag :url => { whatever_url } do -%>
<%= check_box_tag ''whatever'', nil, whatever, { :onclick =>
2011 May 15
3
Rails 3 and saving decimal values from a form
I have an odd bug in one of my applications. When I am using the
sqlite3 database the bug is not present. However when I use mysql2 as
the database adapter I run into an error saving decimal values from a
form. If I submit the value 19.99 my input after the decimal is
removed and it is stored in the database as 19.00
What would cause this? The database has the correct settings for the
column and
2010 Mar 16
4
Get content from HTML element in Rails
Hey,
I''m looking for a way to get the content of my div in my Rails view. I
would like the literal HTML content, so only HTML and no Rails
I thought inner_html would work, but I get a RJS exception (TypeError:
$("content").innerHtml is not a function)
Does anyone know how I can get the content? Thanks!
In my controller I use this code:
[code]
def save_test
render :update