Displaying 20 results from an estimated 2000 matches similar to: "Override method in ActiveRecord"
2006 Mar 20
3
rhtml templates and syntax
Hello,
where do we need <% -%> in templates ? What is the difference between
<%= %> and it ?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 30
13
Trying Agile book, found problem
Pg. 57 of Agile asks you to create a scaffolding by typing in
ruby script/generate scaffold Product Admin
Instead of generating everything, it only gives me
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical
2006 Mar 25
2
Current controller
Hello railists,
I have a list of news headers on my index page. I would like to hide
this list if current controller is ''news''.
I put to main/index.rhtml
"<% unless @controller == "news" %> list here news headers <% end %>
. This doesn''t work.
So, the question is how to get current controller name in template ?
Thank You!
--
Posted via
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table
(add/delete rows) using Ajax. It seems simple enough but just doesn''t work
for me. I can get it to work using DIVs instead of a table, but doing the
layout with DIVs is much more cumbersome and I know it works for others with
a table (though I haven''t been able to find an exact example code anywhere).
2006 Jan 09
3
Thomas Fuchs Interview on Audible Ajax
Hi guys,
I had the pleasure of interviewing Thomas Fuchs for "Audible Ajax", and
thought that some of you may be interested to hear it:
http://ajaxian.com/archives/audible-ajax-episode-12-thomas-fuchs-of-scriptac
ulous
Cheers,
Dion Almaer
Founder, Ajaxian.com
http://ajaxian.com
Cleaning up the web with Ajax
2003 May 05
5
Rpcclient - setdriver.
I have done one succesful driver for downloading to my windows 2000-client.
When i try set another with "setdriver " I get a result as : SetPrinter call failed!
The only differens between them is in the desritption-field
flags:[0x800000]
name:[\\localhost\HP4600]
description:[\\localhost\HP4600,HP4600,H4600]
comment:[H4600]
flags:[0x800000]
2018 Sep 29
3
Authenticate users using their firstname
Hi,
I'm setting up a Postfic and Dovecot with LDAP email server. My users in LDAP is like this:
dn: uid=firstname,ou=People,dc=domain,dc=com
uid: firstname
uidNumber: 4025
gidNumber: 4025
givenName: firstname
objectClass: top
objectClass: person
objectClass: posixAccount
objectClass: shadowAccount
objectClass: organizationalPerson
objectClass:
2018 Oct 01
2
Authenticate users using their firstname
> On 01 October 2018 at 15:19 Steffen Kaiser <skdovecot at inf.h-brs.de> wrote:
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, 29 Sep 2018, Fady AL HAYALI wrote:
>
> > I'm setting up a Postfic and Dovecot with LDAP email server. My users in LDAP is like this:
> >
> > dn: uid=firstname,ou=People,dc=domain,dc=com
> >
2014 Oct 24
1
Changing user account passwords using smbpasswd after password expiration
Hello,
I?m currently having a problem where a non-root user can?t change his/her own
password using smbpasswd command after the password expiration and would
like to know how I could solve this problem.
Currently, I have a samba server running on CentOS 6.5 with its passdb backend
configured to another LDAP server. The samba version I?m currently using is
samba-3.6.9-169 which should be the
2018 Oct 01
1
Authenticate users using their firstname
On Mon, Oct 01, 2018 at 11:25:48PM +0200, Admin wrote:
>
>
> Von unterwegs gesendet
>
> > Am 01.10.2018 um 18:27 schrieb Aki Tuomi <aki.tuomi at open-xchange.com>:
> >
> >
> >> On 01 October 2018 at 15:19 Steffen Kaiser <skdovecot at inf.h-brs.de> wrote:
> >>
> >>
> >> -----BEGIN PGP SIGNED MESSAGE-----
>
2005 Dec 20
6
Database Query on the fly Using Forms
I am a freshman when it comes to RoR, and I haven''t been able to figure
this out. I need to figure out how to query records in my database using
form check boxes (or radio buttons) then display them in that same
instance. What would this look?
I have been told that just putting a question mark after here,
:conditions => field = ?, but what would the argument look like?
Thanks in
2006 Jul 11
4
add method parameter for form helper
Hello,
Most of the form helpers are build using Object / Method without the
possibility of using a method parameter (as I know ...)
text_field(object_name, method, options = {})
how do you solve this problem ?
-> (I did my own helper and generate the html ... well I think there is
a better way;-)
-> do I have to overide text_field(object_name, method, parameters {},
options = {})
2006 Mar 02
3
Custom SQL Question
Hello,
can search with following SQL Statement:
def execute_search
@result = Search.find_by_sql ["SELECT * FROM customers WHERE
firstname LIKE ? LIMIT 10",params[:firstname]]
render :template => "search/resultlist", :layout => false
end
My question is, how do I use 2 or more Parameters - and with the "%"? (I
Like to use SQL-Statements because
2009 Aug 25
5
uninitialized constant
API-> hello_message_api.rb.
class HelloMessageApi < ActionWebService::API::Base
api_method :hello_message, :expects => [{:firstname=>:string},
{:lastname=>:string}], :returns => [:string]
end
controller ->
class HelloMessageController < ApplicationController
web_service_api HelloMessageApi
web_service_dispatching_mode :direct
wsdl_service_name
2006 Jul 26
2
Question about Recipe 52
I''m reading Rails Recipes, for the precision the recipe 52 that speak
about ''Making your own Rails plugin''. The question, so stupid, is that i
don''t understand wath do the code
def self.search(query, fields, options = {})
find :all,
options.merge(:conditions => [[fields].flatten.map { |f|
"LOWER(#{f}) LIKE :query"}.join(''
2006 Jan 09
2
catch id from form and copy between objects
Hi all,
Not completely sure what I''m doing, but I need to get data from another table
based on and id. Below is some breakpointer output:
irb> @params
=> {"project"=>{"project_description"=>"point2", "project_name"=>"break2"},
"action"=>"create_project",
2004 Oct 23
1
login with alias
Hi all,
i'm setting up mail server and here is the question:
if, for example "firstname.lastname at domain.com" is e-mail address, then
how can i setup login as "firstname.lastname" and "password" not only
"firstname".
Of course, users want all things simple. But i don't want to use login
names longer than 8 chars.
Any ideas? Or should i try
2015 Jan 19
1
dsadd doesn't work correct
Hi together,
I installed samba 4 on a server with Debian-Wheezy-OS. Everything seems
to work fine. I can add a user with RSAT. The user is added to the AD,
the profile is stored in the server-profile-path and homepath can be
accessed.
I have to import about 400 datasets to the AD. Therefore I want to use
the commandlinetool dsadd. With this tool I can import datasets, which I
can see with RSAT.
2012 May 07
1
Sprockets, JST, Eco and escaping
While it was a good move from Rails part to escape ERB <%= %> tags by
default, it doesn''t seem to happen to Sprockets as well.
The strange bit is that according to Sprockets documentation, it would
be just a matter of naming your template as .jst.eco to enable Eco:
https://github.com/sstephenson/sprockets#javascript-templating-with-ejs-and-eco
Then, extracted from Eco
2009 Nov 20
1
Licenses GPL and LGPL
Hello,
I am new to Cortado and I am very interested in playing video in some of my Java applets using the Theora decoder. I would like to write a LGPL library to use the decoders in Processing (see processing.org).
I prefer LGPL over GPL because it allows a wider usage of the library. The core libraries of Processing are released under LGPL as well.
I would like to use com.fluendo.plugin and