Displaying 20 results from an estimated 700 matches similar to: "Seymore - Content Management On Rails"
2006 Oct 25
12
NameError, uninitialized constant States
I''m completely new to Ruby and Rails and could use some help resolving
an issue. I have a list method that is supposed to show the titles and
states(status) of requests, but I get an error from this piece of code:
<td><%= change.states.state %></td>
The error is:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
2006 Apr 11
12
RJS
I am trying to use RJS as shown in this tutorial :
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
However it does not seem to work. I am not getting any excpetions in
the logs. Here is what the logs say :
Parameters: {"action"=>"add", "controller"=>"homepage"}
Rendering homepage/add
The homepage/add is named add.rjs
I know
2006 Jun 27
4
RJS Form Values
Hi,
I have the following code :
<%=link_to_function("? | China", update_page{|page|
page[''tags_en''].value = "China"
page[''tags_ch''].value = "?" }) %>
This updates two text fields with the China and ?. However I want to
append the values, not replace them. So I need something like this :
2006 Jun 30
1
Apache Cache
Hi,
I have a strange problem. I have implemented fragment caching. I am
pulling my delicious links to my site. I print out to the log every time
it connects to delicious.
>From the logs I see that it is not using the cached fragment. It
connects on every page load. This is running under Apache2 (ubuntu). I
am using the default .htacess file that came with RoR.
However when I run it
2006 Mar 31
7
Recommended search library?
I''m at a point where I''d like to start adding search capability to my
app, so I thought I''d ask:
Anyone have any recommendations for a good Rails search
library/plugin/etc? There seem to be quite a few different ones out
there, but I don''t have much context on any of them.
What is the difference between using Ferret, or a SearchGenerator,
SimpleSearch,
2006 Nov 07
4
non-"table_id" foreign key
Okay folks, I''m feeling like a fool. I''m sure I''m not the first person
to run into this, but I can''t find the necessary info.
Basically I need to create two tables. The first to hold actual
content. And the second to link pairs of content records. For
example, a "persons" table and a "friends" table that pairs up two
person records.
2006 Apr 04
1
Calling a method in another controller
Hi,
I have three controllers. I have defined two controllers to goven the
site functions. However I want to have a homepage Controller. Part of
the controller will call methods from other controllers. For example it
will get the last 5 blog posts and it will get the top 5 most discussed
articles, and display it on the homepage. I will also have some
specific homepage modules being
2006 Apr 03
2
Order By Number of Comments
Hi,
I am new to Ruby on Rails, so I apologise if this has been answered
elsewhere. I have had a look through the list but I can''t seem to find
what I am trying to do.
I have implemented the standard blog and comments app from the
screencast. However I am trying to extend the functionality.
I want to be able to display a list of posts and order them by the total
number of comments
2019 Jun 25
3
Potential missed optimisation with SEH funclets
I’ve been experimenting with SEH handling in LLVM, and it seems like the unwind funclets generated by LLVM are much larger than those generated by Microsoft’s CL compiler.
I used the following code as a test:
void test() {
MyClass x;
externalFunction();
}
Compiling with CL, the unwind funclet that destroys ‘x’ is just two lines of asm:
lea rcx, QWORD PTR x$[rdx]
jmp ??1MyClass@@QEAA at XZ
2006 Oct 25
14
[SEC] Mongrel Temporary Fix For cgi.rb 99% CPU DoS Attack
This is important so please read this message very carefully.
There is a DoS for Ruby''s cgi.rb that is easily exploitable. The attack involves sending a malformed multipart MIME body in an HTTP request. The full explanation of the attack as well as how to fix it RIGHT NOW is given below.
Most of the work was done by Jeremy Kemper and Jamis Buck. They did all the work of building the
2005 Feb 20
1
Commercial Liscense for rsync
Dear All,
I am very new in open source. Please give me some ideas on the
following questions.
What is the liscense of rsync for commerical use? Do I need to pay
for commercial use? Is it still GPL?
A similar case is MySQL. It has commercial liscense for business use.
Any help will be appreciate!
Thanks!
Regards,
Fred
2023 Aug 24
4
[PATCH (set 1) 00/20] Rid W=1 warnings from GPU
On Thu, 24 Aug 2023, Jani Nikula wrote:
> On Thu, 24 Aug 2023, Lee Jones <lee at kernel.org> wrote:
> > This set is part of a larger effort attempting to clean-up W=1
> > kernel builds, which are currently overwhelmingly riddled with
> > niggly little warnings.
>
> The next question is, how do we keep it W=1 clean going forward?
My plan was to fix them all, then
2006 Jun 27
1
Static pages
I have lot of static pages in my applications (FAQs, Contacts, Privacy
etc..) What is the best way to handle (deploy) these pages in my
application. I am using Apache with fastcgi. I would like to deliver the
static pages from the apache itself.
Basically how the deployment is done? The catch is the user should be
easily navigate between the static and dynamic contents.
thanks
thila
--
2006 Aug 31
2
How to set RAILS_ENV for different directories (fcgid)
Hello!
I want to use the same application in two environments (production and
development) on the same server (apache2 with fcgid) in different
(aliased) directories.
Is there a way to specify RAILS_ENV inside my <Directory> directives? I
have the line
DefaultInitEnv RAILS_ENV production
in my httpd.conf but I want one of the directories to be development.
Setting the ENV var directly in
2006 Jul 04
11
Any CMS for Ruby on Rails..
Well i want to make a photography community site on the lines of
www.gfxartist.com , www.terminus1525.ca, www.phirebrush.com
Where the community votes for every subbmission from a artist and can
comment (like a forum)..
Now gfxartist has used probably SMARTY,php,and their own CMS.
terminus used Drupal,Gallery 2.Some one tells me that this combo is
heavy on resources and slows down sites.
2006 May 12
21
Drupal vs. Ruby on Rails
Hello all,
Maybe the $subj is a little bit weird (i.e. apples vs oranges) but it is
a situation i am facing at the moment: We are developing a small web
site which will be mostly a CMS (more or less) and my colleagues is
arguing for drupal, and i am for RoR.
Maybe i can formulate the question in a different way: when to use a CMS
(not necessarily drupal but e.g. Radiant CMS) and when to use Ruby
2005 Mar 09
10
mysql vs postgres
I''ve used mysql for quite some time now. Other than crashing when the
partition gets full, I''ve had no problems with it.
But I''ve heard great things about postgres and have seen some people
say it''s much superior to mysql.
So, with a Rails application, is there any reason why I would want to
learn/use another DB besides mysql? Any pragmatic benefits?
2018 Dec 04
4
[cfe-dev] RFC: Modernizing our use of auto
On Wed, Nov 28, 2018 at 6:25 PM Chris Lattner via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Generally no IMO, because the cases that produce optional are not obvious.
>
Just to say, +1 from me too.
>
> > * Can we use auto in c++14 lambda arguments with llvm::find_if(C,
> [](const auto& i) { ... }) for example?
> > * We need to use auto for structured
2007 Oct 18
2
www/drupal4 and www/drupal5: Multiple security vulnerabilities
The Drupal project announced several security vulnerabilities for the
4.7.x and 5.x releases of the Drupal package. These effect two current
ports: www/drupal4 and www/drupal5.
The following are the security advisories that were posted:
4.7.x:
* DRUPAL-SA-2007-024: http://drupal.org/node/184315
* DRUPAL-SA-2007-026: http://drupal.org/node/184320
* DRUPAL-SA-2007-030:
2006 Jul 06
3
Comparing two matrices [Broadcast]
It might be a bit faster to do matrix indexing:
R> tbm <- as.matrix(tb) # turn it into a character matrix
R> tmat[cbind(match(tbm[,2], rownames(tmat)), match(tbm[,1],
colnames(tmat)))] <- 1
> tmat
Apple Orange Mango Grape Star
A 1 1 1 0 0
O 1 1 0 0 0
M 0 0 1 0 0
G 0 0 0 0 0
S 1 1 1 0