similar to: acess local variables from helper?

Displaying 20 results from an estimated 700 matches similar to: "acess local variables from helper?"

2006 May 08
17
partial problem
def my_controller @variable = [{''myfield''=>''grey''},{''myfield''=>''blue''}] end #-------------------------my_view <table> <%= render :partial=>''my_partial, :collection=>@variable %> </table> #----------------------_my_partial <tr> <td><%=
2006 Jul 20
6
replace_html + javascript
Hi all, This is my first post to the list, so I hope it gets through and I don''t do anything wrong :) Here''s the issue I''m having... I have an rjs that''s doing: page.replace_html ''myid'', :partial => ''my_partial'' And in my my_partial I have: <script type="text/javascript">
2006 Jun 22
4
rendering partials in layouts?
Hello all, Forgive me if this is a really stupid question. How do you render partials in a layout? It''s probably way easier than i believe it to be. thanks! -- Posted via http://www.ruby-forum.com/.
2006 Apr 08
7
text_field and arrays
Hi, I''m trying to do a bulk update on an array with the helper text_field. I''m trying to create an inputfield for every object in the array, but I''m not getting it right... example: class ClassA @arrayB[] end HTML (code with error): <% 0.upto(9) do |index| %> <%= text_field ''ClassA'', ''arrayB[index]'' %> non
2006 Jul 13
6
Render partial questions
Hello, what is the preferred way to do this... I have 2 controllers. Each has an index action. Now I want to include the rendered index view from TwoController in the index view of OneController. But a render :partial doesn''t execute the TwoController index action which sets variables for its index view. So maybe you can give me a short example how to do it. Thank you Markus
2006 Jul 17
3
trouble with render :partial from controller
Hi, I''m definitely a newbie on rails here. My very first attempt has gone well up until this point, but for some reason, when I try to do a render partial, I''m getting a full screen refresh. I did a render partial just fine from an rhtml file. This problem is specifically when calling render :partial => "my_partial" from the controller''s .rb code.
2006 May 25
16
yet another rails site - happycarpools.com
I''m pretty much done with a project I''ve been developing to learn Rails, http://www.happycarpools.com . If you could take a look, that''d be awesome! Feedback would be even more awesome! Probably the coolest thing about making this has been seeing how Rails does *so much* and hardly has any superfluous parts, if any. There are so many features that I initially
2008 Feb 29
0
RJS and EXTjs component update (RAILS 1.2.3)
I want to use an RJS view to update EXT Panel bodies. But since the panel bodies have generated element ids, I can''t see how to use ''page.replace_html''. So instead I wrote a javascript function ''updateBody''. In the RJS view, I want to say something like: page.call ''updateBody'', ''some_panel'', :partial =>
2007 Mar 25
1
how can one get a remote acess command prompt on install cd via drac to eject ?
Is there a way to get to get past the cga type centos 4 install screen where it says To begin testing the cd media etc etc...... and shows the OK or SKIP selections... ...and get to a "text shell command prompt" and *eject* the cd so I can reboot the machine from remote??? I have a remote console drac connection, yet for once we sent the hired guns home for the weekend and I am a
2018 Dec 07
1
ZachVargas Requesting edit acess for "HowTos/I_need_the_Kernel_Source"
Username: ZachVargas Proposed subject of changes: #1 Update required packages for building CentOS-7 kernel sources. Add python-docutils (required for building sources for CentOS 7.6) to list of required packages and to 'yum install' directions. #2 Create personal wiki page at https://wiki.centos.org/ZachVargas Proposed location: #1
2011 Jun 07
1
daemon user can't acess file while nobody user can.
I have a server where /home is on a nfs. I installed an apache (my compile) server. By default, it runs as daemon. That user can't acces files in /home/*/public_html, while the nobody user can. So if I change my apache config, it now can. /home is : drwxr-xr-x /home/user is : drwxr-xr-x /home/user/public_html is : drwxr-xr-x selinux is disabled. In the error log of apache I get :
2007 Dec 14
2
unauthorized acess attempt
Hello list I'm facing a little security problem I get A LOT (3 a minute) a such a message mail dovecot-auth: pam_winbind(dovecot): request failed: No such user, PAM error was unknown user (13), NT error was NT_STATUS_NO_SUCH_USER I'd like to know which is the user name used in such attempts How can I get such info without raising log level to an inacceptable level (which would
2000 May 13
0
User can't acess shares
I have one user on my network who cannot access samba shares on one of our servers. We have two machines running RH 6.0 (Kernel 2.2.5-15) and Samba 2.0.3. The user in question can access shares on one machine but not the other. The user has the same unix and samba password on both machines. Both machines are set up to use encrypted passwords. The user logs in from a win98 machine. Other users,
2013 Jan 08
4
wiping out data on a disk (no physical acess to the machine)
Hi, I need to securely wipe out a disk on a remote machine, but I don't have access to that machine. Therefore I cannot use the LiveCD+shred (or dd) combination. Besides manually shreding known data files, I am wondering if there is a (free) tool that can be used in my case. Thanks.
2009 Apr 28
0
google adsense breaks render :partial =>
Hey everybody, i''ve got a control that returns a partial, no biggie. Except when that partial contains the javascript for my adsense account. Then the partial renders correctly, and then quickly replaces my page with nothing by the ad. When i take away my adsense js, everything works great. Has anyone encountered this before, or know how to get around it? def submit_remote_form render
2006 Nov 22
0
RES: Acess windows 2003 to samba 3.0.10
Hi Neo I installed the samba 3.0.23.d, because I thought that it is a """""stable version""""", but the problem continued. Same error, same problem: "smbd/sesssetup.c:setup_new_vc_session() setup_new_vc_session: New VC == 0, if NT4.x compatible we would ". I tried to use your command: "/usr/local/samba/sbin/smbd -V Version 2.2.08a
2006 May 31
3
Should partials have access to the same var''s as the view?
I have a view, part of it I put in to a partial - a copy paste - but now I get an error saying that there is an "undefined local variable or method" in the partial code... Do I need to pass my var to the partial, I would have though not? Cheers AFM -- Posted via http://www.ruby-forum.com/.
2008 Jul 22
1
Acess from windows to share get closed..
I'm using FC8 Server with Samba 3.0.30-fc8 and have an erratic problem assecing the share. I have a Share that every one can acess and I use the nobody user to acess everithing without any problem, and from time to time when user tries to acess a file the share gets closed, than we have to resart the machine and it goes wel again. the log for one user is below why does it closes the
2006 Apr 15
2
Can''t run MySQL queries
Hi everyone, I''m having trouble actually running mysql queries. I can connect to the database, I think, but when a query gets run the following shows up in my log: SQL (0.000000) Mysql::Error: Lost connection to MySQL server during query: SHOW TABLES Any suggestions? Thanks! Daniel Higginbotham
2006 May 18
4
time select with am/pm?
Hi everyone, Is there a time select helper which uses a 12 hour clock rather than a 24 hour one? Also, does anyone know if :discard_year actually works in datetime_select now, or how I could find this out? Thanks! Daniel