Displaying 20 results from an estimated 20000 matches similar to: "Nested form, perhaps?"
2012 Mar 05
6
Mail statistics
maybe this forum is not the ideal place for this question, but does
anyone know how to track email statistics? such as clicks, delete,
spam report.
--
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
2012 Mar 27
4
render :js => "window.close();" wont work
when i try to do the following in a action
render :js => "window.close();" wont work
it still response in the browser,but the window wont close.
i dont know why.thx!
--
*愿爱与喜悦心与你同在!
石岩敬上
大连东软信息学院 计算机系软件工程应用方向
Dalian NEUSOFT Institute of Information
中国-大连市软件园路8号
邮编:116023
**Mail:hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org*
2010 Sep 16
6
acts_as_solr plugin fate?
Just wanted to see if I was using the latest acts_as_solr plugin, but
the URL <http://acts_as_solr.railsfreaks.com/> takes me to a GoDaddy
domain parking page.
Anyone know what''s happened to railsfreaks, and more particularly
this plugin?
--
Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
twitter: @hassan
--
You received this
2012 Aug 25
12
index.html in rails-app/public
Hello All,
I have created a rails application on hosrtmonster and created
symbolic link of app''s public folder. Now default link is to
index.html of rails-app/public folder.
I want to set another page as homepage. I also set root in routes.rb
file but its not working, also remove default index.html from public
folder.
Can anyone tell me how to add link
2011 Dec 17
7
How does bundler know whether Gemfile has changed?
I am trying to understand how bundler works. Looking at the manual [1] it says
"If a Gemfile.lock does exist, and you have not updated your
Gemfile(5), bundler will fetch all remote sources, but use the
dependencies specified in the Gemfile.lock instead of resolving
dependencies."
The question is how does it know whether Gemfile has been updated? I
expected to find something in
2013 Nov 22
4
Delayed JOB ISSUE
Hi all
I am using delayed jobs to send sms I am using
"http://github.com/tobi/delayed_job/tree/master". In my other website my
delayed job is working fine. Recently I have took one new domain in the
same server which I have my other app''s which are working fine. Now the
issue is after taking new domain and running the old app with new domain
delayed job is not working
2012 Dec 08
9
link_to popup
Hello All,
I have a link. Which I want to open as a new window :-
<%= link_to "Google", "https://www.google.com", :popup =>
[''new_window_name'',''toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'']
%>
But it is opening in the same page....
Any suggestions how to do it ??
Even hover will be
2013 Oct 23
3
Rails 4 and HABTM Checkboxes: Unpermitted parameters error
I have a simple Rails 4 project with two scaffolded models: Practice and Practitioner. I have set these both as habtm and am in the process of adding checkboxes to the Practitioner form so that I can check off the practices that this practitioner belongs to. In the practitioners_controller, I added practice_ids to the practitioner_params permit list, but I am still getting the error:
Started
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 Mar 10
6
Cartographer shows correct info box BUT over wrong marker
Hi guys (and gals),
The code formatting is so nice on SO.com, so I thought I''d just share
my post in hopes that someone from the group can help.
http://stackoverflow.com/questions/9643786/cartographer-shows-correct-info-box-but-over-wrong-marker
Feel free to answer back via email if you don''t have an SO account.
Thanks!
Abram
--
You received this message because you are
2011 Feb 02
6
how to set default_scope for the whole application?
I know I can set default_scope for individual active record model, but
can I set one up for the whole application?
thanks
--
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
2007 Dec 01
3
Event.observe and normal event
Hello!
I posted in another mail that I had a problem with this code:
paths.each(
function(img, i) {
this.imglist[i] = new Image();
this.imglist[i].src = img;
Event.observe(
this.imglist[i],
''onload'',
2013 Mar 25
1
validates presence of foreign key fails in nested form
I''m using accepts_nested_attributes as follows:
class Timesheet < ActiveRecord::Base
attr_accessible :status, :user_id, :start_date, :end_date,
:activities_attributes
has_many :activities, dependent: :destroy
has_many :time_entries, through: :activities
accepts_nested_attributes_for :activities, allow_destroy: true
end
class Activity < ActiveRecord::Base
attr_accessible
2011 Aug 13
3
How to make an AJAX call to different domains in Ruby on Rails 3.0
I have an action email in my controller of application running on
www.example.com and I am trying to send the form data of email to
www.data.example.com/email where my another application receives the request
and I am able to save the data in js format. But I want to send back the
acknowledgement to www.example.com and replace the html using rjs template.
Here are some code for you reference:
2012 Mar 02
3
Generating new application creates a few syntactically bad files in Rails 3.2.1
Running "rails new yourapplicationname" creates all the requisite files,
however two of them have bad syntax.
session_store.rb
is:
YourApplicationName::Application.config.session_store :cookie_store, key:
''_yourapplicationname_session''
should be:
YourApplicationName::Application.config.session_store :cookie_store, :key
=>
2012 Apr 03
4
one master table to hold symbols: good or bad idea?
(This is may be more of a db design question than a rails question.)
Summary:
I''m thinking of creating a single AR class to hold constant symbol
values and use it for :has_many_through relations whenever I need a
constant symbol. Is this a good idea or a bad idea?
Details:
I notice that I have a lot of models that contain just a name string:
create_table
2013 Jun 27
2
[HELP] RoR Fedena App Installation: Rake Gem
I''m really a newbie with RoR.
But I need to deploy this app as soon as possible.
RoR App: Fedena
RoR Ver: 1.8.7
When I type any rake commands I always encounter this problem:
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
Locally, I did find the solution for this problem by downgrading my Rake
Gem version from 0.9.2 to 0.8.7.. The problem is installing it on
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi,
I have the following code working in a rails 3 view, but it is
unfortunately not pure rails code!
<% @filter1 = "tr.show1,tr.show2" %>
<% @filter2 = "tr.show1" %>
<% @filter3 = "tr.show2" %>
<form>
<p>
<input type="checkbox" value=<%=@filter1%> onclick="$
(this).is('':checked'')
2013 Mar 02
3
Help Radio button
Hi i''m fairly new to ruby on rails and i''m creating a form using
simple_form and in one bit i have radio buttons and say i have 3 buttons
a,b,c so i want it to be if a is pressed then certain text fields show, and
if b is pressed a different set of text fields show and similarly for c.
Can anyone help me on this?
--
You received this message because you are subscribed to
2012 Aug 07
4
how to do render partial on jquery ajax success method with rails 3
I''m using rails 3.2.1 with jquery for an ajax call.
My juqery code is :
jQuery.ajax({
url: "/org_pages",
data: ''org_id=''+ org_id,
type: "POST",
success: function(result){
jQuery("#image_center").html("<%=
escape_javascript(render(:partial =>