Displaying 20 results from an estimated 1000 matches similar to: "Object Task at episode 74 of railscasts"
2007 Dec 31
2
episode 73 resulting in error: undefined method `stringify_keys!' for "33":String
I''m working with a similar model in Episode 73, (my scenario is
editing multiple pictures for a product using attachment_fu).
And I''m getting an error when I try the technique suggested:
./views/admin/_form.rhtml
<% for picture in product.pictures %>
<% fields_for "product[picture_attributes][]", picture do |
picture_form| %>
Title: <%=
2011 Nov 04
1
add dynamic nested attributes without nested form gem
Hello people
In my rails 3.0.9 app I''m trying to add nested attributes
dynamically, but I don''t want to use "nested form gem"
So I found this example
https://github.com/alloy/complex-form-examples/blob/a234fde4419836f277d7e340657f1d8418911d68/app/helpers/projects_helper.rb
but this code doesn''t work
module ProjectsHelper
def
2009 Dec 06
3
link_to_function or button_to_function memory usage
I have an full ajax app doing crud operations for contact info for one
section. I was using ajax calls to edit and cancel and also to add a
contact. I am implementing a button_to_function instead of doing an
ajax call to just edit/add/or cancel a contact. I am running into a
memory issue using the button_to_function or link_to_function.
I have this:
<%= link_to_function ''Edit
2009 May 27
0
Sourcetrunk : OpenSSH episode
Hi,
I've briefly reviewed your excellent software (OpenSSH) and thought I'd let
you know. The podcast aired on 27/06/2009 . You can find it on
www.sourcetrunk.com
.
If you are under the impression that your software was not reviewed like it
should and/or did not get the review that it deserved, please let me know
and I'll make adjustments and addenda in the next episode.
Since the
2010 Jul 16
3
Half Life 2 Episode 1 Audio and Fullscreen issues wine1.2rc7
I recently updated to the newest stable wine through the ppa for Ubuntu. I didn't have problems running Half Life 2 E1 before upgrading but now I have a few issues. When launching the game it's in a sort of a windowed mode and then when it goes to load the main menu it tries to go fullscreen but I can still see my dock and my top panel. If I adjust the screen resolution and set it back I
2010 Dec 28
2
Cannot install BTTF Episode 1
Hi there.
When I launch setup.exe with wine, I've got
Code:
wine: cannot find L"C:\\windows\\system32\\dxdllreg.exe"
fixme:win:DisableProcessWindowsGhosting : stub
wine: Call from 0x7ef91690 to unimplemented function MFC42.DLL.6467, aborting
wine: Call from 0x7ef91690 to unimplemented function MFC42.DLL.6467, aborting
MFC42.DLL is a .dll file which I had to download. I put it in
2006 May 12
0
Asterisk & BRI in the USA - Episode 2 "The Phantom Sales Rep"
Hey all here's an update.
I do care to thank everyone for your information on BRI interfaces
that operate in USA/NA. I know the responses are were limited, but the
selection of hardware is also limited. (Shame because BRI would fit my
needs perfectly). To continue, it's now been over 4 weeks since I last
talked to the ILEC sales rep about pricing and plans. Unfortunately
there
2011 Jul 29
1
Kickstart and CentOS 6 episode 2...
Hey,
I solved my "The installation source given by device ['sdb2'] could not be found".
Apparently ignoredisk is so strong it not only ignores the disks to be partitioned but also the disks holding the installation source...
Now I ran into:
? In interactive step cleardiskssel, can't continue
In anaconda.log I saw:
? step installtype does not exist
? step confirminstall
2017 Jan 31
1
Sieve & Public folders issue (2nd episode)
Hello Community,
Getting back to my previous post, here a a complement:
- Having enabled sieve, I can store mails and create folder under the
recipient
- Having enabled public folders, I can move mail into them using a
client (eg Thunderbird); security is therefore ok (actually I gave full
control to the user)
eg Public/Newsletters/SomeCompany
- *BUT* running a sieve script to store to
2010 Apr 12
3
$(link).previous("input[type=hidden]") is undefined
I am getting this error when trying to use the remove link explained
in the Railscast:
http://railscasts.com/episodes/197-nested-model-form-part-2
error:
$(link).previous("input[type=hidden]") is undefined
remove_fields()applic...1065175 (line 6)
function onclick(event) { remove_fields(this); return false; }()1
(line 2)
[Break on this error]
2009 May 16
1
Installing R on Ubuntu8.04; episode 3184
Thanks to everyone who has responded (esp. Michael, I greatly
appreciate but also recognize that getting R on my machine is not your
career). Your last response was (basically) uninstall, reboot, retry
Synaptic, if no good try:
judson at judson:~$ sudo wget
http://cran.r-project.org/bin/linux/ubuntu/hardy/r-base-core_2.9.0-2hardy0_i386.deb
I GOT
--15:03:02--
2006 Apr 18
2
link_to_function onmousedown
Hi,
Is there some way to produce an anchor that looks like the following
using helpers, or should I just code it in the rhtml like this?
<a href="#" onmousedown="javascript:foo(); return false">
Thanks,
Brad
--
Bradley Mazurek
2009 Sep 24
4
Action Controller ::MethodNotAllowed
Hi,
Iam getting the following error
ActionController::MethodNotAllowed
Only get, put and delete requests are allowed.
Actually, Iam trying to have multiple actions for a form to create
new record. The actions for the form are cancel, save, publish and
preview.
here''s the config/routes.rb file code snippet for the relevant
controller - Events
map.resources :events, :member =>
2007 Jun 26
3
what is the :or parameter in a submit_tag ?
I read the following tag in teh Beast example
<%= submit_tag''Login'', :or => link_to_function(''forgotten password'',
"$(''reset-password'').toggle();") %>
I understand the link_to_function, but what is this :or parameter used
for ?
the link doesn''t appear, so it cannot be used...
thanks for your lights
kad
--
2006 Jan 17
6
link_to or helper to generate a javascript:history.back() ?
Hello,
There is an link_to option or an helper that generate a link like :
<a href="javascript:history.back()">Back</a>
Thanks
2006 Jun 27
4
RJS Form Values
Hi,
I have the following code :
<%=link_to_function("? | China", update_page{|page|
page[''tags_en''].value = "China"
page[''tags_ch''].value = "?" }) %>
This updates two text fields with the China and ?. However I want to
append the values, not replace them. So I need something like this :
2010 Jul 02
2
Update multiple fields with onclick
We''ve all seen the checkout forms with Bill To: and Ship To: I''d like
to have a button that says "Ship to Bill To:" and if we click it, it
copies all the Ship To: fields across such as phone, email, etc.
I''ve been looking at link_to_function, is that the right path?
I''ve done observe_fields before but that went to a controller action
whereas here we
2007 Dec 20
3
How-to spec this helper method?...
Hey gang,
I have this dead-simple method defined in a helper:
def add_category_link(name)
link_to_function name do |page|
page.insert_html :bottom, :categories, :partial =>
''category'', :object => Category.new
end
end
Where, and mostly how, would I spec this? I haven''t been able to find
how to stub the rjs in a helper spec, so
2009 Dec 18
2
Undefined Method error - help request
Good morning All -
I am working on a time tracking application as a learning excercise
and have run into an error neither I nor Google can remedy.
When loading my view, I get an error: ''undefined method
''true_class_path'' for #<ActionView::Base:.........
Context:
I have controllers for Project, Worktrack and ''Workbench'', among
others. Workbench is
2006 May 13
2
Using RJS in views without ajax
Hi!
I can use RJS in views like this (without using ajax):
<%=link_to_function("switch fields",
update_page do |page|
page.insert_html :before, ''date'', date_select(''exhibition'', ''date'')
page.remove ''date''
end) %>
Is there a way to move this RJS code into a function to separate file?
.js files are not parsed