Displaying 20 results from an estimated 6000 matches similar to: "ruby on rails book, fundamental question"
2006 Mar 07
10
Star Rating Component?
Hi,
I''m looking for a star rating component for RoR, a bit like Votio
(http://redalt.com/downloads/ - find the votio heading) or the star
rating used on Amazon.
I don''t really need the AJAX capabilities, just the ability to bind the
results to a hidden drop down, or radio inputs.
Multiple raters per page is also an issue.
Any recomendations?
--
Posted via
2006 May 23
3
Pagination problem
hi everybody,
i am new to rails..
plz clear my doubt...
this is my question
In my table(public_topics), i have 11 rows of data..
whenever i run the following view, it shows the entire rows in the
current page..
and i have set the '':per_page'' option to ''2''.so it must show two data
per page..but it shows all the rows in a single page..and this case
continue
2006 Apr 17
4
Best place for generic utility classes?
I have some code that is simply formatting and parsing URLs and I really
don''t want to associate it with a view or a controller or a model - I
just want it to be available as a utility class.
Where should this utility class go?
I would have to import it into my controller using "require" correct?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Feb 19
3
Rails urls & the AWD book
Greetings!
I''m having a hard time understanding the way Rails handles urls. I''m specifically having real trouble with the image_urls in the Depot app in the Agile Web Development book.
If I enter "\image\file.png" in the Add Product page, the image is displayed in the other views and Properties shows http://localhost:3000/images/file.png
If I leave off the leading
2006 Sep 07
4
Install config: lighttpd dead but pid file exists
I''m trying to run rails on RHED (centos 4) by following this tutorial:
http://wiki.rubyonrails.org/rails/pages/RailsOnRHEL
and something is gone a bit astray during the install process that is
not allowing lighttpd \ apache to run rails on the web.
Since i''m running Centos, I should mention I''m NOT running SELinux.
As it is, i''m at a total loss as to why
2009 Oct 15
3
populating an array
Hi,
Can someone please give me a pointer as to how I can set values of an array?
Why does the code below not work?
my_array <- array(dim=c(2,2))
my_array[][] = 0
my_array
[,1] [,2]
[1,] 0 0
[2,] 0 0
for(i in seq(1,2,by=1)){
for(j in seq(1,2,by=1)){
my_array[i][j] = 5
}
}
Warning messages:
1: In my_array[i][j] = 5 :
number of items to replace is not a multiple of
2007 Aug 10
2
available.packages (PR#9841)
Full_Name: Zivan Karaman
Version: 2.5.1
OS: Windows XP SP2
Submission from: (NULL) (195.6.68.214)
I think that I have encountered a bug in the function "available.packages" when
using a local repository (file://
) on Windows.
Version information:
platform i386-pc-mingw32
arch i386
os mingw32
system
2006 Jan 15
1
[LLVMdev] A question about alias analysis
Oh, your meaning is pointers in a aliasset have equal address logically?
But I think that two pointers are alias means they point to a same
memory object, so if pointers "p" and "q" are alias, it seem as p = q,
not &p = &q.
Another question is about "forwarding".
"AliasSet[XXXX, 0] may alias, Mod/Ref forwarding to YYYY" (XXXX != YYYY)
means the
2007 Mar 19
3
R4.1: seq.POSIXt, tz="AEST" (PR#9572)
Times from seq.POSIXt come out wrong in AEST timezone around Feb 29 every
leap year before 1970 (on Windows XP).
According to help(DateTimeClasses), this is handled by "our own C code".
> x <- as.POSIXct("1968-02-27") # tz="AEST"
> x.gmt <- as.POSIXct("1968-02-27", tz="GMT")
> data.frame(
GMT=seq(x.gmt, by="day",
2002 Apr 25
2
ssh-rand-helper probs
Hi all
Am i doing this right? Is this the right list to post to? If not, a
quick lesson in ettiquette for me would not hurt. As I am both just
starting to use newsgroups and SSH, I am not entirely familiar with the
processes. I have a question about ssh-rand-helper. First an outline: I
am currently using the SSH packages for Solaris 2.8 available at
sunfreeware.com. The environment is
2006 Apr 10
9
Pagination with letter (A B C D ... Z)
Hi there,
Is there a neat and easy way to implement pagination with letters
rather than numbers eg :
A B C D ... Z
Rob
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here..
I have a form where users can write a city name (used with
auto_complete) - and once they click on the desired city in the dropdown
menu - I would like to have the Country field filled automatically as
well...
Is this possible at all ?
If so, can somebody please tell me where I can find some documentation
on the subject, or preferrably an example ?
Many thanks in
2017 Feb 21
1
Could not login as root or other Linux user account
Ubuntu server 16.04.2samba has upgraded from As per repository (latest version)I was configuring samba as per document from wiki "ActivedirectoryWINbindHowto"After editing the common-account and common-auth I rebooted the server.I could notlogin as root or any Linux user. Server says "Incorrect login" But I tried with all otherLinux user login which
2001 Oct 30
2
rsync not copying owner/group on some files
I am trying to use rsync 2.4.6 to try creating a backup using another
locally connected hard disk. Thing copy, but sometimes the group is eith
numeric (valid). Often the owner is not even shown.
This is the command I use for rsync:
rsync-2.4.6/rsync -arxlHpogDt /usr/ /backup/usr/ --delete
I login as root.
Any help would be appreciated.
--
Ian Kettleborough
ian@idk.com
2007 Jan 29
6
RJS problem
Hi,
I''m implementing a "digg-like" page, that once you digg. The score for
each item will dynamically reflect your current action +1 .
I am not sure what''s
In the controller I have an action responsible for increase of the
score.It has a corresponding rjs in view.
--------------------------------------------------------------------------------
def arouse
2005 Nov 08
6
Running Xen 3.0, guest OS does not open a window
Dear Xen community,
I have Xen 3.0 installed on RedHat Linux Enterprise RHEL4U2. "xend
install" runs fine with no error messages.
However, when I start "xm cr guest-vmx.conf" I do not get any new window
open for the new guest OS. "xm list" shows that the vmx has started and
seems to be working fine (just for testing, when I type "xterm" an X
window
2013 Apr 02
2
Create a vector without using an external 'if statement'
Dear R-users,
suppose I have three dataframes like these
df1:
mydate min_temp
31032013 12
01042013 8
02042013 -999
df2:
mydate min_temp
31032013 10
01042013 11
02042013 14
df3:
mydate min_temp
31032013 4
01042013 3
02042013 5
where -999 means that the temperature data is not available (at the moment I cannot change it to NA because I am not the db administrator);
suppose also that oggi is
2006 Mar 29
7
Dreamhost upgraded 1.1 - app doesn''t work
Does anyone know how long it will be until Dreamhost get''s the Rails 1.1
install running correctly?
My site has been down since last night at about 7:00 pm (I think).
It''s annoying, and are a lot of others having this problem too?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2005 Dec 24
2
Common menu
Hi,
I''m releasing my first rails application and I''d like to have a common
menu in all my templates.
Do I have to include an rhtml from .rb or other rhtml ? Some sample code pls
?
Regards,
Fabian
2002 May 10
2
Help Improve the Shorewall Docs
At Tom Eastep''s request, an informal Shorewall Documentation Support =
Group (DSG) is hoping to relieve some of the writing and editing burdens =
that come with maintaining and improving the Shorewall documentation. =
The DSG welcomes and needs your suggestions and contributions about all =
aspects of the documentation, including structure, content, references, =
style, grammar --