Displaying 20 results from an estimated 4000 matches similar to: "Archive monthly count for blog"
2006 Apr 05
8
Pass paramter via form
Hi,
I want to allow users ti search my blog. I have the following code
below to initiate the form.
<%= start_form_tag :action => ''search'', :search => search %>
<p align =center><%= text_field ''search'', ''search'',"size" =>"20" %>
<%= submit_tag ''Search'' %></p>
2006 Jul 09
5
Tip: searchable Rails api docs from within RadRails!
Just a tip for those of you using RadRails. If you install the new
rubygems 0.9.0, you can type "gem rdoc --all --ri" at the command line.
Then, open up RadRails, go to Window->Preferences->Ruby->Ri/rdoc and
change your ri path to the path to gemri (which gemri). Finally, open up
your RI Eclipse view and voila...indexed, searchable rails api docs at
your finger tips!
This
2008 Sep 23
3
Finding distinct months using find_by_sql
Hello,
I''m wondering if someone might be able to offer me a solution to the
following problem that has so far stumped me.
I''m trying to get the distinct months (and years) from a date field to
display as a list in a view. For example, there might be a number of
records stored with dates in the table ''headlines'':
name date
record1 21-09-2008
record2
2009 Dec 02
2
Extracting vectors from a matrix (err, I think) in RMySQL
I have a query which returns a data set like so:
> salaries
yearID POS pct
1 2009 RF 203
2 2009 DH 200
3 2009 1B 198
4 2009 3B 180
5 2009 LF 169
6 2009 SS 156
7 2009 CF 148
8 2009 2B 97
9 2009 C 86
10 2008 DH 234
11 2008 1B 199
12 2008 RF 197
13 2008 3B 191
14 2008 SS 180
15 2008 CF 164
16 2008 LF 156
17 2008 2B 104
18 2008
2005 Dec 28
3
Handcar on Rails
Dear Friends of Rails, I would like to make a suggestion:
There are two famous (German) projects out there: SelfHTML [1] and
SelfPHP [2], which are some kind of on- and offline (!) documentations.
They contain a nearly complete reference and some tutorials.
Is anyone interested in helping me to build something similar for Rails?
I just have some ideas (like the name and the domain: handcar.de),
2009 May 14
1
replacing default axis labels on a plot
I have 3 columns: flow, month, and monthname, where month is 1-12, and
monthname is name of month. I can't get the plot to replace the 1-12
with monthname using ticks.lab. What am I doing wrong?
plot(flow~factor(month),xlab="Month",ylab="Total Flow per Month",
ylim=c(0,55000), ticks.lab="monthname")
Thanks
Gregory A. Graves
Lead Scientist
REstoration
2020 Oct 03
1
Lahman Baseball Data Using R DBI Package
The double quotes are required by SQL if a name is not of the form
letter-followed-by-any-number-of-letters-or-numbers or if the name is a SQL
keyword like 'where' or 'select'. If you are doing this from a function,
you may as well quote all the names.
-Bill
On Fri, Oct 2, 2020 at 6:18 PM Philip <herd_dog at cox.net> wrote:
> The \?2B\? worked. Have no idea why. Can
2006 Apr 08
4
API rails
hi!
I''m a Spanish student and I''m a new reader in this list. I''d like to ask us
the next question:
is it possible to download Rails API?
thanks!
PD: I''m sorry if my english isn''t very good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Dec 03
2
Formatting of numbers on y axis
Hello all. I have the following:
plot(salaries$yearID, salaries$salary, type='n', xaxt='n', xlab='',
yaxt='n', ylab='')
axis(1, at=unique(salaries$yearID), labels=unique(salaries$yearID), lwd=.25,
tck=-0.05)
axis(2, axTicks(2), format(axTicks(2), scientific = F))
Which nicely creates the Y axis with the raw numbers, which are in the range
of .5 - 7
2020 Oct 08
0
Lahman Baseball Data Using R DBI Package
Hi Philip,
You've probably realized by now that R doesn't like column names that
start with a number. If you try to access an R-dataframe column named
2B or 3B with the familiar "$" notation, you'll get an error:
> library(DBI)
> library(RSQLite)
> con2 <- dbConnect(SQLite(), "~/R_Dir/lahmansbaseballdb.sqlite")
> Hack12Batting <-
2006 Aug 03
1
RadRails install plugin problem
Hi,
I''m having a problem installing plugins in the latest version of
radrails running on windows XP.
I used the Plugin window in radrails to select file_column to install
file_column and everything worked ok.
Now i want to install remote_upload plugin which isnt in the plugins
list contained in radrails. So i select plugin from the generators tab
and type remote_upload and hit
2006 Feb 15
36
Rubuntu Live CD for Rails
Friends-
I am almost finished with a custom live cd called Rubuntu ;-) This
is an ubuntu live cd variant that comes preloaded with ruby and rails
developers in mind. I already have it working with all the basics but
I was wondering what extras people would like to see on this distro.
What editors with what configurations?
What other tools do people really like for rails development on a
2020 Oct 08
1
Lahman Baseball Data Using R DBI Package
This is really a feature of SQL, not R. SQL requires that you double quote
column names that start with numbers, include spaces, etc., or that are SQL
key words. E.g.,
> d <- data.frame(Order=c("sit","stay","heel"),
Where=c("here","there","there"), From=c("me","me","you"))
>
2020 Oct 02
3
Lahman Baseball Data Using R DBI Package
I?m trying to pull data from one table (batting) in the Lahman Baseball database. Notice X2B for doubles and X3B for triples ? fourth and fifth from the right.
The dbGetQuery function runs fine when I leave there two out but I get error messages (in red) when I include 2B/3B or X2B/X3B.
Can anyone give me some direction?
Thanks,
Philip Heinrich
2006 Jan 11
4
what is that IDE in the blog screencast?
Hi there,
I know it''s not a very construtive question but...=/
what is that IDE in the blog screencast at rubyonrails.com?
I couldn''t yet find a very good IDE for Ruby and I really liked that
one! =)
Thank you...
--
Posted via http://www.ruby-forum.com/.
2006 Feb 23
2
Working with lists with numerical names
Greetings!
I'm have a hard time working with some data I imported from a baseball
database. Several of the database columns have numbers in them (2B,
3B), and when I try to use these vectors from the data frame, I get
syntax errors, probably because it's interpreting the name as a number:
> show(batting2005)
playerID yearID stint teamID lgID G AB R H 2B 3B HR RBI SB CS BB
2006 Apr 07
3
Ajax render a template
In my blog a user can add comments. I want an Ajax call to add the
comment to the bottom of the comments list.
How to i return a comment thats is in the comment template and add it to
the bottom of the page. I have gotten as far as rendering some text
back to the form and the comment doesn''t display until i refresh.
This is my _newcomment.rhtml form to create a new comment
<div
2006 Apr 01
10
You have a nil object when you didn''t expect it!
Hi,
I am creating a blog to learn ruby on rails.
I have 2 different views/models/controllers, 1 called post and 1 called
comments. How do i link a post from the views/post directory to the
comments that belong to the post in the views/comment directory.
This is the code in the post/show.rhtml
<%= render :partial => "post", :object => @post %>
<%= link_to
2006 Aug 04
8
Unable to follow basic RoR tutorial (Win32)
I have just set up RoR to find out for myself if this tool is stable
enough to actually be used yet.
Anyhow, I started by going to the RubyOnRails website and following the
instructions to install the platform on my Windows 2000 PC.
"Get Ruby on Rails in no time"
"We recommend Ruby 1.8.4 for use with Rails."
So... I downloaded 1.8.4 and installed:
C:\>ruby -v
ruby
2006 Mar 30
13
need an Ruby on Rails IDE
Hello everybody,
I''m a new member on Ruby on Rails.
I''m friendly on using Microsoft Visual Studio (VS) IDE.
The VS IDE supports for Intellisense coding (that mean it will
automatically display a list of member variables or functions for a
class, struct, union, or namespace; the names and types of parameters
required by a function or attribute; and the complete declaration for