similar to: [newbie]how to use link_to to link to another controller?

Displaying 20 results from an estimated 200 matches similar to: "[newbie]how to use link_to to link to another controller?"

2006 Jul 07
9
Search on data accross many tables, linked by belongs_to
I am using Ferret and acts_as_ferret, as my search back-end for my Rails project. I have a question about using acts_as_ferret on a main table that is linked to other tables by foreign keys. Is there a way to include the information linked by the belongs_to keyword in the search results ? As an example, let''s say I have a main table ''posts'':
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like <a href="http://www.google.com" target="_blank" >google</a> with the link_to function ? Thanks
2006 Feb 27
2
submit_tag
How can i use the submit_tag method (from: actionView::FormTagHelper) to create various submit buttons and chose the right action in accord to the button that i pushed? -- Posted via http://www.ruby-forum.com/.
2005 Apr 09
6
Question about MAC filter
Hello! I am new to this list, so I am sory if this has already been answered. I am looking for a way to enable my notebook to have access to my home network regardles where I am. This is do-able if I have i fixed IP on some location, but if I have a dynamic IP, how can shorewall tell whic user am I so it can let me thru the firewall? I ve seen the MAC parameter in rules, but it doesnt work if
2006 Jan 16
2
ruby embedded code replacement for onclick in link?
Is there a ruby embedded code replacement for something like this? <a href="#" onclick="window.open(''http://192.168.78.12:3000/portfolio/show/<%= item.id %>'', ''test'', ''width=660, height=500,resizable=no'')"> <%= image_tag item.image_url, :size => ''200x150'' %></a> Thanks, Dan
2005 Apr 05
2
extract date
Dear all, please, is there any possibility how to extract a date from data which are like this: .... "Date: Sat, 21 Feb 04 10:25:43 GMT" "Date: 13 Feb 2004 13:54:22 -0600" "Date: Fri, 20 Feb 2004 17:00:48 +0000" "Date: Fri, 14 Jun 2002 16:22:27 -0400"
2016 Oct 01
4
(Thin)LTO llvm build
On Sat, Oct 1, 2016 at 4:40 PM, Teresa Johnson <tejohnson at google.com> wrote: > I completely forgot to add -Wl,--gc-sections. The *-sections options enables > gc-sections to work effectively. (edit: oh wait, it looks like you already have > that one on your link command, so you should be set there!) > > Unfortunately, I just can't reproduce the DSO link error you are
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I did: create table categories (name varchar(255) ); rails RJSTest cd RJSTest rake update_javascripts script/generate controller home index add script/generate model category Note: When I did a rake update_javascripts, I did not see any output. I configured database.yml to talk to mysql. Next I wrote
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All: I''m writing my 1st Rails app and I can''t seem to find the answer on the web or in the book. I''m making a table, and I want to be able to expand a filename. The code is basically as as follows below. In the last <td> entry, I want to call an action and pass in the test_results_path, which I will go and read a file and munge the data for a separate
2015 Jul 22
7
Keyboard Interactive Attack?
I read an article today about keyboard interactive auth allowing bruteforcing. I'm afraid I have minimal understanding of what keyboard-interactive really does. What does it do, and should I have my clients set it to off in sshd_config? --- Scott Neugroschl | XYPRO Technology Corporation 4100 Guardian Street | Suite 100 |Simi Valley, CA 93063 | Phone 805 583-2874|Fax 805 583-0124 |
2020 Feb 14
1
winbindd: getent passwd yields empty GECOS field
On Thu, 2020-02-13 at 15:07 -0800, Johan Hattne via samba wrote: >> Dear all; >> >> I'm trying to use winbindd to resolve names in an AD setup. I can >> authenticate just fine, but I've noticed that for some users "getent >> passwd" returns a GECOS field populated with displayName from the LDAP >> servers and for others is does not. For
2016 Oct 02
2
(Thin)LTO llvm build
On Sun, Oct 2, 2016 at 6:41 AM, Teresa Johnson <tejohnson at google.com> wrote: > > On Sat, Oct 1, 2016 at 11:43 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: > > > > On Sat, Oct 1, 2016 at 4:40 PM, Teresa Johnson <tejohnson at google.com> wrote: > > > > > I completely forgot to add -Wl,--gc-sections. The *-sections > > >
2013 Oct 07
3
Get current url
Hi friends, i need current url in rails environment file. i can get current url in conroller by the below command. request.env[''HTTP_HOST''] and now i want get current url in environment.rb file or intializer folder files Regards, Daya. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from
2005 Aug 25
4
how to use ruby debugger instead of irb from script/breakpointer
Hello - I would like to use the ruby debugger instead of irb for a breakpoint enabled by script/breakpointer in order to step through some code. How do I do that? Aaron
2007 May 22
3
CD mp3 ripping
What program do you guys use for mp3 CD ripping? I have CentOS 5.0 x86. Sound Juicer seems is missing any mp3 plug in. Thanks in advance.
2005 Aug 09
3
Adding created_by and updated_by trouble
Hi everyone. This is a real noob question that I''m hoping someone out there can help me with. I have followed the tutorial How to Ad created_by and updated_b<http://wiki.rubyonrails.com/rails/show/Howto%20Add%20created_by%20and%20updated_by>y and it works ok for retrieving the data. I''m using the Login_Generator. I cannot get it to work on create or update. I think
2006 Jun 01
3
how can i redirect a person after a login
i built my own login system, but unfortunately, i am having problems (ie, can''t really figure out how) to redirect a person back to the page he was requesting before logging in...say, as the admin i want to edit a certain message/logo, whatever, so i click on it, and i get redirected to my login page. after the admin logs in, he gets redirected to the homepage - i couldn''t
2006 Jan 12
6
link_to_image - Remove Border
Hi All, I am new to both Ruby and Rails, so please be patient with me. I am currently working on a view for a controller and I have used the following excerpt: <td><%= link_to_image "b_edit", :action => ''edit'', :id => part_prefix %></td> The image is being displayed and the link is working. However, the formatting of image rendered
2008 Mar 20
1
423 "Interval Too Brief" and expiry settings in sip.conf
Hi, I'm getting this error when registering with SIP server using Asterisk 1.4.10 and Freepbx... I'm getting this error no matter what I try to setup in sip.conf : - I'm getting confused whether options are maxexpirey=36000 or maxexpiry=36000 ? - Can I solve this with some settings in sip.conf or is this problem harder ? - I've read something about Asterisk's bug on this
2000 May 18
3
What client software do I need?
Hello everyone. I apologize in advance for a simple question yet hard to a beginner. I'm new to SAMBA - 1 1/2 days old. I'm in the process of configuring/testing SAMBA in our RISC test box. I am now stuck on TEST 5 below. TEST 5:-------run the command "nmblookup -B ACLIENT '*'"You should get the PCs IP address back. If you don't then the clientsoftware on the PC