repo
string | commit
string | message
string | diff
string |
---|---|---|---|
jaxlaw/hadoop-common
|
31c38986d2c0eca73a69778840a115e7c9f78825
|
MAPREDUCE:1196 from https://issues.apache.org/jira/secure/attachment/12424351/MAPREDUCE-1196_yhadoop20.patch
|
diff --git a/YAHOO-CHANGES.txt b/YAHOO-CHANGES.txt
index 4ff3e58..fac9f06 100644
--- a/YAHOO-CHANGES.txt
+++ b/YAHOO-CHANGES.txt
@@ -1,374 +1,379 @@
Yahoo! Distribution of Hadoop Change Log
Patches from the following Apache Jira issues have been applied
to this release in the order indicated. This is in addition to
the patches applied from issues referenced in CHANGES.txt.
+yahoo-hadoop-0.20.1-3092118005:
+
+ MAPREDUCE-1196. Fix FileOutputCommitter to use the deprecated cleanupJob
+ api correctly. (acmurthy)
+
yahoo-hadoop-0.20.1-3092118004:
HADOOP-6344. rm and rmr immediately delete files rather than sending
to trash, despite trash being enabled, if a user is over-quota. (jhoman)
MAPREDUCE-1160. Reduce verbosity of log lines in some Map/Reduce classes
to avoid filling up jobtracker logs on a busy cluster.
(Ravi Gummadi and Hong Tang via yhemanth)
HDFS-587. Add ability to run HDFS with MR test on non-default queue,
also updated junit dependendcy from junit-3.8.1 to junit-4.5 (to make
it possible to use Configured and Tool to process command line to
be able to specify a queue). Contributed by Erik Steffl.
MAPREDUCE-1158. Fix JT running maps and running reduces metrics.
(sharad)
MAPREDUCE-947. Fix bug in earlier implementation that was
causing unit tests to fail.
(Ravi Gummadi via yhemanth)
MAPREDUCE-1062. Fix MRReliabilityTest to work with retired jobs
(Contributed by Sreekanth Ramakrishnan)
MAPREDUCE-1090. Modified log statement in TaskMemoryManagerThread to
include task attempt id. (yhemanth)
MAPREDUCE-1098. Fixed the distributed-cache to not do i/o while
holding a global lock. (Amareshwari Sriramadasu via acmurthy)
MAPREDUCE-1048. Add occupied/reserved slot usage summary on
jobtracker UI. (Amareshwari Sriramadasu via sharad)
MAPREDUCE-1103. Added more metrics to Jobtracker. (sharad)
MAPREDUCE-947. Added commitJob and abortJob apis to OutputCommitter.
Enhanced FileOutputCommitter to create a _SUCCESS file for successful
jobs. (Amar Kamat & Jothi Padmanabhan via acmurthy)
MAPREDUCE-1105. Remove max limit configuration in capacity scheduler in
favor of max capacity percentage thus allowing the limit to go over
queue capacity. (Rahul Kumar Singh via yhemanth)
MAPREDUCE-1086. Setup Hadoop logging environment for tasks to point to
task related parameters. (Ravi Gummadi via yhemanth)
MAPREDUCE-739. Allow relative paths to be created inside archives.
(mahadev)
HADOOP-6097. Multiple bugs w/ Hadoop archives (mahadev)
HADOOP-6231. Allow caching of filesystem instances to be disabled on a
per-instance basis (ben slusky via mahadev)
MAPREDUCE-826. harchive doesn't use ToolRunner / harchive returns 0 even
if the job fails with exception (koji via mahadev)
HDFS-686. NullPointerException is thrown while merging edit log and
image. (hairong)
HDFS-709. Fix TestDFSShell failure due to rename bug introduced by
HDFS-677. (suresh)
HDFS-677. Rename failure when both source and destination quota exceeds
results in deletion of source. (suresh)
HADOOP-6284. Add a new parameter, HADOOP_JAVA_PLATFORM_OPTS, to
hadoop-config.sh so that it allows setting java command options for
JAVA_PLATFORM. (Koji Noguchi via szetszwo)
MAPREDUCE-732. Removed spurious log statements in the node
blacklisting logic. (Sreekanth Ramakrishnan via yhemanth)
MAPREDUCE-144. Includes dump of the process tree in task diagnostics when
a task is killed due to exceeding memory limits.
(Vinod Kumar Vavilapalli via yhemanth)
MAPREDUCE-979. Fixed JobConf APIs related to memory parameters to
return values of new configuration variables when deprecated
variables are disabled. (Sreekanth Ramakrishnan via yhemanth)
MAPREDUCE-277. Makes job history counters available on the job history
viewers. (Jothi Padmanabhan via ddas)
HADOOP-5625. Add operation duration to clienttrace. (Lei Xu
via cdouglas)
HADOOP-5222. Add offset to datanode clienttrace. (Lei Xu via cdouglas)
HADOOP-6218. Adds a feature where TFile can be split by Record
Sequence number. Contributed by Hong Tang and Raghu Angadi.
yahoo-hadoop-0.20.1-3041192001
MAPREDUCE-1088. Changed permissions on JobHistory files on local disk to
0744. Contributed by Arun C. Murthy.
HADOOP-6304. Use java.io.File.set{Readable|Writable|Executable} where
possible in RawLocalFileSystem. Contributed by Arun C. Murthy.
yahoo-hadoop-0.20.1-3041192000
MAPREDUCE-270. Fix the tasktracker to optionally send an out-of-band
heartbeat on task-completion for better job-latency. Contributed by
Arun C. Murthy
Configuration changes:
add mapreduce.tasktracker.outofband.heartbeat
MAPREDUCE-1030. Fix capacity-scheduler to assign a map and a reduce task
per-heartbeat. Contributed by Rahuk K Singh.
MAPREDUCE-1028. Fixed number of slots occupied by cleanup tasks to one
irrespective of slot size for the job. Contributed by Ravi Gummadi.
MAPREDUCE-964. Fixed start and finish times of TaskStatus to be
consistent, thereby fixing inconsistencies in metering tasks.
Contributed by Sreekanth Ramakrishnan.
HADOOP-5976. Add a new command, classpath, to the hadoop
script. Contributed by Owen O'Malley and Gary Murry
HADOOP-5784. Makes the number of heartbeats that should arrive
a second at the JobTracker configurable. Contributed by
Amareshwari Sriramadasu.
MAPREDUCE-945. Modifies MRBench and TestMapRed to use
ToolRunner so that options such as queue name can be
passed via command line. Contributed by Sreekanth Ramakrishnan.
yahoo-hadoop-0.20.0-3006291003
HADOOP:5420 Correct bug in earlier implementation
by Arun C. Murthy
HADOOP-5363 Add support for proxying connections to multiple
clusters with different versions to hdfsproxy. Contributed
by Zhiyong Zhang
HADOOP-5780. Improve per block message prited by -metaSave
in HDFS. (Raghu Angadi)
yahoo-hadoop-0.20.0-2957040010
HADOOP-6227. Fix Configuration to allow final parameters to be set
to null and prevent them from being overridden. Contributed by
Amareshwari Sriramadasu.
yahoo-hadoop-0.20.0-2957040007
MAPREDUCE-430 Added patch supplied by Amar Kamat to allow
roll forward on branch to includ externally committed
patch.
yahoo-hadoop-0.20.0-2957040006
MAPREDUCE-768. Provide an option to dump jobtracker configuration in
JSON format to standard output. Contributed by V.V.Chaitanya
yahoo-hadoop-0.20.0-2957040004
MAPREDUCE-834 Correct an issue created by merging this issue with
patch attached to external Jira.
yahoo-hadoop-0.20.0-2957040003
HADOOP-6184 Provide an API to dump Configuration in a JSON format.
Contributed by V.V.Chaitanya Krishna.
MAPREDUCE-745 Patch added for this issue to allow branch-0.20 to
merge cleanly.
yahoo-hadoop-0.20.0-2957040000
MAPREDUCE:478 Allow map and reduce jvm parameters, environment
variables and ulimit to be set separately.
MAPREDUCE:682 Removes reservations on tasktrackers which are blacklisted.
Contributed by Sreekanth Ramakrishnan.
HADOOP:5420 Support killing of process groups in LinuxTaskController
binary
HADOOP-5488 Removes the pidfile management for the Task JVM from the
framework and instead passes the PID back and forth between the
TaskTracker and the Task processes. Contributed by Ravi Gummadi.
MAPREDUCE:467 Provide ability to collect statistics about total tasks and
succeeded tasks in different time windows.
yahoo-hadoop-0.20.0.2949784002:
MAPREDUCE-817. Add a cache for retired jobs with minimal job
info and provide a way to access history file url
MAPREDUCE-814. Provide a way to configure completed job history
files to be on HDFS.
MAPREDUCE-838 Fixes a problem in the way commit of task outputs
happens. The bug was that even if commit failed, the task would be
declared as successful. Contributed by Amareshwari Sriramadasu.
yahoo-hadoop-0.20.0.2902658004:
MAPREDUCE-809 Fix job-summary logs to correctly record final status of
FAILED and KILLED jobs.
http://issues.apache.org/jira/secure/attachment/12414726/MAPREDUCE-809_0_20090728_yhadoop20.patch
MAPREDUCE-740 Log a job-summary at the end of a job, while
allowing it to be configured to use a custom appender if desired.
http://issues.apache.org/jira/secure/attachment/12413941/MAPREDUCE-740_2_20090717_yhadoop20.patch
MAPREDUCE-771 Fixes a bug which delays normal jobs in favor of
high-ram jobs.
http://issues.apache.org/jira/secure/attachment/12413990/MAPREDUCE-771-20.patch
HADOOP-5420 Support setsid based kill in LinuxTaskController.
http://issues.apache.org/jira/secure/attachment/12414735/5420-ydist.patch.txt
MAPREDUCE-733 Fixes a bug that when a task tracker is killed ,
it throws exception. Instead it should catch it and process it and
allow the rest of the flow to go through
http://issues.apache.org/jira/secure/attachment/12413015/MAPREDUCE-733-ydist.patch
MAPREDUCE-734 Fixes a bug which prevented hi ram jobs from being
removed from the scheduler queue.
http://issues.apache.org/jira/secure/attachment/12413035/MAPREDUCE-734-20.patch
MAPREDUCE-693 Fixes a bug that when a job is submitted and the
JT is restarted (before job files have been written) and the job
is killed after recovery, the conf files fail to be moved to the
"done" subdirectory.
http://issues.apache.org/jira/secure/attachment/12412823/MAPREDUCE-693-v1.2-branch-0.20.patch
MAPREDUCE-722 Fixes a bug where more slots are getting reserved
for HiRAM job tasks than required.
http://issues.apache.org/jira/secure/attachment/12412744/MAPREDUCE-722.1.txt
MAPREDUCE-683 TestJobTrackerRestart failed because of stale
filemanager cache (which was created once per jvm). This patch makes
sure that the filemanager is inited upon every JobHistory.init()
and hence upon every restart. Note that this wont happen in production
as upon a restart the new jobtracker will start in a new jvm and
hence a new cache will be created.
http://issues.apache.org/jira/secure/attachment/12412743/MAPREDUCE-683-v1.2.1-branch-0.20.patch
MAPREDUCE-709 Fixes a bug where node health check script does
not display the correct message on timeout.
http://issues.apache.org/jira/secure/attachment/12412711/mapred-709-ydist.patch
MAPREDUCE-708 Fixes a bug where node health check script does
not refresh the "reason for blacklisting".
http://issues.apache.org/jira/secure/attachment/12412706/MAPREDUCE-708-ydist.patch
MAPREDUCE-522 Rewrote TestQueueCapacities to make it simpler
and avoid timeout errors.
http://issues.apache.org/jira/secure/attachment/12412472/mapred-522-ydist.patch
MAPREDUCE-532 Provided ability in the capacity scheduler to
limit the number of slots that can be concurrently used per queue
at any given time.
http://issues.apache.org/jira/secure/attachment/12412592/MAPREDUCE-532-20.patch
MAPREDUCE-211 Provides ability to run a health check script on
the tasktracker nodes and blacklist nodes if they are unhealthy.
Contributed by Sreekanth Ramakrishnan.
http://issues.apache.org/jira/secure/attachment/12412161/mapred-211-internal.patch
MAPREDUCE-516 Remove .orig file included by mistake.
http://issues.apache.org/jira/secure/attachment/12412108/HADOOP-5964_2_20090629_yhadoop.patch
MAPREDUCE-416 Moves the history file to a "done" folder whenever
a job completes.
http://issues.apache.org/jira/secure/attachment/12411938/MAPREDUCE-416-v1.6-branch-0.20.patch
HADOOP-5980 Previously, task spawned off by LinuxTaskController
didn't get LD_LIBRARY_PATH in their environment. The tasks will now
get same LD_LIBRARY_PATH value as when spawned off by
DefaultTaskController.
http://issues.apache.org/jira/secure/attachment/12410825/hadoop-5980-v20.patch
HADOOP-5981 This issue completes the feature mentioned in
HADOOP-2838. HADOOP-2838 provided a way to set env variables in
child process. This issue provides a way to inherit tt's env variables
and append or reset it. So now X=$X:y will inherit X (if there) and
append y to it.
http://issues.apache.org/jira/secure/attachment/12410454/hadoop5981-branch-20-example.patch
HADOOP-5419 This issue is to provide an improvement on the
existing M/R framework to let users know which queues they have
access to, and for what operations. One use case for this would
that currently there is no easy way to know if the user has access
to submit jobs to a queue, until it fails with an access control
exception.
http://issues.apache.org/jira/secure/attachment/12410824/hadoop-5419-v20.2.patch
HADOOP-5420 Support setsid based kill in LinuxTaskController.
http://issues.apache.org/jira/secure/attachment/12414735/5420-ydist.patch.txt
HADOOP-5643 Added the functionality to refresh jobtrackers node
list via command line (bin/hadoop mradmin -refreshNodes). The command
should be run as the jobtracker owner (jobtracker process owner)
or from a super group (mapred.permissions.supergroup).
http://issues.apache.org/jira/secure/attachment/12410619/Fixed%2B5643-0.20-final
HADOOP-2838 Now the users can set environment variables using
mapred.child.env. They can do the following X=Y : set X to Y X=$X:Y
: Append Y to X (which should be taken from the tasktracker)
http://issues.apache.org/jira/secure/attachment/12409895/HADOOP-2838-v2.2-branch-20-example.patch
HADOOP-5818. Revert the renaming from FSNamesystem.checkSuperuserPrivilege
to checkAccess by HADOOP-5643. (Amar Kamat via szetszwo)
https://issues.apache.org/jira/secure/attachment/12409835/5818for0.20.patch
HADOOP-5801. Fixes the problem: If the hosts file is changed across restart
then it should be refreshed upon recovery so that the excluded hosts are
lost and the maps are re-executed. (Amar Kamat via ddas)
https://issues.apache.org/jira/secure/attachment/12409834/5801-0.20.patch
HADOOP-5643. HADOOP-5643. Adds a way to decommission TaskTrackers
while the JobTracker is running. (Amar Kamat via ddas)
https://issues.apache.org/jira/secure/attachment/12409833/Fixed+5643-0.20
HADOOP-5419. Provide a facility to query the Queue ACLs for the
current user. (Rahul Kumar Singh via yhemanth)
http://issues.apache.org/jira/secure/attachment/12409323/hadoop-5419-v20.patch
HADOOP-5733. Add map/reduce slot capacity and blacklisted capacity to
JobTracker metrics. (Sreekanth Ramakrishnan via cdouglas)
http://issues.apache.org/jira/secure/attachment/12409322/hadoop-5733-v20.patch
HADOOP-5738. Split "waiting_tasks" JobTracker metric into waiting maps and
waiting reduces. (Sreekanth Ramakrishnan via cdouglas)
https://issues.apache.org/jira/secure/attachment/12409321/5738-y20.patch
HADOOP-4842. Streaming now allows specifiying a command for the combiner.
(Amareshwari Sriramadasu via ddas)
http://issues.apache.org/jira/secure/attachment/12402355/patch-4842-3.txt
HADOOP-4490. Provide ability to run tasks as job owners.
(Sreekanth Ramakrishnan via yhemanth)
http://issues.apache.org/jira/secure/attachment/12409318/hadoop-4490-br20-3.patch
https://issues.apache.org/jira/secure/attachment/12410170/hadoop-4490-br20-3.2.patch
HADOOP-5442. Paginate jobhistory display and added some search
capabilities. (Amar Kamat via acmurthy)
http://issues.apache.org/jira/secure/attachment/12402301/HADOOP-5442-v1.12.patch
HADOOP-3327. Improves handling of READ_TIMEOUT during map output copying.
(Amareshwari Sriramadasu via ddas)
http://issues.apache.org/jira/secure/attachment/12399449/patch-3327-2.txt
HADOOP-5113. Fixed logcondense to remove files for usernames
beginning with characters specified in the -l option.
(Peeyush Bishnoi via yhemanth)
http://issues.apache.org/jira/secure/attachment/12409317/hadoop-5113-0.18.txt
HADOOP-2898. Provide an option to specify a port range for
Hadoop services provisioned by HOD.
(Peeyush Bishnoi via yhemanth)
http://issues.apache.org/jira/secure/attachment/12409316/hadoop-2898-0.20.txt
HADOOP-4930. Implement a Linux native executable that can be used to
launch tasks as users. (Sreekanth Ramakrishnan via yhemanth)
http://issues.apache.org/jira/secure/attachment/12409402/hadoop-4930v20.patch
diff --git a/build.xml b/build.xml
index 24412a2..2f23584 100644
--- a/build.xml
+++ b/build.xml
@@ -1,542 +1,542 @@
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="Hadoop" default="compile"
xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- Load all the default properties, and any the user wants -->
<!-- to contribute (without having to type -D or edit this file -->
<property file="${user.home}/build.properties" />
<property file="${basedir}/build.properties" />
<property name="Name" value="Yahoo! Distribution of Hadoop"/>
<property name="name" value="hadoop"/>
- <property name="version" value="0.20.1.3092118004"/>
+ <property name="version" value="0.20.1.3092118005"/>
<property name="final.name" value="${name}-${version}"/>
<property name="year" value="2009"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="core.src.dir" value="${src.dir}/core"/>
<property name="mapred.src.dir" value="${src.dir}/mapred"/>
<property name="hdfs.src.dir" value="${src.dir}/hdfs"/>
<property name="native.src.dir" value="${basedir}/src/native"/>
<property name="examples.dir" value="${basedir}/src/examples"/>
<property name="anttasks.dir" value="${basedir}/src/ant"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="conf.dir" value="${basedir}/conf"/>
<property name="contrib.dir" value="${basedir}/src/contrib"/>
<property name="docs.src" value="${basedir}/src/docs"/>
<property name="src.docs.cn" value="${basedir}/src/docs/cn"/>
<property name="changes.src" value="${docs.src}/changes"/>
<property name="c++.src" value="${basedir}/src/c++"/>
<property name="c++.utils.src" value="${c++.src}/utils"/>
<property name="c++.pipes.src" value="${c++.src}/pipes"/>
<property name="c++.examples.pipes.src" value="${examples.dir}/pipes"/>
<property name="c++.libhdfs.src" value="${c++.src}/libhdfs"/>
<property name="librecordio.src" value="${c++.src}/librecordio"/>
<property name="tools.src" value="${basedir}/src/tools"/>
<property name="xercescroot" value=""/>
<property name="build.dir" value="${basedir}/build"/>
<property name="build.classes" value="${build.dir}/classes"/>
<property name="build.src" value="${build.dir}/src"/>
<property name="build.tools" value="${build.dir}/tools"/>
<property name="build.webapps" value="${build.dir}/webapps"/>
<property name="build.examples" value="${build.dir}/examples"/>
<property name="build.anttasks" value="${build.dir}/ant"/>
<property name="build.librecordio" value="${build.dir}/librecordio"/>
<!-- convert spaces to _ so that mac os doesn't break things -->
<exec executable="sed" inputstring="${os.name}"
outputproperty="nonspace.os">
<arg value="s/ /_/g"/>
</exec>
<property name="build.platform"
value="${nonspace.os}-${os.arch}-${sun.arch.data.model}"/>
<property name="jvm.arch"
value="${sun.arch.data.model}"/>
<property name="build.native" value="${build.dir}/native/${build.platform}"/>
<property name="build.c++" value="${build.dir}/c++-build/${build.platform}"/>
<property name="build.c++.utils" value="${build.c++}/utils"/>
<property name="build.c++.pipes" value="${build.c++}/pipes"/>
<property name="build.c++.libhdfs" value="${build.c++}/libhdfs"/>
<property name="build.c++.examples.pipes"
value="${build.c++}/examples/pipes"/>
<property name="build.docs" value="${build.dir}/docs"/>
<property name="build.docs.cn" value="${build.dir}/docs/cn"/>
<property name="build.javadoc" value="${build.docs}/api"/>
<property name="build.javadoc.dev" value="${build.docs}/dev-api"/>
<property name="build.encoding" value="ISO-8859-1"/>
<property name="install.c++" value="${build.dir}/c++/${build.platform}"/>
<property name="install.c++.examples"
value="${build.dir}/c++-examples/${build.platform}"/>
<property name="test.src.dir" value="${basedir}/src/test"/>
<property name="test.lib.dir" value="${basedir}/src/test/lib"/>
<property name="test.build.dir" value="${build.dir}/test"/>
<property name="test.generated.dir" value="${test.build.dir}/src"/>
<property name="test.build.data" value="${test.build.dir}/data"/>
<property name="test.cache.data" value="${test.build.dir}/cache"/>
<property name="test.debug.data" value="${test.build.dir}/debug"/>
<property name="test.log.dir" value="${test.build.dir}/logs"/>
<property name="test.build.classes" value="${test.build.dir}/classes"/>
<property name="test.build.testjar" value="${test.build.dir}/testjar"/>
<property name="test.build.testshell" value="${test.build.dir}/testshell"/>
<property name="test.build.extraconf" value="${test.build.dir}/extraconf"/>
<property name="test.build.javadoc" value="${test.build.dir}/docs/api"/>
<property name="test.build.javadoc.dev" value="${test.build.dir}/docs/dev-api"/>
<property name="test.include" value="Test*"/>
<property name="test.classpath.id" value="test.classpath"/>
<property name="test.output" value="no"/>
<property name="test.timeout" value="900000"/>
<property name="test.junit.output.format" value="plain"/>
<property name="test.junit.fork.mode" value="perTest" />
<property name="test.junit.printsummary" value="yes" />
<property name="test.junit.haltonfailure" value="no" />
<property name="test.junit.maxmemory" value="512m" />
<property name="test.libhdfs.conf.dir" value="${c++.libhdfs.src}/tests/conf"/>
<property name="test.libhdfs.dir" value="${test.build.dir}/libhdfs"/>
<property name="librecordio.test.dir" value="${test.build.dir}/librecordio"/>
<property name="web.src.dir" value="${basedir}/src/web"/>
<property name="src.webapps" value="${basedir}/src/webapps"/>
<property name="javadoc.link.java"
value="http://java.sun.com/javase/6/docs/api/"/>
<property name="javadoc.packages" value="org.apache.hadoop.*"/>
<property name="dist.dir" value="${build.dir}/${final.name}"/>
<property name="javac.debug" value="on"/>
<property name="javac.optimize" value="on"/>
<property name="javac.deprecation" value="off"/>
<property name="javac.version" value="1.6"/>
<property name="javac.args" value=""/>
<property name="javac.args.warnings" value="-Xlint:unchecked"/>
<property name="clover.db.dir" location="${build.dir}/test/clover/db"/>
<property name="clover.report.dir" location="${build.dir}/test/clover/reports"/>
<property name="rat.reporting.classname" value="rat.Report"/>
<property name="jdiff.build.dir" value="${build.docs}/jdiff"/>
<property name="jdiff.xml.dir" value="${lib.dir}/jdiff"/>
<property name="jdiff.stable" value="0.19.2"/>
<property name="jdiff.stable.javadoc"
value="http://hadoop.apache.org/core/docs/r${jdiff.stable}/api/"/>
<property name="scratch.dir" value="${user.home}/tmp"/>
<property name="svn.cmd" value="svn"/>
<property name="grep.cmd" value="grep"/>
<property name="patch.cmd" value="patch"/>
<property name="make.cmd" value="make"/>
<!-- task-controller properties set here -->
<!-- Source directory from where configure is run and files are copied
-->
<property name="c++.task-controller.src"
value="${basedir}/src/c++/task-controller" />
<!-- directory where autoconf files + temporary files and src is
stored for compilation -->
<property name="build.c++.task-controller"
value="${build.c++}/task-controller" />
<!-- the default install dir is build directory override it using
-Dtask-controller.install.dir=$HADOOP_HOME/bin -->
<property name="task-controller.install.dir" value="${dist.dir}/bin" />
<!-- end of task-controller properties -->
<!-- IVY properteis set here -->
<property name="ivy.dir" location="ivy" />
<loadproperties srcfile="${ivy.dir}/libraries.properties"/>
<property name="ivy.jar" location="${ivy.dir}/ivy-${ivy.version}.jar"/>
<property name="ivy_repo_url" value="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar"/>
<property name="ivysettings.xml" location="${ivy.dir}/ivysettings.xml" />
<property name="ivy.org" value="org.apache.hadoop"/>
<property name="build.dir" location="build" />
<property name="dist.dir" value="${build.dir}/${final.name}"/>
<property name="build.ivy.dir" location="${build.dir}/ivy" />
<property name="build.ivy.lib.dir" location="${build.ivy.dir}/lib" />
<property name="common.ivy.lib.dir" location="${build.ivy.lib.dir}/${ant.project.name}/common"/>
<property name="build.ivy.report.dir" location="${build.ivy.dir}/report" />
<property name="build.ivy.maven.dir" location="${build.ivy.dir}/maven" />
<property name="build.ivy.maven.pom" location="${build.ivy.maven.dir}/hadoop-core-${hadoop.version}.pom" />
<property name="build.ivy.maven.jar" location="${build.ivy.maven.dir}/hadoop-core-${hadoop.version}.jar" />
<!--this is the naming policy for artifacts we want pulled down-->
<property name="ivy.artifact.retrieve.pattern" value="${ant.project.name}/[conf]/[artifact]-[revision].[ext]"/>
<!--this is how artifacts that get built are named-->
<property name="ivy.publish.pattern" value="hadoop-[revision]-core.[ext]"/>
<property name="hadoop.jar" location="${build.dir}/hadoop-${hadoop.version}-core.jar" />
<!-- jdiff.home property set -->
<property name="jdiff.home" value="${build.ivy.lib.dir}/${ant.project.name}/jdiff"/>
<property name="jdiff.jar" value="${jdiff.home}/jdiff-${jdiff.version}.jar"/>
<property name="xerces.jar" value="${jdiff.home}/xerces-${xerces.version}.jar"/>
<property name="clover.jar" location="${clover.home}/lib/clover.jar"/>
<available property="clover.present" file="${clover.jar}" />
<!-- check if clover reports should be generated -->
<condition property="clover.enabled">
<and>
<isset property="run.clover"/>
<isset property="clover.present"/>
</and>
</condition>
<!-- the normal classpath -->
<path id="classpath">
<pathelement location="${build.classes}"/>
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
<exclude name="**/excluded/" />
</fileset>
<pathelement location="${conf.dir}"/>
<path refid="ivy-common.classpath"/>
</path>
<!-- the unit test classpath: uses test.src.dir for configuration -->
<path id="test.classpath">
<pathelement location="${test.build.extraconf}"/>
<pathelement location="${test.build.classes}" />
<pathelement location="${test.src.dir}"/>
<pathelement location="${build.dir}"/>
<pathelement location="${build.examples}"/>
<pathelement location="${build.tools}"/>
<pathelement path="${clover.jar}"/>
<fileset dir="${test.lib.dir}">
<include name="**/*.jar" />
<exclude name="**/excluded/" />
</fileset>
<path refid="classpath"/>
</path>
<!-- the cluster test classpath: uses conf.dir for configuration -->
<path id="test.cluster.classpath">
<path refid="classpath"/>
<pathelement location="${test.build.classes}" />
<pathelement location="${test.src.dir}"/>
<pathelement location="${build.dir}"/>
</path>
<!-- properties dependent on the items defined above. -->
<!--<available classname="${rat.reporting.classname}" classpathref="classpath" property="rat.present" value="true"/> -->
<!-- ====================================================== -->
<!-- Macro definitions -->
<!-- ====================================================== -->
<macrodef name="macro_tar" description="Worker Macro for tar">
<attribute name="param.destfile"/>
<element name="param.listofitems"/>
<sequential>
<tar compression="gzip" longfile="gnu"
destfile="@{param.destfile}">
<param.listofitems/>
</tar>
</sequential>
</macrodef>
<!-- ====================================================== -->
<!-- Stuff needed by all targets -->
<!-- ====================================================== -->
<target name="init" depends="ivy-retrieve-common">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.tools}"/>
<mkdir dir="${build.src}"/>
<mkdir dir="${build.webapps}/task/WEB-INF"/>
<mkdir dir="${build.webapps}/job/WEB-INF"/>
<mkdir dir="${build.webapps}/hdfs/WEB-INF"/>
<mkdir dir="${build.webapps}/datanode/WEB-INF"/>
<mkdir dir="${build.webapps}/secondary/WEB-INF"/>
<mkdir dir="${build.examples}"/>
<mkdir dir="${build.anttasks}"/>
<mkdir dir="${build.dir}/c++"/>
<mkdir dir="${test.build.dir}"/>
<mkdir dir="${test.build.classes}"/>
<mkdir dir="${test.build.testjar}"/>
<mkdir dir="${test.build.testshell}"/>
<mkdir dir="${test.build.extraconf}"/>
<tempfile property="touch.temp.file" destDir="${java.io.tmpdir}"/>
<touch millis="0" file="${touch.temp.file}">
<fileset dir="${conf.dir}" includes="**/*.template"/>
<fileset dir="${contrib.dir}" includes="**/*.template"/>
</touch>
<delete file="${touch.temp.file}"/>
<!-- copy all of the jsp and static files -->
<copy todir="${build.webapps}">
<fileset dir="${src.webapps}">
<exclude name="**/*.jsp" />
</fileset>
</copy>
<copy todir="${conf.dir}" verbose="true">
<fileset dir="${conf.dir}" includes="**/*.template"/>
<mapper type="glob" from="*.template" to="*"/>
</copy>
<copy todir="${contrib.dir}" verbose="true">
<fileset dir="${contrib.dir}" includes="**/*.template"/>
<mapper type="glob" from="*.template" to="*"/>
</copy>
<exec executable="sh">
<arg line="src/saveVersion.sh ${version}"/>
</exec>
<exec executable="sh">
<arg line="src/fixFontsPath.sh ${src.docs.cn}"/>
</exec>
</target>
<!-- ====================================================== -->
<!-- Compile the Java files -->
<!-- ====================================================== -->
<target name="record-parser" depends="init" if="javacc.home">
<javacc
target="${core.src.dir}/org/apache/hadoop/record/compiler/generated/rcc.jj"
outputdirectory="${core.src.dir}/org/apache/hadoop/record/compiler/generated"
javacchome="${javacc.home}" />
</target>
<target name="compile-rcc-compiler" depends="init, record-parser">
<javac
encoding="${build.encoding}"
srcdir="${core.src.dir}"
includes="org/apache/hadoop/record/compiler/**/*.java"
destdir="${build.classes}"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<compilerarg line="${javac.args}"/>
<classpath refid="classpath"/>
</javac>
<taskdef name="recordcc" classname="org.apache.hadoop.record.compiler.ant.RccTask">
<classpath refid="classpath" />
</taskdef>
</target>
<target name="compile-core-classes" depends="init, compile-rcc-compiler">
<taskdef classname="org.apache.jasper.JspC" name="jsp-compile" >
<classpath refid="test.classpath"/>
</taskdef>
<!-- Compile Java files (excluding JSPs) checking warnings -->
<javac
encoding="${build.encoding}"
srcdir="${core.src.dir}"
includes="org/apache/hadoop/**/*.java"
destdir="${build.classes}"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<compilerarg line="${javac.args} ${javac.args.warnings}" />
<classpath refid="classpath"/>
</javac>
<copy todir="${build.classes}">
<fileset dir="${core.src.dir}" includes="**/*.properties"/>
<fileset dir="${core.src.dir}" includes="core-default.xml"/>
</copy>
</target>
<target name="compile-mapred-classes" depends="compile-core-classes">
<jsp-compile
uriroot="${src.webapps}/task"
outputdir="${build.src}"
package="org.apache.hadoop.mapred"
webxml="${build.webapps}/task/WEB-INF/web.xml">
</jsp-compile>
<jsp-compile
uriroot="${src.webapps}/job"
outputdir="${build.src}"
package="org.apache.hadoop.mapred"
webxml="${build.webapps}/job/WEB-INF/web.xml">
</jsp-compile>
<!-- Compile Java files (excluding JSPs) checking warnings -->
<javac
encoding="${build.encoding}"
srcdir="${mapred.src.dir};${build.src}"
includes="org/apache/hadoop/**/*.java"
destdir="${build.classes}"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<compilerarg line="${javac.args} ${javac.args.warnings}" />
<classpath refid="classpath"/>
</javac>
<copy todir="${build.classes}">
<fileset dir="${mapred.src.dir}" includes="**/*.properties"/>
<fileset dir="${mapred.src.dir}" includes="mapred-default.xml"/>
</copy>
</target>
<target name="compile-hdfs-classes" depends="compile-core-classes">
<jsp-compile
uriroot="${src.webapps}/hdfs"
outputdir="${build.src}"
package="org.apache.hadoop.hdfs.server.namenode"
webxml="${build.webapps}/hdfs/WEB-INF/web.xml">
</jsp-compile>
<jsp-compile
uriroot="${src.webapps}/datanode"
outputdir="${build.src}"
package="org.apache.hadoop.hdfs.server.datanode"
webxml="${build.webapps}/datanode/WEB-INF/web.xml">
</jsp-compile>
<!-- Compile Java files (excluding JSPs) checking warnings -->
<javac
encoding="${build.encoding}"
srcdir="${hdfs.src.dir};${build.src}"
includes="org/apache/hadoop/**/*.java"
destdir="${build.classes}"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<compilerarg line="${javac.args} ${javac.args.warnings}" />
<classpath refid="classpath"/>
</javac>
<copy todir="${build.classes}">
<fileset dir="${hdfs.src.dir}" includes="**/*.properties"/>
<fileset dir="${hdfs.src.dir}" includes="hdfs-default.xml"/>
</copy>
</target>
<target name="compile-tools" depends="init">
<javac
encoding="${build.encoding}"
srcdir="${tools.src}"
includes="org/apache/hadoop/**/*.java"
destdir="${build.tools}"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<compilerarg line="${javac.args} ${javac.args.warnings}" />
<classpath refid="classpath"/>
</javac>
<copy todir="${build.tools}">
<fileset
dir="${tools.src}"
includes="**/*.properties"
/>
</copy>
</target>
<target name="compile-native">
<antcall target="compile-core-native">
<param name="compile.native" value="true"/>
</antcall>
</target>
<target name="compile-core-native" depends="compile-core-classes"
if="compile.native">
<mkdir dir="${build.native}/lib"/>
<mkdir dir="${build.native}/src/org/apache/hadoop/io/compress/zlib"/>
<javah
classpath="${build.classes}"
destdir="${build.native}/src/org/apache/hadoop/io/compress/zlib"
force="yes"
verbose="yes"
>
<class name="org.apache.hadoop.io.compress.zlib.ZlibCompressor" />
<class name="org.apache.hadoop.io.compress.zlib.ZlibDecompressor" />
</javah>
<exec dir="${build.native}" executable="sh" failonerror="true">
<env key="OS_NAME" value="${os.name}"/>
<env key="OS_ARCH" value="${os.arch}"/>
<env key="JVM_DATA_MODEL" value="${sun.arch.data.model}"/>
<env key="HADOOP_NATIVE_SRCDIR" value="${native.src.dir}"/>
<arg line="${native.src.dir}/configure"/>
</exec>
<exec dir="${build.native}" executable="${make.cmd}" failonerror="true">
<env key="OS_NAME" value="${os.name}"/>
<env key="OS_ARCH" value="${os.arch}"/>
<env key="JVM_DATA_MODEL" value="${sun.arch.data.model}"/>
<env key="HADOOP_NATIVE_SRCDIR" value="${native.src.dir}"/>
</exec>
<exec dir="${build.native}" executable="sh" failonerror="true">
<arg line="${build.native}/libtool --mode=install cp ${build.native}/lib/libhadoop.la ${build.native}/lib"/>
</exec>
</target>
<target name="compile-core"
depends="clover,compile-core-classes,compile-mapred-classes,
compile-hdfs-classes,compile-core-native,compile-c++"
description="Compile core only">
</target>
<target name="compile-contrib" depends="compile-core,compile-c++-libhdfs">
<subant target="compile">
<property name="version" value="${version}"/>
<fileset file="${contrib.dir}/build.xml"/>
</subant>
</target>
<target name="compile" depends="compile-core, compile-contrib, compile-ant-tasks, compile-tools" description="Compile core, contrib">
</target>
<target name="compile-examples"
depends="compile-core,compile-tools,compile-c++-examples">
<javac
encoding="${build.encoding}"
srcdir="${examples.dir}"
includes="org/apache/hadoop/**/*.java"
destdir="${build.examples}"
debug="${javac.debug}"
optimize="${javac.optimize}"
target="${javac.version}"
source="${javac.version}"
deprecation="${javac.deprecation}">
<compilerarg line="${javac.args} ${javac.args.warnings}" />
<classpath>
<path refid="classpath"/>
<pathelement location="${build.tools}"/>
</classpath>
</javac>
</target>
<!-- ================================================================== -->
<!-- Make hadoop.jar -->
diff --git a/src/mapred/org/apache/hadoop/mapred/FileOutputCommitter.java b/src/mapred/org/apache/hadoop/mapred/FileOutputCommitter.java
index f7d77aa..e5b002e 100644
--- a/src/mapred/org/apache/hadoop/mapred/FileOutputCommitter.java
+++ b/src/mapred/org/apache/hadoop/mapred/FileOutputCommitter.java
@@ -1,260 +1,262 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.mapred;
import java.io.IOException;
import java.net.URI;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.util.StringUtils;
/** An {@link OutputCommitter} that commits files specified
* in job output directory i.e. ${mapred.output.dir}.
**/
public class FileOutputCommitter extends OutputCommitter {
public static final Log LOG = LogFactory.getLog(
"org.apache.hadoop.mapred.FileOutputCommitter");
/**
* Temporary directory name
*/
public static final String TEMP_DIR_NAME = "_temporary";
public static final String SUCCEEDED_FILE_NAME = "_SUCCESS";
static final String SUCCESSFUL_JOB_OUTPUT_DIR_MARKER =
"mapreduce.fileoutputcommitter.marksuccessfuljobs";
public void setupJob(JobContext context) throws IOException {
JobConf conf = context.getJobConf();
Path outputPath = FileOutputFormat.getOutputPath(conf);
if (outputPath != null) {
Path tmpDir = new Path(outputPath, FileOutputCommitter.TEMP_DIR_NAME);
FileSystem fileSys = tmpDir.getFileSystem(conf);
if (!fileSys.mkdirs(tmpDir)) {
LOG.error("Mkdirs failed to create " + tmpDir.toString());
}
}
}
private static boolean getOutputDirMarking(JobConf conf) {
return conf.getBoolean(SUCCESSFUL_JOB_OUTPUT_DIR_MARKER,
true);
}
// Mark the output dir of the job for which the context is passed.
private void markSuccessfulOutputDir(JobContext context)
throws IOException {
JobConf conf = context.getJobConf();
Path outputPath = FileOutputFormat.getOutputPath(conf);
if (outputPath != null) {
FileSystem fileSys = outputPath.getFileSystem(conf);
// create a file in the folder to mark it
if (fileSys.exists(outputPath)) {
Path filePath = new Path(outputPath, SUCCEEDED_FILE_NAME);
fileSys.create(filePath).close();
}
}
}
@Override
public void commitJob(JobContext context) throws IOException {
- cleanup(context);
+ cleanupJob(context);
if (getOutputDirMarking(context.getJobConf())) {
markSuccessfulOutputDir(context);
}
}
- private void cleanup(JobContext context) throws IOException {
+ @Override
+ @Deprecated
+ public void cleanupJob(JobContext context) throws IOException {
JobConf conf = context.getJobConf();
// do the clean up of temporary directory
Path outputPath = FileOutputFormat.getOutputPath(conf);
if (outputPath != null) {
Path tmpDir = new Path(outputPath, FileOutputCommitter.TEMP_DIR_NAME);
FileSystem fileSys = tmpDir.getFileSystem(conf);
context.getProgressible().progress();
if (fileSys.exists(tmpDir)) {
fileSys.delete(tmpDir, true);
}
} else {
LOG.warn("Output path is null in cleanup");
}
}
/**
* Delete the temporary directory, including all of the work directories.
* @param context the job's context
* @param runState final run state of the job, should be
* {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
*/
@Override
public void abortJob(JobContext context, int runState) throws IOException {
- cleanup(context);
+ cleanupJob(context);
}
public void setupTask(TaskAttemptContext context) throws IOException {
// FileOutputCommitter's setupTask doesn't do anything. Because the
// temporary task directory is created on demand when the
// task is writing.
}
public void commitTask(TaskAttemptContext context)
throws IOException {
Path taskOutputPath = getTempTaskOutputPath(context);
TaskAttemptID attemptId = context.getTaskAttemptID();
JobConf job = context.getJobConf();
if (taskOutputPath != null) {
FileSystem fs = taskOutputPath.getFileSystem(job);
context.getProgressible().progress();
if (fs.exists(taskOutputPath)) {
Path jobOutputPath = taskOutputPath.getParent().getParent();
// Move the task outputs to their final place
moveTaskOutputs(context, fs, jobOutputPath, taskOutputPath);
// Delete the temporary task-specific output directory
if (!fs.delete(taskOutputPath, true)) {
LOG.info("Failed to delete the temporary output" +
" directory of task: " + attemptId + " - " + taskOutputPath);
}
LOG.info("Saved output of task '" + attemptId + "' to " +
jobOutputPath);
}
}
}
private void moveTaskOutputs(TaskAttemptContext context,
FileSystem fs,
Path jobOutputDir,
Path taskOutput)
throws IOException {
TaskAttemptID attemptId = context.getTaskAttemptID();
context.getProgressible().progress();
if (fs.isFile(taskOutput)) {
Path finalOutputPath = getFinalPath(jobOutputDir, taskOutput,
getTempTaskOutputPath(context));
if (!fs.rename(taskOutput, finalOutputPath)) {
if (!fs.delete(finalOutputPath, true)) {
throw new IOException("Failed to delete earlier output of task: " +
attemptId);
}
if (!fs.rename(taskOutput, finalOutputPath)) {
throw new IOException("Failed to save output of task: " +
attemptId);
}
}
LOG.debug("Moved " + taskOutput + " to " + finalOutputPath);
} else if(fs.getFileStatus(taskOutput).isDir()) {
FileStatus[] paths = fs.listStatus(taskOutput);
Path finalOutputPath = getFinalPath(jobOutputDir, taskOutput,
getTempTaskOutputPath(context));
fs.mkdirs(finalOutputPath);
if (paths != null) {
for (FileStatus path : paths) {
moveTaskOutputs(context, fs, jobOutputDir, path.getPath());
}
}
}
}
public void abortTask(TaskAttemptContext context) throws IOException {
Path taskOutputPath = getTempTaskOutputPath(context);
try {
if (taskOutputPath != null) {
FileSystem fs = taskOutputPath.getFileSystem(context.getJobConf());
context.getProgressible().progress();
fs.delete(taskOutputPath, true);
}
} catch (IOException ie) {
LOG.warn("Error discarding output" + StringUtils.stringifyException(ie));
}
}
private Path getFinalPath(Path jobOutputDir, Path taskOutput,
Path taskOutputPath) throws IOException {
URI taskOutputUri = taskOutput.toUri();
URI relativePath = taskOutputPath.toUri().relativize(taskOutputUri);
if (taskOutputUri == relativePath) {//taskOutputPath is not a parent of taskOutput
throw new IOException("Can not get the relative path: base = " +
taskOutputPath + " child = " + taskOutput);
}
if (relativePath.getPath().length() > 0) {
return new Path(jobOutputDir, relativePath.getPath());
} else {
return jobOutputDir;
}
}
public boolean needsTaskCommit(TaskAttemptContext context)
throws IOException {
try {
Path taskOutputPath = getTempTaskOutputPath(context);
if (taskOutputPath != null) {
context.getProgressible().progress();
// Get the file-system for the task output directory
FileSystem fs = taskOutputPath.getFileSystem(context.getJobConf());
// since task output path is created on demand,
// if it exists, task needs a commit
if (fs.exists(taskOutputPath)) {
return true;
}
}
} catch (IOException ioe) {
throw ioe;
}
return false;
}
Path getTempTaskOutputPath(TaskAttemptContext taskContext) {
JobConf conf = taskContext.getJobConf();
Path outputPath = FileOutputFormat.getOutputPath(conf);
if (outputPath != null) {
Path p = new Path(outputPath,
(FileOutputCommitter.TEMP_DIR_NAME + Path.SEPARATOR +
"_" + taskContext.getTaskAttemptID().toString()));
try {
FileSystem fs = p.getFileSystem(conf);
return p.makeQualified(fs);
} catch (IOException ie) {
LOG.warn(StringUtils .stringifyException(ie));
return p;
}
}
return null;
}
Path getWorkPath(TaskAttemptContext taskContext, Path basePath)
throws IOException {
// ${mapred.out.dir}/_temporary
Path jobTmpDir = new Path(basePath, FileOutputCommitter.TEMP_DIR_NAME);
FileSystem fs = jobTmpDir.getFileSystem(taskContext.getJobConf());
if (!fs.exists(jobTmpDir)) {
throw new IOException("The temporary job-output directory " +
jobTmpDir.toString() + " doesn't exist!");
}
// ${mapred.out.dir}/_temporary/_${taskid}
String taskid = taskContext.getTaskAttemptID().toString();
Path taskTmpDir = new Path(jobTmpDir, "_" + taskid);
if (!fs.mkdirs(taskTmpDir)) {
throw new IOException("Mkdirs failed to create "
+ taskTmpDir.toString());
}
return taskTmpDir;
}
}
diff --git a/src/mapred/org/apache/hadoop/mapreduce/Job.java b/src/mapred/org/apache/hadoop/mapreduce/Job.java
index de55aef..c66ba9b 100644
--- a/src/mapred/org/apache/hadoop/mapreduce/Job.java
+++ b/src/mapred/org/apache/hadoop/mapreduce/Job.java
@@ -1,457 +1,469 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.mapreduce;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.RawComparator;
import org.apache.hadoop.mapreduce.TaskAttemptID;
import org.apache.hadoop.mapred.JobClient;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.RunningJob;
import org.apache.hadoop.mapred.TaskCompletionEvent;
/**
* The job submitter's view of the Job. It allows the user to configure the
* job, submit it, control its execution, and query the state. The set methods
* only work until the job is submitted, afterwards they will throw an
* IllegalStateException.
*/
public class Job extends JobContext {
public static enum JobState {DEFINE, RUNNING};
private JobState state = JobState.DEFINE;
private JobClient jobClient;
private RunningJob info;
public Job() throws IOException {
this(new Configuration());
}
public Job(Configuration conf) throws IOException {
super(conf, null);
jobClient = new JobClient((JobConf) getConfiguration());
}
public Job(Configuration conf, String jobName) throws IOException {
this(conf);
setJobName(jobName);
}
private void ensureState(JobState state) throws IllegalStateException {
if (state != this.state) {
throw new IllegalStateException("Job in state "+ this.state +
" instead of " + state);
}
}
/**
* Set the number of reduce tasks for the job.
* @param tasks the number of reduce tasks
* @throws IllegalStateException if the job is submitted
*/
public void setNumReduceTasks(int tasks) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setNumReduceTasks(tasks);
}
/**
* Set the current working directory for the default file system.
*
* @param dir the new current working directory.
* @throws IllegalStateException if the job is submitted
*/
public void setWorkingDirectory(Path dir) throws IOException {
ensureState(JobState.DEFINE);
conf.setWorkingDirectory(dir);
}
/**
* Set the {@link InputFormat} for the job.
* @param cls the <code>InputFormat</code> to use
* @throws IllegalStateException if the job is submitted
*/
public void setInputFormatClass(Class<? extends InputFormat> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(INPUT_FORMAT_CLASS_ATTR, cls, InputFormat.class);
}
/**
* Set the {@link OutputFormat} for the job.
* @param cls the <code>OutputFormat</code> to use
* @throws IllegalStateException if the job is submitted
*/
public void setOutputFormatClass(Class<? extends OutputFormat> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(OUTPUT_FORMAT_CLASS_ATTR, cls, OutputFormat.class);
}
/**
* Set the {@link Mapper} for the job.
* @param cls the <code>Mapper</code> to use
* @throws IllegalStateException if the job is submitted
*/
public void setMapperClass(Class<? extends Mapper> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(MAP_CLASS_ATTR, cls, Mapper.class);
}
/**
* Set the Jar by finding where a given class came from.
* @param cls the example class
*/
public void setJarByClass(Class<?> cls) {
conf.setJarByClass(cls);
}
/**
* Get the pathname of the job's jar.
* @return the pathname
*/
public String getJar() {
return conf.getJar();
}
/**
* Set the combiner class for the job.
* @param cls the combiner to use
* @throws IllegalStateException if the job is submitted
*/
public void setCombinerClass(Class<? extends Reducer> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(COMBINE_CLASS_ATTR, cls, Reducer.class);
}
/**
* Set the {@link Reducer} for the job.
* @param cls the <code>Reducer</code> to use
* @throws IllegalStateException if the job is submitted
*/
public void setReducerClass(Class<? extends Reducer> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(REDUCE_CLASS_ATTR, cls, Reducer.class);
}
/**
* Set the {@link Partitioner} for the job.
* @param cls the <code>Partitioner</code> to use
* @throws IllegalStateException if the job is submitted
*/
public void setPartitionerClass(Class<? extends Partitioner> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setClass(PARTITIONER_CLASS_ATTR, cls, Partitioner.class);
}
/**
* Set the key class for the map output data. This allows the user to
* specify the map output key class to be different than the final output
* value class.
*
* @param theClass the map output key class.
* @throws IllegalStateException if the job is submitted
*/
public void setMapOutputKeyClass(Class<?> theClass
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setMapOutputKeyClass(theClass);
}
/**
* Set the value class for the map output data. This allows the user to
* specify the map output value class to be different than the final output
* value class.
*
* @param theClass the map output value class.
* @throws IllegalStateException if the job is submitted
*/
public void setMapOutputValueClass(Class<?> theClass
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setMapOutputValueClass(theClass);
}
/**
* Set the key class for the job output data.
*
* @param theClass the key class for the job output data.
* @throws IllegalStateException if the job is submitted
*/
public void setOutputKeyClass(Class<?> theClass
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setOutputKeyClass(theClass);
}
/**
* Set the value class for job outputs.
*
* @param theClass the value class for job outputs.
* @throws IllegalStateException if the job is submitted
*/
public void setOutputValueClass(Class<?> theClass
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setOutputValueClass(theClass);
}
/**
* Define the comparator that controls how the keys are sorted before they
* are passed to the {@link Reducer}.
* @param cls the raw comparator
* @throws IllegalStateException if the job is submitted
*/
public void setSortComparatorClass(Class<? extends RawComparator> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setOutputKeyComparatorClass(cls);
}
/**
* Define the comparator that controls which keys are grouped together
* for a single call to
* {@link Reducer#reduce(Object, Iterable,
* org.apache.hadoop.mapreduce.Reducer.Context)}
* @param cls the raw comparator to use
* @throws IllegalStateException if the job is submitted
*/
public void setGroupingComparatorClass(Class<? extends RawComparator> cls
) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setOutputValueGroupingComparator(cls);
}
/**
* Set the user-specified job name.
*
* @param name the job's new name.
* @throws IllegalStateException if the job is submitted
*/
public void setJobName(String name) throws IllegalStateException {
ensureState(JobState.DEFINE);
conf.setJobName(name);
}
/**
* Get the URL where some job progress information will be displayed.
*
* @return the URL where some job progress information will be displayed.
*/
public String getTrackingURL() {
ensureState(JobState.RUNNING);
return info.getTrackingURL();
}
+ /**
+ * Get the <i>progress</i> of the job's setup, as a float between 0.0
+ * and 1.0. When the job setup is completed, the function returns 1.0.
+ *
+ * @return the progress of the job's setup.
+ * @throws IOException
+ */
+ public float setupProgress() throws IOException {
+ ensureState(JobState.RUNNING);
+ return info.setupProgress();
+ }
+
/**
* Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
* and 1.0. When all map tasks have completed, the function returns 1.0.
*
* @return the progress of the job's map-tasks.
* @throws IOException
*/
public float mapProgress() throws IOException {
ensureState(JobState.RUNNING);
return info.mapProgress();
}
/**
* Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
* and 1.0. When all reduce tasks have completed, the function returns 1.0.
*
* @return the progress of the job's reduce-tasks.
* @throws IOException
*/
public float reduceProgress() throws IOException {
ensureState(JobState.RUNNING);
return info.reduceProgress();
}
/**
* Check if the job is finished or not.
* This is a non-blocking call.
*
* @return <code>true</code> if the job is complete, else <code>false</code>.
* @throws IOException
*/
public boolean isComplete() throws IOException {
ensureState(JobState.RUNNING);
return info.isComplete();
}
/**
* Check if the job completed successfully.
*
* @return <code>true</code> if the job succeeded, else <code>false</code>.
* @throws IOException
*/
public boolean isSuccessful() throws IOException {
ensureState(JobState.RUNNING);
return info.isSuccessful();
}
/**
* Kill the running job. Blocks until all job tasks have been
* killed as well. If the job is no longer running, it simply returns.
*
* @throws IOException
*/
public void killJob() throws IOException {
ensureState(JobState.RUNNING);
info.killJob();
}
/**
* Get events indicating completion (success/failure) of component tasks.
*
* @param startFrom index to start fetching events from
* @return an array of {@link TaskCompletionEvent}s
* @throws IOException
*/
public TaskCompletionEvent[] getTaskCompletionEvents(int startFrom
) throws IOException {
ensureState(JobState.RUNNING);
return info.getTaskCompletionEvents(startFrom);
}
/**
* Kill indicated task attempt.
*
* @param taskId the id of the task to be terminated.
* @throws IOException
*/
public void killTask(TaskAttemptID taskId) throws IOException {
ensureState(JobState.RUNNING);
info.killTask(org.apache.hadoop.mapred.TaskAttemptID.downgrade(taskId),
false);
}
/**
* Fail indicated task attempt.
*
* @param taskId the id of the task to be terminated.
* @throws IOException
*/
public void failTask(TaskAttemptID taskId) throws IOException {
ensureState(JobState.RUNNING);
info.killTask(org.apache.hadoop.mapred.TaskAttemptID.downgrade(taskId),
true);
}
/**
* Gets the counters for this job.
*
* @return the counters for this job.
* @throws IOException
*/
public Counters getCounters() throws IOException {
ensureState(JobState.RUNNING);
return new Counters(info.getCounters());
}
private void ensureNotSet(String attr, String msg) throws IOException {
if (conf.get(attr) != null) {
throw new IOException(attr + " is incompatible with " + msg + " mode.");
}
}
/**
* Default to the new APIs unless they are explicitly set or the old mapper or
* reduce attributes are used.
* @throws IOException if the configuration is inconsistant
*/
private void setUseNewAPI() throws IOException {
int numReduces = conf.getNumReduceTasks();
String oldMapperClass = "mapred.mapper.class";
String oldReduceClass = "mapred.reducer.class";
conf.setBooleanIfUnset("mapred.mapper.new-api",
conf.get(oldMapperClass) == null);
if (conf.getUseNewMapper()) {
String mode = "new map API";
ensureNotSet("mapred.input.format.class", mode);
ensureNotSet(oldMapperClass, mode);
if (numReduces != 0) {
ensureNotSet("mapred.partitioner.class", mode);
} else {
ensureNotSet("mapred.output.format.class", mode);
}
} else {
String mode = "map compatability";
ensureNotSet(JobContext.INPUT_FORMAT_CLASS_ATTR, mode);
ensureNotSet(JobContext.MAP_CLASS_ATTR, mode);
if (numReduces != 0) {
ensureNotSet(JobContext.PARTITIONER_CLASS_ATTR, mode);
} else {
ensureNotSet(JobContext.OUTPUT_FORMAT_CLASS_ATTR, mode);
}
}
if (numReduces != 0) {
conf.setBooleanIfUnset("mapred.reducer.new-api",
conf.get(oldReduceClass) == null);
if (conf.getUseNewReducer()) {
String mode = "new reduce API";
ensureNotSet("mapred.output.format.class", mode);
ensureNotSet(oldReduceClass, mode);
} else {
String mode = "reduce compatability";
ensureNotSet(JobContext.OUTPUT_FORMAT_CLASS_ATTR, mode);
ensureNotSet(JobContext.REDUCE_CLASS_ATTR, mode);
}
}
}
/**
* Submit the job to the cluster and return immediately.
* @throws IOException
*/
public void submit() throws IOException, InterruptedException,
ClassNotFoundException {
ensureState(JobState.DEFINE);
setUseNewAPI();
info = jobClient.submitJobInternal(conf);
state = JobState.RUNNING;
}
/**
* Submit the job to the cluster and wait for it to finish.
* @param verbose print the progress to the user
* @return true if the job succeeded
* @throws IOException thrown if the communication with the
* <code>JobTracker</code> is lost
*/
public boolean waitForCompletion(boolean verbose
) throws IOException, InterruptedException,
ClassNotFoundException {
if (state == JobState.DEFINE) {
submit();
}
if (verbose) {
jobClient.monitorAndPrintJob(conf, info);
} else {
info.waitForCompletion();
}
return isSuccessful();
}
}
diff --git a/src/mapred/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java b/src/mapred/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java
index 4fb16b0..f3334f1 100644
--- a/src/mapred/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java
+++ b/src/mapred/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java
@@ -1,276 +1,277 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.mapreduce.lib.output;
import java.io.IOException;
import java.net.URI;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.JobStatus;
import org.apache.hadoop.mapreduce.OutputCommitter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.TaskAttemptID;
import org.apache.hadoop.util.StringUtils;
/** An {@link OutputCommitter} that commits files specified
* in job output directory i.e. ${mapred.output.dir}.
**/
public class FileOutputCommitter extends OutputCommitter {
private static final Log LOG = LogFactory.getLog(FileOutputCommitter.class);
/**
* Temporary directory name
*/
protected static final String TEMP_DIR_NAME = "_temporary";
public static final String SUCCEEDED_FILE_NAME = "_SUCCESS";
static final String SUCCESSFUL_JOB_OUTPUT_DIR_MARKER =
"mapreduce.fileoutputcommitter.marksuccessfuljobs";
private FileSystem outputFileSystem = null;
private Path outputPath = null;
private Path workPath = null;
/**
* Create a file output committer
* @param outputPath the job's output path
* @param context the task's context
* @throws IOException
*/
public FileOutputCommitter(Path outputPath,
TaskAttemptContext context) throws IOException {
if (outputPath != null) {
this.outputPath = outputPath;
outputFileSystem = outputPath.getFileSystem(context.getConfiguration());
workPath = new Path(outputPath,
(FileOutputCommitter.TEMP_DIR_NAME + Path.SEPARATOR +
"_" + context.getTaskAttemptID().toString()
)).makeQualified(outputFileSystem);
}
}
/**
* Create the temporary directory that is the root of all of the task
* work directories.
* @param context the job's context
*/
public void setupJob(JobContext context) throws IOException {
if (outputPath != null) {
Path tmpDir = new Path(outputPath, FileOutputCommitter.TEMP_DIR_NAME);
FileSystem fileSys = tmpDir.getFileSystem(context.getConfiguration());
if (!fileSys.mkdirs(tmpDir)) {
LOG.error("Mkdirs failed to create " + tmpDir.toString());
}
}
}
private static boolean shouldMarkOutputDir(Configuration conf) {
return conf.getBoolean(SUCCESSFUL_JOB_OUTPUT_DIR_MARKER,
true);
}
// Mark the output dir of the job for which the context is passed.
private void markOutputDirSuccessful(JobContext context)
throws IOException {
if (outputPath != null) {
FileSystem fileSys = outputPath.getFileSystem(context.getConfiguration());
if (fileSys.exists(outputPath)) {
// create a file in the folder to mark it
Path filePath = new Path(outputPath, SUCCEEDED_FILE_NAME);
fileSys.create(filePath).close();
}
}
}
/**
* Delete the temporary directory, including all of the work directories.
* This is called for all jobs whose final run state is SUCCEEDED
* @param context the job's context.
*/
public void commitJob(JobContext context) throws IOException {
// delete the _temporary folder
- cleanup(context);
+ cleanupJob(context);
// check if the o/p dir should be marked
if (shouldMarkOutputDir(context.getConfiguration())) {
// create a _success file in the o/p folder
markOutputDirSuccessful(context);
}
}
- private void cleanup(JobContext context)
- throws IOException {
+ @Override
+ @Deprecated
+ public void cleanupJob(JobContext context) throws IOException {
if (outputPath != null) {
Path tmpDir = new Path(outputPath, FileOutputCommitter.TEMP_DIR_NAME);
FileSystem fileSys = tmpDir.getFileSystem(context.getConfiguration());
if (fileSys.exists(tmpDir)) {
fileSys.delete(tmpDir, true);
}
} else {
LOG.warn("Output path is null in cleanup");
}
}
/**
* Delete the temporary directory, including all of the work directories.
* @param context the job's context
* @param state final run state of the job, should be FAILED or KILLED
*/
@Override
public void abortJob(JobContext context, JobStatus.State state)
throws IOException {
- cleanup(context);
+ cleanupJob(context);
}
/**
* No task setup required.
*/
@Override
public void setupTask(TaskAttemptContext context) throws IOException {
// FileOutputCommitter's setupTask doesn't do anything. Because the
// temporary task directory is created on demand when the
// task is writing.
}
/**
* Move the files from the work directory to the job output directory
* @param context the task context
*/
public void commitTask(TaskAttemptContext context)
throws IOException {
TaskAttemptID attemptId = context.getTaskAttemptID();
if (workPath != null) {
context.progress();
if (outputFileSystem.exists(workPath)) {
// Move the task outputs to their final place
moveTaskOutputs(context, outputFileSystem, outputPath, workPath);
// Delete the temporary task-specific output directory
if (!outputFileSystem.delete(workPath, true)) {
LOG.warn("Failed to delete the temporary output" +
" directory of task: " + attemptId + " - " + workPath);
}
LOG.info("Saved output of task '" + attemptId + "' to " +
outputPath);
}
}
}
/**
* Move all of the files from the work directory to the final output
* @param context the task context
* @param fs the output file system
* @param jobOutputDir the final output direcotry
* @param taskOutput the work path
* @throws IOException
*/
private void moveTaskOutputs(TaskAttemptContext context,
FileSystem fs,
Path jobOutputDir,
Path taskOutput)
throws IOException {
TaskAttemptID attemptId = context.getTaskAttemptID();
context.progress();
if (fs.isFile(taskOutput)) {
Path finalOutputPath = getFinalPath(jobOutputDir, taskOutput,
workPath);
if (!fs.rename(taskOutput, finalOutputPath)) {
if (!fs.delete(finalOutputPath, true)) {
throw new IOException("Failed to delete earlier output of task: " +
attemptId);
}
if (!fs.rename(taskOutput, finalOutputPath)) {
throw new IOException("Failed to save output of task: " +
attemptId);
}
}
LOG.debug("Moved " + taskOutput + " to " + finalOutputPath);
} else if(fs.getFileStatus(taskOutput).isDir()) {
FileStatus[] paths = fs.listStatus(taskOutput);
Path finalOutputPath = getFinalPath(jobOutputDir, taskOutput, workPath);
fs.mkdirs(finalOutputPath);
if (paths != null) {
for (FileStatus path : paths) {
moveTaskOutputs(context, fs, jobOutputDir, path.getPath());
}
}
}
}
/**
* Delete the work directory
*/
@Override
public void abortTask(TaskAttemptContext context) {
try {
if (workPath != null) {
context.progress();
outputFileSystem.delete(workPath, true);
}
} catch (IOException ie) {
LOG.warn("Error discarding output" + StringUtils.stringifyException(ie));
}
}
/**
* Find the final name of a given output file, given the job output directory
* and the work directory.
* @param jobOutputDir the job's output directory
* @param taskOutput the specific task output file
* @param taskOutputPath the job's work directory
* @return the final path for the specific output file
* @throws IOException
*/
private Path getFinalPath(Path jobOutputDir, Path taskOutput,
Path taskOutputPath) throws IOException {
URI taskOutputUri = taskOutput.toUri();
URI relativePath = taskOutputPath.toUri().relativize(taskOutputUri);
if (taskOutputUri == relativePath) {
throw new IOException("Can not get the relative path: base = " +
taskOutputPath + " child = " + taskOutput);
}
if (relativePath.getPath().length() > 0) {
return new Path(jobOutputDir, relativePath.getPath());
} else {
return jobOutputDir;
}
}
/**
* Did this task write any files in the work directory?
* @param context the task's context
*/
@Override
public boolean needsTaskCommit(TaskAttemptContext context
) throws IOException {
return workPath != null && outputFileSystem.exists(workPath);
}
/**
* Get the directory that the task should write results into
* @return the work directory
* @throws IOException
*/
public Path getWorkPath() throws IOException {
return workPath;
}
}
diff --git a/src/test/org/apache/hadoop/mapred/TestJobCleanup.java b/src/test/org/apache/hadoop/mapred/TestJobCleanup.java
index 5eb9c02..8ef801f 100644
--- a/src/test/org/apache/hadoop/mapred/TestJobCleanup.java
+++ b/src/test/org/apache/hadoop/mapred/TestJobCleanup.java
@@ -1,267 +1,306 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.mapred;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.lib.IdentityMapper;
import org.apache.hadoop.mapred.lib.IdentityReducer;
/**
* A JUnit test to test Map-Reduce job cleanup.
*/
public class TestJobCleanup extends TestCase {
private static String TEST_ROOT_DIR =
new File(System.getProperty("test.build.data", "/tmp") + "/"
+ "test-job-cleanup").toString();
+ private static final String CUSTOM_CLEANUP_FILE_NAME =
+ "_custom_cleanup";
private static final String ABORT_KILLED_FILE_NAME =
"_custom_abort_killed";
private static final String ABORT_FAILED_FILE_NAME =
"_custom_abort_failed";
private static FileSystem fileSys = null;
private static MiniMRCluster mr = null;
private static Path inDir = null;
private static Path emptyInDir = null;
private static int outDirs = 0;
public static Test suite() {
TestSetup setup = new TestSetup(new TestSuite(TestJobCleanup.class)) {
protected void setUp() throws Exception {
JobConf conf = new JobConf();
fileSys = FileSystem.get(conf);
fileSys.delete(new Path(TEST_ROOT_DIR), true);
conf.set("mapred.job.tracker.handler.count", "1");
conf.set("mapred.job.tracker", "127.0.0.1:0");
conf.set("mapred.job.tracker.http.address", "127.0.0.1:0");
conf.set("mapred.task.tracker.http.address", "127.0.0.1:0");
mr = new MiniMRCluster(1, "file:///", 1, null, null, conf);
inDir = new Path(TEST_ROOT_DIR, "test-input");
String input = "The quick brown fox\n" + "has many silly\n"
+ "red fox sox\n";
DataOutputStream file = fileSys.create(new Path(inDir, "part-" + 0));
file.writeBytes(input);
file.close();
emptyInDir = new Path(TEST_ROOT_DIR, "empty-input");
fileSys.mkdirs(emptyInDir);
}
protected void tearDown() throws Exception {
if (fileSys != null) {
fileSys.close();
}
if (mr != null) {
mr.shutdown();
}
}
};
return setup;
}
+ /**
+ * Committer with deprecated {@link FileOutputCommitter#cleanupJob(JobContext)}
+ * making a _failed/_killed in the output folder
+ */
+ static class CommitterWithCustomDeprecatedCleanup extends FileOutputCommitter {
+ @Override
+ public void cleanupJob(JobContext context) throws IOException {
+ System.err.println("---- HERE ----");
+ JobConf conf = context.getJobConf();
+ Path outputPath = FileOutputFormat.getOutputPath(conf);
+ FileSystem fs = outputPath.getFileSystem(conf);
+ fs.create(new Path(outputPath, CUSTOM_CLEANUP_FILE_NAME)).close();
+ }
+ }
+
/**
* Committer with abort making a _failed/_killed in the output folder
*/
static class CommitterWithCustomAbort extends FileOutputCommitter {
@Override
public void abortJob(JobContext context, int state)
throws IOException {
JobConf conf = context.getJobConf();
Path outputPath = FileOutputFormat.getOutputPath(conf);
FileSystem fs = outputPath.getFileSystem(conf);
String fileName = (state == JobStatus.FAILED)
? TestJobCleanup.ABORT_FAILED_FILE_NAME
: TestJobCleanup.ABORT_KILLED_FILE_NAME;
fs.create(new Path(outputPath, fileName)).close();
}
}
private Path getNewOutputDir() {
return new Path(TEST_ROOT_DIR, "output-" + outDirs++);
}
private void configureJob(JobConf jc, String jobName, int maps, int reds,
Path outDir) {
jc.setJobName(jobName);
jc.setInputFormat(TextInputFormat.class);
jc.setOutputKeyClass(LongWritable.class);
jc.setOutputValueClass(Text.class);
FileInputFormat.setInputPaths(jc, inDir);
FileOutputFormat.setOutputPath(jc, outDir);
jc.setMapperClass(IdentityMapper.class);
jc.setReducerClass(IdentityReducer.class);
jc.setNumMapTasks(maps);
jc.setNumReduceTasks(reds);
jc.setBoolean("mapreduce.fileoutputcommitter.marksuccessfuljobs", true);
}
// run a job with 1 map and let it run to completion
private void testSuccessfulJob(String filename,
Class<? extends OutputCommitter> committer, String[] exclude)
throws IOException {
JobConf jc = mr.createJobConf();
Path outDir = getNewOutputDir();
configureJob(jc, "job with cleanup()", 1, 0, outDir);
jc.setOutputCommitter(committer);
JobClient jobClient = new JobClient(jc);
RunningJob job = jobClient.submitJob(jc);
JobID id = job.getID();
job.waitForCompletion();
Path testFile = new Path(outDir, filename);
assertTrue("Done file missing for job " + id, fileSys.exists(testFile));
// check if the files from the missing set exists
for (String ex : exclude) {
Path file = new Path(outDir, ex);
assertFalse("File " + file + " should not be present for successful job "
+ id, fileSys.exists(file));
}
}
// run a job for which all the attempts simply fail.
private void testFailedJob(String fileName,
Class<? extends OutputCommitter> committer, String[] exclude)
throws IOException {
JobConf jc = mr.createJobConf();
Path outDir = getNewOutputDir();
configureJob(jc, "fail job with abort()", 1, 0, outDir);
jc.setMaxMapAttempts(1);
// set the job to fail
jc.setMapperClass(UtilsForTests.FailMapper.class);
jc.setOutputCommitter(committer);
JobClient jobClient = new JobClient(jc);
RunningJob job = jobClient.submitJob(jc);
JobID id = job.getID();
job.waitForCompletion();
if (fileName != null) {
Path testFile = new Path(outDir, fileName);
assertTrue("File " + testFile + " missing for failed job " + id,
fileSys.exists(testFile));
}
// check if the files from the missing set exists
for (String ex : exclude) {
Path file = new Path(outDir, ex);
assertFalse("File " + file + " should not be present for failed job "
+ id, fileSys.exists(file));
}
}
// run a job which gets stuck in mapper and kill it.
private void testKilledJob(String fileName,
Class<? extends OutputCommitter> committer, String[] exclude)
throws IOException {
JobConf jc = mr.createJobConf();
Path outDir = getNewOutputDir();
configureJob(jc, "kill job with abort()", 1, 0, outDir);
// set the job to wait for long
jc.setMapperClass(UtilsForTests.KillMapper.class);
jc.setOutputCommitter(committer);
JobClient jobClient = new JobClient(jc);
RunningJob job = jobClient.submitJob(jc);
JobID id = job.getID();
JobInProgress jip =
mr.getJobTrackerRunner().getJobTracker().getJob(job.getID());
// wait for the map to be launched
while (true) {
if (jip.runningMaps() == 1) {
break;
}
UtilsForTests.waitFor(100);
}
job.killJob(); // kill the job
job.waitForCompletion(); // wait for the job to complete
if (fileName != null) {
Path testFile = new Path(outDir, fileName);
assertTrue("File " + testFile + " missing for job " + id,
fileSys.exists(testFile));
}
// check if the files from the missing set exists
for (String ex : exclude) {
Path file = new Path(outDir, ex);
assertFalse("File " + file + " should not be present for killed job "
+ id, fileSys.exists(file));
}
}
/**
* Test default cleanup/abort behavior
*
* @throws IOException
*/
public void testDefaultCleanupAndAbort() throws IOException {
// check with a successful job
testSuccessfulJob(FileOutputCommitter.SUCCEEDED_FILE_NAME,
FileOutputCommitter.class,
new String[] {});
// check with a failed job
testFailedJob(null,
FileOutputCommitter.class,
new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME});
// check default abort job kill
testKilledJob(null,
FileOutputCommitter.class,
new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME});
}
/**
* Test if a failed job with custom committer runs the abort code.
*
* @throws IOException
*/
public void testCustomAbort() throws IOException {
// check with a successful job
testSuccessfulJob(FileOutputCommitter.SUCCEEDED_FILE_NAME,
CommitterWithCustomAbort.class,
new String[] {ABORT_FAILED_FILE_NAME,
ABORT_KILLED_FILE_NAME});
// check with a failed job
testFailedJob(ABORT_FAILED_FILE_NAME, CommitterWithCustomAbort.class,
new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME,
ABORT_KILLED_FILE_NAME});
// check with a killed job
testKilledJob(ABORT_KILLED_FILE_NAME, CommitterWithCustomAbort.class,
new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME,
ABORT_FAILED_FILE_NAME});
}
+
+ /**
+ * Test if a failed job with custom committer runs the deprecated
+ * {@link FileOutputCommitter#cleanupJob(JobContext)} code for api
+ * compatibility testing.
+ */
+ public void testCustomCleanup() throws IOException {
+ // check with a successful job
+ testSuccessfulJob(CUSTOM_CLEANUP_FILE_NAME,
+ CommitterWithCustomDeprecatedCleanup.class,
+ new String[] {});
+
+ // check with a failed job
+ testFailedJob(CUSTOM_CLEANUP_FILE_NAME,
+ CommitterWithCustomDeprecatedCleanup.class,
+ new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME});
+
+ // check with a killed job
+ testKilledJob(TestJobCleanup.CUSTOM_CLEANUP_FILE_NAME,
+ CommitterWithCustomDeprecatedCleanup.class,
+ new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME});
+ }
}
diff --git a/src/test/org/apache/hadoop/mapred/UtilsForTests.java b/src/test/org/apache/hadoop/mapred/UtilsForTests.java
index f9759e0..67d13fc 100644
--- a/src/test/org/apache/hadoop/mapred/UtilsForTests.java
+++ b/src/test/org/apache/hadoop/mapred/UtilsForTests.java
@@ -1,737 +1,737 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.mapred;
import java.text.DecimalFormat;
import java.io.*;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Enumeration;
import java.util.Properties;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.examples.RandomWriter;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.hdfs.DFSTestUtil;
import org.apache.hadoop.hdfs.MiniDFSCluster;
import org.apache.hadoop.hdfs.server.namenode.NameNode;
import org.apache.hadoop.io.BytesWritable;
import org.apache.hadoop.io.SequenceFile;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.SequenceFile.CompressionType;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.SortValidator.RecordStatsChecker.NonSplitableSequenceFileInputFormat;
import org.apache.hadoop.mapred.lib.IdentityMapper;
import org.apache.hadoop.mapred.lib.IdentityReducer;
/**
* Utilities used in unit test.
*
*/
public class UtilsForTests {
static final Log LOG = LogFactory.getLog(UtilsForTests.class);
final static long KB = 1024L * 1;
final static long MB = 1024L * KB;
final static long GB = 1024L * MB;
final static long TB = 1024L * GB;
final static long PB = 1024L * TB;
final static Object waitLock = new Object();
static DecimalFormat dfm = new DecimalFormat("####.000");
static DecimalFormat ifm = new DecimalFormat("###,###,###,###,###");
public static String dfmt(double d) {
return dfm.format(d);
}
public static String ifmt(double d) {
return ifm.format(d);
}
public static String formatBytes(long numBytes) {
StringBuffer buf = new StringBuffer();
boolean bDetails = true;
double num = numBytes;
if (numBytes < KB) {
buf.append(numBytes + " B");
bDetails = false;
} else if (numBytes < MB) {
buf.append(dfmt(num / KB) + " KB");
} else if (numBytes < GB) {
buf.append(dfmt(num / MB) + " MB");
} else if (numBytes < TB) {
buf.append(dfmt(num / GB) + " GB");
} else if (numBytes < PB) {
buf.append(dfmt(num / TB) + " TB");
} else {
buf.append(dfmt(num / PB) + " PB");
}
if (bDetails) {
buf.append(" (" + ifmt(numBytes) + " bytes)");
}
return buf.toString();
}
public static String formatBytes2(long numBytes) {
StringBuffer buf = new StringBuffer();
long u = 0;
if (numBytes >= TB) {
u = numBytes / TB;
numBytes -= u * TB;
buf.append(u + " TB ");
}
if (numBytes >= GB) {
u = numBytes / GB;
numBytes -= u * GB;
buf.append(u + " GB ");
}
if (numBytes >= MB) {
u = numBytes / MB;
numBytes -= u * MB;
buf.append(u + " MB ");
}
if (numBytes >= KB) {
u = numBytes / KB;
numBytes -= u * KB;
buf.append(u + " KB ");
}
buf.append(u + " B"); //even if zero
return buf.toString();
}
static final String regexpSpecials = "[]()?*+|.!^-\\~@";
public static String regexpEscape(String plain) {
StringBuffer buf = new StringBuffer();
char[] ch = plain.toCharArray();
int csup = ch.length;
for (int c = 0; c < csup; c++) {
if (regexpSpecials.indexOf(ch[c]) != -1) {
buf.append("\\");
}
buf.append(ch[c]);
}
return buf.toString();
}
public static String safeGetCanonicalPath(File f) {
try {
String s = f.getCanonicalPath();
return (s == null) ? f.toString() : s;
} catch (IOException io) {
return f.toString();
}
}
static String slurp(File f) throws IOException {
int len = (int) f.length();
byte[] buf = new byte[len];
FileInputStream in = new FileInputStream(f);
String contents = null;
try {
in.read(buf, 0, len);
contents = new String(buf, "UTF-8");
} finally {
in.close();
}
return contents;
}
static String slurpHadoop(Path p, FileSystem fs) throws IOException {
int len = (int) fs.getLength(p);
byte[] buf = new byte[len];
InputStream in = fs.open(p);
String contents = null;
try {
in.read(buf, 0, len);
contents = new String(buf, "UTF-8");
} finally {
in.close();
}
return contents;
}
public static String rjustify(String s, int width) {
if (s == null) s = "null";
if (width > s.length()) {
s = getSpace(width - s.length()) + s;
}
return s;
}
public static String ljustify(String s, int width) {
if (s == null) s = "null";
if (width > s.length()) {
s = s + getSpace(width - s.length());
}
return s;
}
static char[] space;
static {
space = new char[300];
Arrays.fill(space, '\u0020');
}
public static String getSpace(int len) {
if (len > space.length) {
space = new char[Math.max(len, 2 * space.length)];
Arrays.fill(space, '\u0020');
}
return new String(space, 0, len);
}
/**
* Gets job status from the jobtracker given the jobclient and the job id
*/
static JobStatus getJobStatus(JobClient jc, JobID id) throws IOException {
JobStatus[] statuses = jc.getAllJobs();
for (JobStatus jobStatus : statuses) {
if (jobStatus.getJobID().equals(id)) {
return jobStatus;
}
}
return null;
}
/**
* A utility that waits for specified amount of time
*/
- static void waitFor(long duration) {
+ public static void waitFor(long duration) {
try {
synchronized (waitLock) {
waitLock.wait(duration);
}
} catch (InterruptedException ie) {}
}
/**
* Wait for the jobtracker to be RUNNING.
*/
static void waitForJobTracker(JobClient jobClient) {
while (true) {
try {
ClusterStatus status = jobClient.getClusterStatus();
while (status.getJobTrackerState() != JobTracker.State.RUNNING) {
waitFor(100);
status = jobClient.getClusterStatus();
}
break; // means that the jt is ready
} catch (IOException ioe) {}
}
}
/**
* Waits until all the jobs at the jobtracker complete.
*/
static void waitTillDone(JobClient jobClient) throws IOException {
// Wait for the last job to complete
while (true) {
boolean shouldWait = false;
for (JobStatus jobStatuses : jobClient.getAllJobs()) {
if (jobStatuses.getRunState() == JobStatus.RUNNING) {
shouldWait = true;
break;
}
}
if (shouldWait) {
waitFor(1000);
} else {
break;
}
}
}
/**
* Configure a waiting job
*/
static void configureWaitingJobConf(JobConf jobConf, Path inDir,
Path outputPath, int numMaps, int numRed,
String jobName, String mapSignalFilename,
String redSignalFilename)
throws IOException {
jobConf.setJobName(jobName);
jobConf.setInputFormat(NonSplitableSequenceFileInputFormat.class);
jobConf.setOutputFormat(SequenceFileOutputFormat.class);
FileInputFormat.setInputPaths(jobConf, inDir);
FileOutputFormat.setOutputPath(jobConf, outputPath);
jobConf.setMapperClass(UtilsForTests.HalfWaitingMapper.class);
jobConf.setReducerClass(IdentityReducer.class);
jobConf.setOutputKeyClass(BytesWritable.class);
jobConf.setOutputValueClass(BytesWritable.class);
jobConf.setInputFormat(RandomInputFormat.class);
jobConf.setNumMapTasks(numMaps);
jobConf.setNumReduceTasks(numRed);
jobConf.setJar("build/test/testjar/testjob.jar");
jobConf.set(getTaskSignalParameter(true), mapSignalFilename);
jobConf.set(getTaskSignalParameter(false), redSignalFilename);
}
/**
* Commonly used map and reduce classes
*/
/**
* Map is a Mapper that just waits for a file to be created on the dfs. The
* file creation is a signal to the mappers and hence acts as a waiting job.
*/
static class WaitingMapper
extends MapReduceBase
implements Mapper<WritableComparable, Writable,
WritableComparable, Writable> {
FileSystem fs = null;
Path signal;
int id = 0;
int totalMaps = 0;
/**
* Checks if the map task needs to wait. By default all the maps will wait.
* This method needs to be overridden to make a custom waiting mapper.
*/
public boolean shouldWait(int id) {
return true;
}
/**
* Returns a signal file on which the map task should wait. By default all
* the maps wait on a single file passed as test.mapred.map.waiting.target.
* This method needs to be overridden to make a custom waiting mapper
*/
public Path getSignalFile(int id) {
return signal;
}
/** The waiting function. The map exits once it gets a signal. Here the
* signal is the file existence.
*/
public void map(WritableComparable key, Writable val,
OutputCollector<WritableComparable, Writable> output,
Reporter reporter)
throws IOException {
if (shouldWait(id)) {
if (fs != null) {
while (!fs.exists(getSignalFile(id))) {
try {
reporter.progress();
synchronized (this) {
this.wait(1000); // wait for 1 sec
}
} catch (InterruptedException ie) {
System.out.println("Interrupted while the map was waiting for "
+ " the signal.");
break;
}
}
} else {
throw new IOException("Could not get the DFS!!");
}
}
}
public void configure(JobConf conf) {
try {
String taskId = conf.get("mapred.task.id");
id = Integer.parseInt(taskId.split("_")[4]);
totalMaps = Integer.parseInt(conf.get("mapred.map.tasks"));
fs = FileSystem.get(conf);
signal = new Path(conf.get(getTaskSignalParameter(true)));
} catch (IOException ioe) {
System.out.println("Got an exception while obtaining the filesystem");
}
}
}
/** Only the later half of the maps wait for the signal while the rest
* complete immediately.
*/
static class HalfWaitingMapper extends WaitingMapper {
@Override
public boolean shouldWait(int id) {
return id >= (totalMaps / 2);
}
}
/**
* Reduce that just waits for a file to be created on the dfs. The
* file creation is a signal to the reduce.
*/
static class WaitingReducer extends MapReduceBase
implements Reducer<WritableComparable, Writable,
WritableComparable, Writable> {
FileSystem fs = null;
Path signal;
/** The waiting function. The reduce exits once it gets a signal. Here the
* signal is the file existence.
*/
public void reduce(WritableComparable key, Iterator<Writable> val,
OutputCollector<WritableComparable, Writable> output,
Reporter reporter)
throws IOException {
if (fs != null) {
while (!fs.exists(signal)) {
try {
reporter.progress();
synchronized (this) {
this.wait(1000); // wait for 1 sec
}
} catch (InterruptedException ie) {
System.out.println("Interrupted while the map was waiting for the"
+ " signal.");
break;
}
}
} else {
throw new IOException("Could not get the DFS!!");
}
}
public void configure(JobConf conf) {
try {
fs = FileSystem.get(conf);
signal = new Path(conf.get(getTaskSignalParameter(false)));
} catch (IOException ioe) {
System.out.println("Got an exception while obtaining the filesystem");
}
}
}
static String getTaskSignalParameter(boolean isMap) {
return isMap
? "test.mapred.map.waiting.target"
: "test.mapred.reduce.waiting.target";
}
/**
* Signal the maps/reduces to start.
*/
static void signalTasks(MiniDFSCluster dfs, FileSystem fileSys,
String mapSignalFile,
String reduceSignalFile, int replication)
throws IOException {
writeFile(dfs.getNameNode(), fileSys.getConf(), new Path(mapSignalFile),
(short)replication);
writeFile(dfs.getNameNode(), fileSys.getConf(), new Path(reduceSignalFile),
(short)replication);
}
/**
* Signal the maps/reduces to start.
*/
static void signalTasks(MiniDFSCluster dfs, FileSystem fileSys,
boolean isMap, String mapSignalFile,
String reduceSignalFile)
throws IOException {
// signal the maps to complete
writeFile(dfs.getNameNode(), fileSys.getConf(),
isMap
? new Path(mapSignalFile)
: new Path(reduceSignalFile), (short)1);
}
static String getSignalFile(Path dir) {
return (new Path(dir, "signal")).toString();
}
static String getMapSignalFile(Path dir) {
return (new Path(dir, "map-signal")).toString();
}
static String getReduceSignalFile(Path dir) {
return (new Path(dir, "reduce-signal")).toString();
}
static void writeFile(NameNode namenode, Configuration conf, Path name,
short replication) throws IOException {
FileSystem fileSys = FileSystem.get(conf);
SequenceFile.Writer writer =
SequenceFile.createWriter(fileSys, conf, name,
BytesWritable.class, BytesWritable.class,
CompressionType.NONE);
writer.append(new BytesWritable(), new BytesWritable());
writer.close();
fileSys.setReplication(name, replication);
DFSTestUtil.waitReplication(fileSys, name, replication);
}
// Input formats
/**
* A custom input format that creates virtual inputs of a single string
* for each map. Using {@link RandomWriter} code.
*/
public static class RandomInputFormat implements InputFormat<Text, Text> {
public InputSplit[] getSplits(JobConf job,
int numSplits) throws IOException {
InputSplit[] result = new InputSplit[numSplits];
Path outDir = FileOutputFormat.getOutputPath(job);
for(int i=0; i < result.length; ++i) {
result[i] = new FileSplit(new Path(outDir, "dummy-split-" + i),
0, 1, (String[])null);
}
return result;
}
static class RandomRecordReader implements RecordReader<Text, Text> {
Path name;
public RandomRecordReader(Path p) {
name = p;
}
public boolean next(Text key, Text value) {
if (name != null) {
key.set(name.getName());
name = null;
return true;
}
return false;
}
public Text createKey() {
return new Text();
}
public Text createValue() {
return new Text();
}
public long getPos() {
return 0;
}
public void close() {}
public float getProgress() {
return 0.0f;
}
}
public RecordReader<Text, Text> getRecordReader(InputSplit split,
JobConf job,
Reporter reporter)
throws IOException {
return new RandomRecordReader(((FileSplit) split).getPath());
}
}
// Start a job and return its RunningJob object
static RunningJob runJob(JobConf conf, Path inDir, Path outDir)
throws IOException {
return runJob(conf, inDir, outDir, conf.getNumMapTasks(), conf.getNumReduceTasks());
}
// Start a job and return its RunningJob object
static RunningJob runJob(JobConf conf, Path inDir, Path outDir, int numMaps,
int numReds) throws IOException {
FileSystem fs = FileSystem.get(conf);
if (fs.exists(outDir)) {
fs.delete(outDir, true);
}
if (!fs.exists(inDir)) {
fs.mkdirs(inDir);
}
String input = "The quick brown fox\n" + "has many silly\n"
+ "red fox sox\n";
for (int i = 0; i < numMaps; ++i) {
DataOutputStream file = fs.create(new Path(inDir, "part-" + i));
file.writeBytes(input);
file.close();
}
conf.setInputFormat(TextInputFormat.class);
conf.setOutputKeyClass(LongWritable.class);
conf.setOutputValueClass(Text.class);
FileInputFormat.setInputPaths(conf, inDir);
FileOutputFormat.setOutputPath(conf, outDir);
conf.setNumMapTasks(numMaps);
conf.setNumReduceTasks(numReds);
JobClient jobClient = new JobClient(conf);
RunningJob job = jobClient.submitJob(conf);
return job;
}
// Run a job that will be succeeded and wait until it completes
static RunningJob runJobSucceed(JobConf conf, Path inDir, Path outDir)
throws IOException {
conf.setJobName("test-job-succeed");
conf.setMapperClass(IdentityMapper.class);
conf.setReducerClass(IdentityReducer.class);
RunningJob job = UtilsForTests.runJob(conf, inDir, outDir);
while (!job.isComplete()) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
break;
}
}
return job;
}
// Run a job that will be failed and wait until it completes
static RunningJob runJobFail(JobConf conf, Path inDir, Path outDir)
throws IOException {
conf.setJobName("test-job-fail");
conf.setMapperClass(FailMapper.class);
conf.setReducerClass(IdentityReducer.class);
RunningJob job = UtilsForTests.runJob(conf, inDir, outDir);
while (!job.isComplete()) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
break;
}
}
return job;
}
// Run a job that will be killed and wait until it completes
static RunningJob runJobKill(JobConf conf, Path inDir, Path outDir)
throws IOException {
conf.setJobName("test-job-kill");
conf.setMapperClass(KillMapper.class);
conf.setReducerClass(IdentityReducer.class);
RunningJob job = UtilsForTests.runJob(conf, inDir, outDir);
while (job.getJobState() != JobStatus.RUNNING) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
break;
}
}
job.killJob();
while (job.cleanupProgress() == 0.0f) {
try {
Thread.sleep(10);
} catch (InterruptedException ie) {
break;
}
}
return job;
}
// Mapper that fails
static class FailMapper extends MapReduceBase implements
Mapper<WritableComparable, Writable, WritableComparable, Writable> {
public void map(WritableComparable key, Writable value,
OutputCollector<WritableComparable, Writable> out, Reporter reporter)
throws IOException {
throw new RuntimeException("failing map");
}
}
// Mapper that sleeps for a long time.
// Used for running a job that will be killed
static class KillMapper extends MapReduceBase implements
Mapper<WritableComparable, Writable, WritableComparable, Writable> {
public void map(WritableComparable key, Writable value,
OutputCollector<WritableComparable, Writable> out, Reporter reporter)
throws IOException {
try {
Thread.sleep(1000000);
} catch (InterruptedException e) {
// Do nothing
}
}
}
static void setUpConfigFile(Properties confProps, File configFile)
throws IOException {
Configuration config = new Configuration(false);
FileOutputStream fos = new FileOutputStream(configFile);
for (Enumeration<?> e = confProps.propertyNames(); e.hasMoreElements();) {
String key = (String) e.nextElement();
config.set(key, confProps.getProperty(key));
}
config.writeXml(fos);
fos.close();
}
/**
* Get PID from a pid-file.
*
* @param pidFileName
* Name of the pid-file.
* @return the PID string read from the pid-file. Returns null if the
* pidFileName points to a non-existing file or if read fails from the
* file.
*/
public static String getPidFromPidFile(String pidFileName) {
BufferedReader pidFile = null;
FileReader fReader = null;
String pid = null;
try {
fReader = new FileReader(pidFileName);
pidFile = new BufferedReader(fReader);
} catch (FileNotFoundException f) {
LOG.debug("PidFile doesn't exist : " + pidFileName);
return pid;
}
try {
pid = pidFile.readLine();
} catch (IOException i) {
LOG.error("Failed to read from " + pidFileName);
} finally {
try {
if (fReader != null) {
fReader.close();
}
try {
if (pidFile != null) {
pidFile.close();
}
} catch (IOException i) {
LOG.warn("Error closing the stream " + pidFile);
}
} catch (IOException i) {
LOG.warn("Error closing the stream " + fReader);
}
}
return pid;
}
static JobTracker getJobTracker() {
JobConf conf = new JobConf();
conf.set("mapred.job.tracker", "localhost:0");
diff --git a/src/test/org/apache/hadoop/mapreduce/lib/output/TestJobOutputCommitter.java b/src/test/org/apache/hadoop/mapreduce/lib/output/TestJobOutputCommitter.java
new file mode 100644
index 0000000..7db596a
--- /dev/null
+++ b/src/test/org/apache/hadoop/mapreduce/lib/output/TestJobOutputCommitter.java
@@ -0,0 +1,285 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.mapreduce.lib.output;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.FileSystem;
+import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.mapred.HadoopTestCase;
+import org.apache.hadoop.mapred.UtilsForTests;
+import org.apache.hadoop.mapreduce.Job;
+import org.apache.hadoop.mapreduce.JobContext;
+import org.apache.hadoop.mapreduce.JobStatus;
+import org.apache.hadoop.mapreduce.MapReduceTestUtil;
+import org.apache.hadoop.mapreduce.OutputCommitter;
+import org.apache.hadoop.mapreduce.OutputFormat;
+import org.apache.hadoop.mapreduce.TaskAttemptContext;
+
+/**
+ * A JUnit test to test Map-Reduce job committer.
+ */
+public class TestJobOutputCommitter extends HadoopTestCase {
+
+ public TestJobOutputCommitter() throws IOException {
+ super(CLUSTER_MR, LOCAL_FS, 1, 1);
+ }
+
+ private static String TEST_ROOT_DIR = new File(System.getProperty(
+ "test.build.data", "/tmp")
+ + "/" + "test-job-cleanup").toString();
+ private static final String CUSTOM_CLEANUP_FILE_NAME = "_custom_cleanup";
+ private static final String ABORT_KILLED_FILE_NAME = "_custom_abort_killed";
+ private static final String ABORT_FAILED_FILE_NAME = "_custom_abort_failed";
+ private static Path inDir = new Path(TEST_ROOT_DIR, "test-input");
+ private static int outDirs = 0;
+ private FileSystem fs;
+ private Configuration conf = null;
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ conf = createJobConf();
+ conf.setBoolean(FileOutputCommitter.SUCCESSFUL_JOB_OUTPUT_DIR_MARKER, true);
+ fs = getFileSystem();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ fs.delete(new Path(TEST_ROOT_DIR), true);
+ super.tearDown();
+ }
+
+ /**
+ * Committer with deprecated {@link FileOutputCommitter#cleanupJob(JobContext)}
+ * making a _failed/_killed in the output folder
+ */
+ static class CommitterWithCustomDeprecatedCleanup extends FileOutputCommitter {
+ public CommitterWithCustomDeprecatedCleanup(Path outputPath,
+ TaskAttemptContext context) throws IOException {
+ super(outputPath, context);
+ }
+
+ @Override
+ public void cleanupJob(JobContext context) throws IOException {
+ System.err.println("---- HERE ----");
+ Path outputPath = FileOutputFormat.getOutputPath(context);
+ FileSystem fs = outputPath.getFileSystem(context.getConfiguration());
+ fs.create(new Path(outputPath, CUSTOM_CLEANUP_FILE_NAME)).close();
+ }
+ }
+
+ /**
+ * Committer with abort making a _failed/_killed in the output folder
+ */
+ static class CommitterWithCustomAbort extends FileOutputCommitter {
+ public CommitterWithCustomAbort(Path outputPath, TaskAttemptContext context)
+ throws IOException {
+ super(outputPath, context);
+ }
+
+ @Override
+ public void abortJob(JobContext context, JobStatus.State state)
+ throws IOException {
+ Path outputPath = FileOutputFormat.getOutputPath(context);
+ FileSystem fs = outputPath.getFileSystem(context.getConfiguration());
+ String fileName =
+ (state.equals(JobStatus.State.FAILED)) ? ABORT_FAILED_FILE_NAME
+ : ABORT_KILLED_FILE_NAME;
+ fs.create(new Path(outputPath, fileName)).close();
+ }
+ }
+
+ private Path getNewOutputDir() {
+ return new Path(TEST_ROOT_DIR, "output-" + outDirs++);
+ }
+
+ static class MyOutputFormatWithCustomAbort<K, V>
+ extends TextOutputFormat<K, V> {
+ private OutputCommitter committer = null;
+
+ public synchronized OutputCommitter getOutputCommitter(
+ TaskAttemptContext context) throws IOException {
+ if (committer == null) {
+ Path output = getOutputPath(context);
+ committer = new CommitterWithCustomAbort(output, context);
+ }
+ return committer;
+ }
+ }
+
+ static class MyOutputFormatWithCustomCleanup<K, V>
+ extends TextOutputFormat<K, V> {
+ private OutputCommitter committer = null;
+
+ public synchronized OutputCommitter getOutputCommitter(
+ TaskAttemptContext context) throws IOException {
+ if (committer == null) {
+ Path output = getOutputPath(context);
+ committer = new CommitterWithCustomDeprecatedCleanup(output, context);
+ }
+ return committer;
+ }
+ }
+
+ // run a job with 1 map and let it run to completion
+ private void testSuccessfulJob(String filename,
+ Class<? extends OutputFormat> output, String[] exclude) throws Exception {
+ Path outDir = getNewOutputDir();
+ Job job = MapReduceTestUtil.createJob(conf, inDir, outDir, 1, 0);
+ job.setOutputFormatClass(output);
+
+ assertTrue("Job failed!", job.waitForCompletion(true));
+
+ Path testFile = new Path(outDir, filename);
+ assertTrue("Done file missing for job ", fs.exists(testFile));
+
+ // check if the files from the missing set exists
+ for (String ex : exclude) {
+ Path file = new Path(outDir, ex);
+ assertFalse(
+ "File " + file + " should not be present for successful job ", fs
+ .exists(file));
+ }
+ }
+
+ // run a job for which all the attempts simply fail.
+ private void testFailedJob(String fileName,
+ Class<? extends OutputFormat> output, String[] exclude) throws Exception {
+ Path outDir = getNewOutputDir();
+ Job job = MapReduceTestUtil.createFailJob(conf, outDir, inDir);
+ job.setOutputFormatClass(output);
+
+ assertFalse("Job did not fail!", job.waitForCompletion(true));
+
+ if (fileName != null) {
+ Path testFile = new Path(outDir, fileName);
+ assertTrue("File " + testFile + " missing for failed job ", fs
+ .exists(testFile));
+ }
+
+ // check if the files from the missing set exists
+ for (String ex : exclude) {
+ Path file = new Path(outDir, ex);
+ assertFalse("File " + file + " should not be present for failed job ", fs
+ .exists(file));
+ }
+ }
+
+ // run a job which gets stuck in mapper and kill it.
+ private void testKilledJob(String fileName,
+ Class<? extends OutputFormat> output, String[] exclude) throws Exception {
+ Path outDir = getNewOutputDir();
+ Job job = MapReduceTestUtil.createKillJob(conf, outDir, inDir);
+ job.setOutputFormatClass(output);
+
+ job.submit();
+
+ // wait for the setup to be completed
+ while (job.setupProgress() != 1.0f) {
+ UtilsForTests.waitFor(100);
+ }
+
+ job.killJob(); // kill the job
+
+ assertFalse("Job did not get kill", job.waitForCompletion(true));
+
+ if (fileName != null) {
+ Path testFile = new Path(outDir, fileName);
+ assertTrue("File " + testFile + " missing for job ", fs.exists(testFile));
+ }
+
+ // check if the files from the missing set exists
+ for (String ex : exclude) {
+ Path file = new Path(outDir, ex);
+ assertFalse("File " + file + " should not be present for killed job ", fs
+ .exists(file));
+ }
+ }
+
+ /**
+ * Test default cleanup/abort behavior
+ *
+ * @throws Exception
+ */
+ public void testDefaultCleanupAndAbort() throws Exception {
+ // check with a successful job
+ testSuccessfulJob(FileOutputCommitter.SUCCEEDED_FILE_NAME,
+ TextOutputFormat.class, new String[] {});
+
+ // check with a failed job
+ testFailedJob(null, TextOutputFormat.class,
+ new String[] { FileOutputCommitter.SUCCEEDED_FILE_NAME });
+
+ // check default abort job kill
+ testKilledJob(null, TextOutputFormat.class,
+ new String[] { FileOutputCommitter.SUCCEEDED_FILE_NAME });
+ }
+
+ /**
+ * Test if a failed job with custom committer runs the abort code.
+ *
+ * @throws Exception
+ */
+ public void testCustomAbort() throws Exception {
+ // check with a successful job
+ testSuccessfulJob(FileOutputCommitter.SUCCEEDED_FILE_NAME,
+ MyOutputFormatWithCustomAbort.class,
+ new String[] {ABORT_FAILED_FILE_NAME,
+ ABORT_KILLED_FILE_NAME});
+
+ // check with a failed job
+ testFailedJob(ABORT_FAILED_FILE_NAME,
+ MyOutputFormatWithCustomAbort.class,
+ new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME,
+ ABORT_KILLED_FILE_NAME});
+
+ // check with a killed job
+ testKilledJob(ABORT_KILLED_FILE_NAME,
+ MyOutputFormatWithCustomAbort.class,
+ new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME,
+ ABORT_FAILED_FILE_NAME});
+ }
+
+ /**
+ * Test if a failed job with custom committer runs the deprecated
+ * {@link FileOutputCommitter#cleanupJob(JobContext)} code for api
+ * compatibility testing.
+ * @throws Exception
+ */
+ public void testCustomCleanup() throws Exception {
+
+ // check with a successful job
+ testSuccessfulJob(CUSTOM_CLEANUP_FILE_NAME,
+ MyOutputFormatWithCustomCleanup.class,
+ new String[] {});
+
+ // check with a failed job
+ testFailedJob(CUSTOM_CLEANUP_FILE_NAME,
+ MyOutputFormatWithCustomCleanup.class,
+ new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME});
+
+ // check with a killed job
+ testKilledJob(CUSTOM_CLEANUP_FILE_NAME,
+ MyOutputFormatWithCustomCleanup.class,
+ new String[] {FileOutputCommitter.SUCCEEDED_FILE_NAME});
+ }
+}
|
jaxlaw/hadoop-common
|
3b60536e6093bb5a378958e86243a385579f18d7
|
HDFS-625 from https://issues.apache.org/jira/secure/attachment/12424176/hdfs-625.0-20.patch
|
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/ListPathsServlet.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/ListPathsServlet.java
index 0eec7f7..dd20aa1 100644
--- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/ListPathsServlet.java
+++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/ListPathsServlet.java
@@ -1,177 +1,182 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hdfs.server.namenode;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.hdfs.HftpFileSystem;
import org.apache.hadoop.hdfs.protocol.ClientProtocol;
import org.apache.hadoop.ipc.RemoteException;
import org.apache.hadoop.security.UnixUserGroupInformation;
import org.apache.hadoop.util.VersionInfo;
import org.znerd.xmlenc.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Obtain meta-information about a filesystem.
* @see org.apache.hadoop.hdfs.HftpFileSystem
*/
public class ListPathsServlet extends DfsServlet {
/** For java.io.Serializable */
private static final long serialVersionUID = 1L;
public static final ThreadLocal<SimpleDateFormat> df =
new ThreadLocal<SimpleDateFormat>() {
protected SimpleDateFormat initialValue() {
return HftpFileSystem.getDateFormat();
}
};
/**
* Write a node to output.
* Node information includes path, modification, permission, owner and group.
* For files, it also includes size, replication and block-size.
*/
static void writeInfo(FileStatus i, XMLOutputter doc) throws IOException {
final SimpleDateFormat ldf = df.get();
doc.startTag(i.isDir() ? "directory" : "file");
doc.attribute("path", i.getPath().toUri().getPath());
doc.attribute("modified", ldf.format(new Date(i.getModificationTime())));
doc.attribute("accesstime", ldf.format(new Date(i.getAccessTime())));
if (!i.isDir()) {
doc.attribute("size", String.valueOf(i.getLen()));
doc.attribute("replication", String.valueOf(i.getReplication()));
doc.attribute("blocksize", String.valueOf(i.getBlockSize()));
}
doc.attribute("permission", (i.isDir()? "d": "-") + i.getPermission());
doc.attribute("owner", i.getOwner());
doc.attribute("group", i.getGroup());
doc.endTag();
}
/**
* Build a map from the query string, setting values and defaults.
*/
protected Map<String,String> buildRoot(HttpServletRequest request,
XMLOutputter doc) {
final String path = request.getPathInfo() != null
? request.getPathInfo() : "/";
final String exclude = request.getParameter("exclude") != null
? request.getParameter("exclude") : "\\..*\\.crc";
final String filter = request.getParameter("filter") != null
? request.getParameter("filter") : ".*";
final boolean recur = request.getParameter("recursive") != null
&& "yes".equals(request.getParameter("recursive"));
Map<String, String> root = new HashMap<String, String>();
root.put("path", path);
root.put("recursive", recur ? "yes" : "no");
root.put("filter", filter);
root.put("exclude", exclude);
root.put("time", df.get().format(new Date()));
root.put("version", VersionInfo.getVersion());
return root;
}
/**
* Service a GET request as described below.
* Request:
* {@code
* GET http://<nn>:<port>/listPaths[/<path>][<?option>[&option]*] HTTP/1.1
* }
*
* Where <i>option</i> (default) in:
* recursive ("no")
* filter (".*")
* exclude ("\..*\.crc")
*
* Response: A flat list of files/directories in the following format:
* {@code
* <listing path="..." recursive="(yes|no)" filter="..."
* time="yyyy-MM-dd hh:mm:ss UTC" version="...">
* <directory path="..." modified="yyyy-MM-dd hh:mm:ss"/>
* <file path="..." modified="yyyy-MM-dd'T'hh:mm:ssZ" accesstime="yyyy-MM-dd'T'hh:mm:ssZ"
* blocksize="..."
* replication="..." size="..."/>
* </listing>
* }
*/
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
final UnixUserGroupInformation ugi = getUGI(request);
final PrintWriter out = response.getWriter();
final XMLOutputter doc = new XMLOutputter(out, "UTF-8");
try {
final Map<String, String> root = buildRoot(request, doc);
final String path = root.get("path");
final boolean recur = "yes".equals(root.get("recursive"));
final Pattern filter = Pattern.compile(root.get("filter"));
final Pattern exclude = Pattern.compile(root.get("exclude"));
ClientProtocol nnproxy = createNameNodeProxy(ugi);
doc.declaration();
doc.startTag("listing");
for (Map.Entry<String,String> m : root.entrySet()) {
doc.attribute(m.getKey(), m.getValue());
}
FileStatus base = nnproxy.getFileInfo(path);
if ((base != null) && base.isDir()) {
writeInfo(base, doc);
}
Stack<String> pathstack = new Stack<String>();
pathstack.push(path);
while (!pathstack.empty()) {
String p = pathstack.pop();
try {
- for (FileStatus i : nnproxy.getListing(p)) {
+ FileStatus[] listing = nnproxy.getListing(p);
+ if (listing == null) {
+ LOG.warn("ListPathsServlet - Path " + p + " does not exist");
+ continue;
+ }
+ for (FileStatus i : listing) {
if (exclude.matcher(i.getPath().getName()).matches()
|| !filter.matcher(i.getPath().getName()).matches()) {
continue;
}
if (recur && i.isDir()) {
pathstack.push(i.getPath().toUri().getPath());
}
writeInfo(i, doc);
}
}
catch(RemoteException re) {re.writeXml(p, doc);}
}
if (doc != null) {
doc.endDocument();
}
} finally {
if (out != null) {
out.close();
}
}
}
}
|
jaxlaw/hadoop-common
|
4b728cdd783c9b2ccb3a482b3521c92a35f5b8e6
|
HDFS-625 from https://issues.apache.org/jira/secure/attachment/12424176/hdfs-625.0-20.patch
|
diff --git a/src/test/org/apache/hadoop/hdfs/TestListPathServlet.java b/src/test/org/apache/hadoop/hdfs/TestListPathServlet.java
new file mode 100644
index 0000000..12a502c
--- /dev/null
+++ b/src/test/org/apache/hadoop/hdfs/TestListPathServlet.java
@@ -0,0 +1,136 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hdfs;
+
+import java.io.IOException;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.FileSystem;
+import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.hdfs.server.namenode.ListPathsServlet;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Test for {@link ListPathsServlet} that serves the URL
+ * http://<namenodeaddress:httpport?/listPaths
+ *
+ * This test does not use the servlet directly. Instead it is based on
+ * {@link HftpFileSystem}, which uses this servlet to implement
+ * {@link HftpFileSystem#listStatus(Path)} method.
+ */
+public class TestListPathServlet {
+ private static final Configuration CONF = new Configuration();
+ private static MiniDFSCluster cluster;
+ private static FileSystem fs;
+ private static URI hftpURI;
+ private static HftpFileSystem hftpFs;
+ private Random r = new Random();
+ private List<String> filelist = new ArrayList<String>();
+
+ @BeforeClass
+ public static void setup() throws Exception {
+ // start a cluster with single datanode
+ cluster = new MiniDFSCluster(CONF, 1, true, null);
+ cluster.waitActive();
+ fs = cluster.getFileSystem();
+
+ final String str = "hftp://"
+ + CONF.get("dfs.http.address");
+ hftpURI = new URI(str);
+ hftpFs = (HftpFileSystem) FileSystem.get(hftpURI, CONF);
+ }
+
+ @AfterClass
+ public static void teardown() {
+ cluster.shutdown();
+ }
+
+ /** create a file with a length of <code>fileLen</code> */
+ private void createFile(String fileName, long fileLen) throws IOException {
+ filelist.add(hftpURI + fileName);
+ final Path filePath = new Path(fileName);
+ DFSTestUtil.createFile(fs, filePath, fileLen, (short) 1, r.nextLong());
+ }
+
+ private void mkdirs(String dirName) throws IOException {
+ filelist.add(hftpURI + dirName);
+ fs.mkdirs(new Path(dirName));
+ }
+
+ @Test
+ public void testListStatus() throws Exception {
+ // Empty root directory
+ checkStatus("/");
+
+ // Root directory with files and directories
+ createFile("/a", 1);
+ createFile("/b", 1);
+ mkdirs("/dir");
+ checkStatus("/");
+
+ // A directory with files and directories
+ createFile("/dir/a", 1);
+ createFile("/dir/b", 1);
+ mkdirs("/dir/dir1");
+ checkStatus("/dir");
+
+ // Non existent path
+ checkStatus("/nonexistent");
+ checkStatus("/nonexistent/a");
+ }
+
+ private void checkStatus(String listdir) throws IOException {
+ final Path listpath = hftpFs.makeQualified(new Path(listdir));
+ listdir = listpath.toString();
+ final FileStatus[] statuslist = hftpFs.listStatus(listpath);
+ for (String directory : filelist) {
+ System.out.println("dir:" + directory);
+ }
+ for (String file : filelist) {
+ System.out.println("file:" + file);
+ }
+ for (FileStatus status : statuslist) {
+ System.out.println("status:" + status.getPath().toString() + " type "
+ + (status.isDir() ? "directory" : "file"));
+ }
+ for (String file : filelist) {
+ boolean found = false;
+ // Consider only file under the list path
+ if (!file.startsWith(listpath.toString()) ||
+ file.equals(listpath.toString())) {
+ continue;
+ }
+ for (FileStatus status : statuslist) {
+ if (status.getPath().toString().equals(file)) {
+ found = true;
+ break;
+ }
+ }
+ Assert.assertTrue("Directory/file not returned in list status " + file,
+ found);
+ }
+ }
+}
|
jaxlaw/hadoop-common
|
d23054c54d7ef3d4968d43481d3f0d4807f39cb4
|
Change to add stack trace in server logs in case of runtime exception in namenode.complete operation. The jira is: HADOOP-6343 The patch is : https://issues.apache.org/jira/secure/attachment/12424150/HADOOP-6343.0-20.patch
|
diff --git a/src/core/org/apache/hadoop/ipc/RPC.java b/src/core/org/apache/hadoop/ipc/RPC.java
index 94b0ec8..5fe7b6f 100644
--- a/src/core/org/apache/hadoop/ipc/RPC.java
+++ b/src/core/org/apache/hadoop/ipc/RPC.java
@@ -36,540 +36,543 @@ import javax.security.auth.Subject;
import javax.security.auth.login.LoginException;
import org.apache.commons.logging.*;
import org.apache.hadoop.io.*;
import org.apache.hadoop.net.NetUtils;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.authorize.AuthorizationException;
import org.apache.hadoop.security.authorize.ServiceAuthorizationManager;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.metrics.util.MetricsTimeVaryingRate;
/** A simple RPC mechanism.
*
* A <i>protocol</i> is a Java interface. All parameters and return types must
* be one of:
*
* <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
* <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
* <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
*
* <li>a {@link String}; or</li>
*
* <li>a {@link Writable}; or</li>
*
* <li>an array of the above types</li> </ul>
*
* All methods in the protocol should throw only IOException. No field data of
* the protocol instance is transmitted.
*/
public class RPC {
private static final Log LOG =
LogFactory.getLog(RPC.class);
private RPC() {} // no public ctor
/** A method invocation, including the method name and its parameters.*/
private static class Invocation implements Writable, Configurable {
private String methodName;
private Class[] parameterClasses;
private Object[] parameters;
private Configuration conf;
public Invocation() {}
public Invocation(Method method, Object[] parameters) {
this.methodName = method.getName();
this.parameterClasses = method.getParameterTypes();
this.parameters = parameters;
}
/** The name of the method invoked. */
public String getMethodName() { return methodName; }
/** The parameter classes. */
public Class[] getParameterClasses() { return parameterClasses; }
/** The parameter instances. */
public Object[] getParameters() { return parameters; }
public void readFields(DataInput in) throws IOException {
methodName = UTF8.readString(in);
parameters = new Object[in.readInt()];
parameterClasses = new Class[parameters.length];
ObjectWritable objectWritable = new ObjectWritable();
for (int i = 0; i < parameters.length; i++) {
parameters[i] = ObjectWritable.readObject(in, objectWritable, this.conf);
parameterClasses[i] = objectWritable.getDeclaredClass();
}
}
public void write(DataOutput out) throws IOException {
UTF8.writeString(out, methodName);
out.writeInt(parameterClasses.length);
for (int i = 0; i < parameterClasses.length; i++) {
ObjectWritable.writeObject(out, parameters[i], parameterClasses[i],
conf);
}
}
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(methodName);
buffer.append("(");
for (int i = 0; i < parameters.length; i++) {
if (i != 0)
buffer.append(", ");
buffer.append(parameters[i]);
}
buffer.append(")");
return buffer.toString();
}
public void setConf(Configuration conf) {
this.conf = conf;
}
public Configuration getConf() {
return this.conf;
}
}
/* Cache a client using its socket factory as the hash key */
static private class ClientCache {
private Map<SocketFactory, Client> clients =
new HashMap<SocketFactory, Client>();
/**
* Construct & cache an IPC client with the user-provided SocketFactory
* if no cached client exists.
*
* @param conf Configuration
* @return an IPC client
*/
private synchronized Client getClient(Configuration conf,
SocketFactory factory) {
// Construct & cache client. The configuration is only used for timeout,
// and Clients have connection pools. So we can either (a) lose some
// connection pooling and leak sockets, or (b) use the same timeout for all
// configurations. Since the IPC is usually intended globally, not
// per-job, we choose (a).
Client client = clients.get(factory);
if (client == null) {
client = new Client(ObjectWritable.class, conf, factory);
clients.put(factory, client);
} else {
client.incCount();
}
return client;
}
/**
* Construct & cache an IPC client with the default SocketFactory
* if no cached client exists.
*
* @param conf Configuration
* @return an IPC client
*/
private synchronized Client getClient(Configuration conf) {
return getClient(conf, SocketFactory.getDefault());
}
/**
* Stop a RPC client connection
* A RPC client is closed only when its reference count becomes zero.
*/
private void stopClient(Client client) {
synchronized (this) {
client.decCount();
if (client.isZeroReference()) {
clients.remove(client.getSocketFactory());
}
}
if (client.isZeroReference()) {
client.stop();
}
}
}
private static ClientCache CLIENTS=new ClientCache();
private static class Invoker implements InvocationHandler {
private InetSocketAddress address;
private UserGroupInformation ticket;
private Client client;
private boolean isClosed = false;
public Invoker(InetSocketAddress address, UserGroupInformation ticket,
Configuration conf, SocketFactory factory) {
this.address = address;
this.ticket = ticket;
this.client = CLIENTS.getClient(conf, factory);
}
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
final boolean logDebug = LOG.isDebugEnabled();
long startTime = 0;
if (logDebug) {
startTime = System.currentTimeMillis();
}
ObjectWritable value = (ObjectWritable)
client.call(new Invocation(method, args), address,
method.getDeclaringClass(), ticket);
if (logDebug) {
long callTime = System.currentTimeMillis() - startTime;
LOG.debug("Call: " + method.getName() + " " + callTime);
}
return value.get();
}
/* close the IPC client that's responsible for this invoker's RPCs */
synchronized private void close() {
if (!isClosed) {
isClosed = true;
CLIENTS.stopClient(client);
}
}
}
/**
* A version mismatch for the RPC protocol.
*/
public static class VersionMismatch extends IOException {
private String interfaceName;
private long clientVersion;
private long serverVersion;
/**
* Create a version mismatch exception
* @param interfaceName the name of the protocol mismatch
* @param clientVersion the client's version of the protocol
* @param serverVersion the server's version of the protocol
*/
public VersionMismatch(String interfaceName, long clientVersion,
long serverVersion) {
super("Protocol " + interfaceName + " version mismatch. (client = " +
clientVersion + ", server = " + serverVersion + ")");
this.interfaceName = interfaceName;
this.clientVersion = clientVersion;
this.serverVersion = serverVersion;
}
/**
* Get the interface name
* @return the java class name
* (eg. org.apache.hadoop.mapred.InterTrackerProtocol)
*/
public String getInterfaceName() {
return interfaceName;
}
/**
* Get the client's preferred version
*/
public long getClientVersion() {
return clientVersion;
}
/**
* Get the server's agreed to version.
*/
public long getServerVersion() {
return serverVersion;
}
}
public static VersionedProtocol waitForProxy(Class protocol,
long clientVersion,
InetSocketAddress addr,
Configuration conf
) throws IOException {
return waitForProxy(protocol, clientVersion, addr, conf, Long.MAX_VALUE);
}
/**
* Get a proxy connection to a remote server
* @param protocol protocol class
* @param clientVersion client version
* @param addr remote address
* @param conf configuration to use
* @param timeout time in milliseconds before giving up
* @return the proxy
* @throws IOException if the far end through a RemoteException
*/
static VersionedProtocol waitForProxy(Class protocol,
long clientVersion,
InetSocketAddress addr,
Configuration conf,
long timeout
) throws IOException {
long startTime = System.currentTimeMillis();
IOException ioe;
while (true) {
try {
return getProxy(protocol, clientVersion, addr, conf);
} catch(ConnectException se) { // namenode has not been started
LOG.info("Server at " + addr + " not available yet, Zzzzz...");
ioe = se;
} catch(SocketTimeoutException te) { // namenode is busy
LOG.info("Problem connecting to server: " + addr);
ioe = te;
}
// check if timed out
if (System.currentTimeMillis()-timeout >= startTime) {
throw ioe;
}
// wait for retry
try {
Thread.sleep(1000);
} catch (InterruptedException ie) {
// IGNORE
}
}
}
/** Construct a client-side proxy object that implements the named protocol,
* talking to a server at the named address. */
public static VersionedProtocol getProxy(Class<?> protocol,
long clientVersion, InetSocketAddress addr, Configuration conf,
SocketFactory factory) throws IOException {
UserGroupInformation ugi = null;
try {
ugi = UserGroupInformation.login(conf);
} catch (LoginException le) {
throw new RuntimeException("Couldn't login!");
}
return getProxy(protocol, clientVersion, addr, ugi, conf, factory);
}
/** Construct a client-side proxy object that implements the named protocol,
* talking to a server at the named address. */
public static VersionedProtocol getProxy(Class<?> protocol,
long clientVersion, InetSocketAddress addr, UserGroupInformation ticket,
Configuration conf, SocketFactory factory) throws IOException {
VersionedProtocol proxy =
(VersionedProtocol) Proxy.newProxyInstance(
protocol.getClassLoader(), new Class[] { protocol },
new Invoker(addr, ticket, conf, factory));
long serverVersion = proxy.getProtocolVersion(protocol.getName(),
clientVersion);
if (serverVersion == clientVersion) {
return proxy;
} else {
throw new VersionMismatch(protocol.getName(), clientVersion,
serverVersion);
}
}
/**
* Construct a client-side proxy object with the default SocketFactory
*
* @param protocol
* @param clientVersion
* @param addr
* @param conf
* @return a proxy instance
* @throws IOException
*/
public static VersionedProtocol getProxy(Class<?> protocol,
long clientVersion, InetSocketAddress addr, Configuration conf)
throws IOException {
return getProxy(protocol, clientVersion, addr, conf, NetUtils
.getDefaultSocketFactory(conf));
}
/**
* Stop this proxy and release its invoker's resource
* @param proxy the proxy to be stopped
*/
public static void stopProxy(VersionedProtocol proxy) {
if (proxy!=null) {
((Invoker)Proxy.getInvocationHandler(proxy)).close();
}
}
/**
* Expert: Make multiple, parallel calls to a set of servers.
* @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead
*/
public static Object[] call(Method method, Object[][] params,
InetSocketAddress[] addrs, Configuration conf)
throws IOException {
return call(method, params, addrs, null, conf);
}
/** Expert: Make multiple, parallel calls to a set of servers. */
public static Object[] call(Method method, Object[][] params,
InetSocketAddress[] addrs,
UserGroupInformation ticket, Configuration conf)
throws IOException {
Invocation[] invocations = new Invocation[params.length];
for (int i = 0; i < params.length; i++)
invocations[i] = new Invocation(method, params[i]);
Client client = CLIENTS.getClient(conf);
try {
Writable[] wrappedValues =
client.call(invocations, addrs, method.getDeclaringClass(), ticket);
if (method.getReturnType() == Void.TYPE) {
return null;
}
Object[] values =
(Object[])Array.newInstance(method.getReturnType(), wrappedValues.length);
for (int i = 0; i < values.length; i++)
if (wrappedValues[i] != null)
values[i] = ((ObjectWritable)wrappedValues[i]).get();
return values;
} finally {
CLIENTS.stopClient(client);
}
}
/** Construct a server for a protocol implementation instance listening on a
* port and address. */
public static Server getServer(final Object instance, final String bindAddress, final int port, Configuration conf)
throws IOException {
return getServer(instance, bindAddress, port, 1, false, conf);
}
/** Construct a server for a protocol implementation instance listening on a
* port and address. */
public static Server getServer(final Object instance, final String bindAddress, final int port,
final int numHandlers,
final boolean verbose, Configuration conf)
throws IOException {
return new Server(instance, conf, bindAddress, port, numHandlers, verbose);
}
/** An RPC Server. */
public static class Server extends org.apache.hadoop.ipc.Server {
private Object instance;
private boolean verbose;
private boolean authorize = false;
/** Construct an RPC server.
* @param instance the instance whose methods will be called
* @param conf the configuration to use
* @param bindAddress the address to bind on to listen for connection
* @param port the port to listen for connections on
*/
public Server(Object instance, Configuration conf, String bindAddress, int port)
throws IOException {
this(instance, conf, bindAddress, port, 1, false);
}
private static String classNameBase(String className) {
String[] names = className.split("\\.", -1);
if (names == null || names.length == 0) {
return className;
}
return names[names.length-1];
}
/** Construct an RPC server.
* @param instance the instance whose methods will be called
* @param conf the configuration to use
* @param bindAddress the address to bind on to listen for connection
* @param port the port to listen for connections on
* @param numHandlers the number of method handler threads to run
* @param verbose whether each call should be logged
*/
public Server(Object instance, Configuration conf, String bindAddress, int port,
int numHandlers, boolean verbose) throws IOException {
super(bindAddress, port, Invocation.class, numHandlers, conf, classNameBase(instance.getClass().getName()));
this.instance = instance;
this.verbose = verbose;
this.authorize =
conf.getBoolean(ServiceAuthorizationManager.SERVICE_AUTHORIZATION_CONFIG,
false);
}
public Writable call(Class<?> protocol, Writable param, long receivedTime)
throws IOException {
try {
Invocation call = (Invocation)param;
if (verbose) log("Call: " + call);
Method method =
protocol.getMethod(call.getMethodName(),
call.getParameterClasses());
method.setAccessible(true);
long startTime = System.currentTimeMillis();
Object value = method.invoke(instance, call.getParameters());
int processingTime = (int) (System.currentTimeMillis() - startTime);
int qTime = (int) (startTime-receivedTime);
if (LOG.isDebugEnabled()) {
LOG.debug("Served: " + call.getMethodName() +
" queueTime= " + qTime +
" procesingTime= " + processingTime);
}
rpcMetrics.rpcQueueTime.inc(qTime);
rpcMetrics.rpcProcessingTime.inc(processingTime);
MetricsTimeVaryingRate m =
(MetricsTimeVaryingRate) rpcMetrics.registry.get(call.getMethodName());
if (m == null) {
try {
m = new MetricsTimeVaryingRate(call.getMethodName(),
rpcMetrics.registry);
} catch (IllegalArgumentException iae) {
// the metrics has been registered; re-fetch the handle
LOG.info("Error register " + call.getMethodName(), iae);
m = (MetricsTimeVaryingRate) rpcMetrics.registry.get(
call.getMethodName());
}
}
m.inc(processingTime);
if (verbose) log("Return: "+value);
return new ObjectWritable(method.getReturnType(), value);
} catch (InvocationTargetException e) {
Throwable target = e.getTargetException();
if (target instanceof IOException) {
throw (IOException)target;
} else {
IOException ioe = new IOException(target.toString());
ioe.setStackTrace(target.getStackTrace());
throw ioe;
}
} catch (Throwable e) {
+ if (!(e instanceof IOException)) {
+ LOG.error("Unexpected throwable object ", e);
+ }
IOException ioe = new IOException(e.toString());
ioe.setStackTrace(e.getStackTrace());
throw ioe;
}
}
@Override
public void authorize(Subject user, ConnectionHeader connection)
throws AuthorizationException {
if (authorize) {
Class<?> protocol = null;
try {
protocol = getProtocolClass(connection.getProtocol(), getConf());
} catch (ClassNotFoundException cfne) {
throw new AuthorizationException("Unknown protocol: " +
connection.getProtocol());
}
ServiceAuthorizationManager.authorize(user, protocol);
}
}
}
private static void log(String value) {
if (value!= null && value.length() > 55)
value = value.substring(0, 55)+"...";
LOG.info(value);
}
}
|
djsun/policy-categories
|
817524d46bc84adce7c1b7da3b855c4a0a7ba23e
|
Add Geospatial.
|
diff --git a/master.txt b/master.txt
index 403fd7e..fa93599 100644
--- a/master.txt
+++ b/master.txt
@@ -1,80 +1,81 @@
Agriculture
Arts
Banking
Births, Deaths, Marriages, and Divorces
Budget
Business
Campaign Finance
Children
Civil Liberties
Civil Rights
Climate
Communications
Construction
Courts
Crime
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Aid
Foreign Commerce
Foreign Policy
Geography
+Geospatial
Global Economy
Governance
Health
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development
Internet
Labor
Law
Law Enforcement
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Nutrition
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science
Science & Technology
Social Insurance
Social Policy
Taxes
Technology
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
diff --git a/short_list.txt b/short_list.txt
index 1741524..e74db90 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,47 +1,47 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment / Labor
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
-Geography
+Geography / Geospatial
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
Monetary Policy
Metropolitan / Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
diff --git a/shorter_list.txt b/shorter_list.txt
index b5612ec..52d3093 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,36 +1,36 @@
Agriculture
Arts
Banking / Insurance / Finance
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information / Internet
Crime / Law Enforcement
Demographics
Economics / Monetary Policy
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
-Geography
+Geography / Geospatial
Governance
Health / Nutrition
Housing / Urban
Immigration
Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
Stimulus / Economic Development
Budget / Fiscal Policy / Taxes
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
ef7bd6391a79b4c81c5b23cf9bdaa3c9c9a1b430
|
Group Monetary Policy with Economics.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 954edfe..b5612ec 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,37 +1,36 @@
Agriculture
Arts
Banking / Insurance / Finance
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information / Internet
Crime / Law Enforcement
Demographics
-Economics
+Economics / Monetary Policy
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
-Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
Stimulus / Economic Development
Budget / Fiscal Policy / Taxes
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
1d9a0b4193dc847441dbc3849c936748b82b594d
|
Group Taxes and Fiscal Policy. Move Finance.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 5517a41..954edfe 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,37 +1,37 @@
Agriculture
Arts
-Banking / Finance / Fiscal Policy
+Banking / Insurance / Finance
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information / Internet
Crime / Law Enforcement
Demographics
Economics
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
Stimulus / Economic Development
-Taxes / Budget
+Budget / Fiscal Policy / Taxes
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
597aefa210f63e9074ddd1014ad5d23569eae864
|
Insurance is an industry, too specific.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 4784f0b..5517a41 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,38 +1,37 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information / Internet
Crime / Law Enforcement
Demographics
Economics
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
-Insurance
Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
Stimulus / Economic Development
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
35d0333d983f10c3f22d5597944ee6d1634497e2
|
Prune Social Policy.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 8da2ed3..4784f0b 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,39 +1,38 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information / Internet
Crime / Law Enforcement
Demographics
Economics
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Insurance
Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
-Social Policy
Stimulus / Economic Development
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
89a5806dfc789d9e6ec3752265e390aecac8cd7d
|
Group Internet with Communications
|
diff --git a/shorter_list.txt b/shorter_list.txt
index d7c7244..8da2ed3 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,40 +1,39 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
-Communications / Information
+Communications / Information / Internet
Crime / Law Enforcement
Demographics
Economics
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Insurance
-Internet
Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
Social Policy
Stimulus / Economic Development
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
1a0e2f138b7f35c4524564d6d9518c05b7c1e458
|
Alphabetize items on one line
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 5efc4f5..d7c7244 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,40 +1,40 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Insurance
-International Development / Foreign Aid
Internet
+Foreign Aid / International Development
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology / Innovation
Social Policy
Stimulus / Economic Development
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
b90304781408e9936687299f99c4b7cb1a6c6c42
|
Group Innovation with Science & Technology
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 9429303..5efc4f5 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,40 +1,40 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
-Science & Technology
+Science & Technology / Innovation
Social Policy
-Stimulus / Economic Development / Innovation
+Stimulus / Economic Development
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
147457a1a157eeebceec07f9be21a118ad991797
|
Alphabetize items in slashed lists
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 117c349..9429303 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,40 +1,40 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
+Campaign Finance / Elections / Politics
Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
-Elections / Politics / Campaign Finance
Employment / Labor
Energy / Natural Resources
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
19b92a199b602e46d77fb7fd08b4970eb1a1a185
|
Group Families with Human Services, Children
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 7ac118a..117c349 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,41 +1,40 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
-Children / Human Services
+Children / Families / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment / Labor
Energy / Natural Resources
-Families
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
e90e543322388e7713fab01eec8a4745a68f528a
|
Group Children and Human Services.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index ed94f30..7ac118a 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,42 +1,41 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
-Children
+Children / Human Services
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment / Labor
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
-Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
Metropolitan / Municipal
Monetary Policy
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
9545ec1d764024c6d7e3db49a6445b20cd00505f
|
Group Metropolitan and Municipal
|
diff --git a/short_list.txt b/short_list.txt
index 591e3e0..1741524 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,48 +1,47 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment / Labor
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
-Metropolitan
Monetary Policy
-Municipal
+Metropolitan / Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
diff --git a/shorter_list.txt b/shorter_list.txt
index 1fe55cc..ed94f30 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,43 +1,42 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment / Labor
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Law / Courts
-Metropolitan
+Metropolitan / Municipal
Monetary Policy
-Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
6fd8fd17d9248a6ca5f82cfc925c375b56718742
|
Group Employment and Labor.
|
diff --git a/short_list.txt b/short_list.txt
index 700975b..591e3e0 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,49 +1,48 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
-Employment
+Employment / Labor
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
-Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
diff --git a/shorter_list.txt b/shorter_list.txt
index 8ce75d5..1fe55cc 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,44 +1,43 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
-Employment
+Employment / Labor
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
-Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
4b29c80fe79d81d2f2217ef8d5e0d193fc7c5a20
|
Prune Telecom.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 5553f7a..8ce75d5 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,45 +1,44 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
-Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
5d2f29d264a318f2019965e63085f8a2a3f4a4b3
|
Pruning Global Economy.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index ef05283..5553f7a 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,46 +1,45 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
-Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
dd106f4a1aedbf60da81d8fe399848bee1acc83f
|
Prune Social Insurance.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 2e5342f..ef05283 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,47 +1,46 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
-Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
1d8785e7ad446d247360fa60ef6db3260a20bd44
|
Prune Construction.
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 2fce4c5..2e5342f 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,48 +1,47 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
-Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
|
djsun/policy-categories
|
23c1efaa168216dbb402ba45442019aea3704e56
|
Pruning Wealth from shorter_list
|
diff --git a/shorter_list.txt b/shorter_list.txt
index 700975b..2fce4c5 100644
--- a/shorter_list.txt
+++ b/shorter_list.txt
@@ -1,49 +1,48 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce / Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
-Wealth
|
djsun/policy-categories
|
df2b63c5e24548d3b5842c7498930aace377ffe0
|
Created shorter_list based off of short_list
|
diff --git a/shorter_list.txt b/shorter_list.txt
new file mode 100644
index 0000000..700975b
--- /dev/null
+++ b/shorter_list.txt
@@ -0,0 +1,49 @@
+Agriculture
+Arts
+Banking / Finance / Fiscal Policy
+Business
+Children
+Civil Rights & Liberties
+Climate / Environment
+Communications / Information
+Construction
+Crime / Law Enforcement
+Demographics
+Economics
+Education
+Elections / Politics / Campaign Finance
+Employment
+Energy / Natural Resources
+Families
+Foreign Commerce / Foreign Policy
+Geography
+Global Economy
+Governance
+Health / Nutrition
+Housing / Urban
+Human Services
+Immigration
+Insurance
+International Development / Foreign Aid
+Internet
+Labor
+Law / Courts
+Metropolitan
+Monetary Policy
+Municipal
+National Security
+Philanthropy
+Poverty / Welfare
+Public Safety
+Science & Technology
+Social Insurance
+Social Policy
+Stimulus / Economic Development / Innovation
+Taxes / Budget
+Telecom
+Trade
+Transportation
+Travel / Recreation
+Utilities
+Veterans Affairs
+Wealth
|
djsun/policy-categories
|
35a1ece4f002418236c14b76b55bca6c12d9fb3e
|
Group Foreign Commerce and Foreign Policy
|
diff --git a/short_list.txt b/short_list.txt
index a716bcb..700975b 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,50 +1,49 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
-Foreign Commerce
-Foreign Policy
+Foreign Commerce / Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
|
djsun/policy-categories
|
cff329191074c904eecaa86a8ea3a451fc9e7618
|
Group Poverty and Welfare
|
diff --git a/short_list.txt b/short_list.txt
index 64b5d8b..a716bcb 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,51 +1,50 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
-Poverty
+Poverty / Welfare
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
-Welfare
|
djsun/policy-categories
|
b50c89dcbccea39f9d09c1dafd20aa28a0a297ef
|
Economic Data, Studies -> Economics
|
diff --git a/short_list.txt b/short_list.txt
index 06e5ab3..64b5d8b 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,52 +1,51 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
-Economic Data
-Economic Studies
+Economics
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty
Public Safety
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
6d4be7c5556248ed70c53f950e2b6acdc225ca79
|
Regulatory is too broad
|
diff --git a/short_list.txt b/short_list.txt
index 897f4a4..06e5ab3 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,53 +1,52 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economic Data
Economic Studies
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty
Public Safety
-Regulatory
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
14a7fc5d2278ac97d07e15da930e76c7ccddce49
|
Prices is too vague
|
diff --git a/short_list.txt b/short_list.txt
index 6a10cad..897f4a4 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,54 +1,53 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economic Data
Economic Studies
Education
Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Poverty
-Prices
Public Safety
Regulatory
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
5a1ba7363a66621e5234f9e7b5b1411c9cfd000a
|
Group Elections, Politics, Campaign Finance
|
diff --git a/short_list.txt b/short_list.txt
index 78b9b79..6a10cad 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,56 +1,54 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
-Campaign Finance
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economic Data
Economic Studies
Education
-Elections
+Elections / Politics / Campaign Finance
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
-Politics
Poverty
Prices
Public Safety
Regulatory
Science & Technology
Social Insurance
Social Policy
Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
861c5b48db8162b88e346f295b4cb1b2e857ca80
|
Group Innovation with Economic Development
|
diff --git a/short_list.txt b/short_list.txt
index 2d5b0d4..78b9b79 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,57 +1,56 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
-Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Regulatory
Science & Technology
Social Insurance
Social Policy
-Stimulus / Economic Development
+Stimulus / Economic Development / Innovation
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
c7d6c82e87725ffb97924c756d3675c6062da4ec
|
minor: alphabetized list
|
diff --git a/short_list.txt b/short_list.txt
index edfd953..2d5b0d4 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,57 +1,57 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
-Stimulus / Economic Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Regulatory
Science & Technology
Social Insurance
Social Policy
+Stimulus / Economic Development
Taxes / Budget
Telecom
Trade
Transportation
Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
612a99ed9455de55af3e438ab2deee5703e18224
|
Group Travel and Recreation
|
diff --git a/short_list.txt b/short_list.txt
index 29ed90d..edfd953 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,58 +1,57 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Stimulus / Economic Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
-Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
-Travel
+Travel / Recreation
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
d9b9bd5e8904eba0926eb9ad06acb5a36162562e
|
Group Climate and Environment
|
diff --git a/short_list.txt b/short_list.txt
index e94ce5a..29ed90d 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,59 +1,58 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
-Climate
+Climate / Environment
Communications / Information
Construction
Crime / Law Enforcement
Demographics
Stimulus / Economic Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
-Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
24eb7725bbf0f9e435eef683b8044323768aa9ba
|
Group Communications and Information
|
diff --git a/short_list.txt b/short_list.txt
index 324916c..e94ce5a 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,60 +1,59 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
-Communications
+Communications / Information
Construction
Crime / Law Enforcement
Demographics
Stimulus / Economic Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
-Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
0019cc560a52582ca9119dce0d7d583e8b222262
|
Remove Urban (part of Housing)
|
diff --git a/short_list.txt b/short_list.txt
index 74d01b8..324916c 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,61 +1,60 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Stimulus / Economic Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
-Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
76140a1db32e2fb6177530edc5f59a09ad0b68b1
|
Add Stimulus to Economic Development
|
diff --git a/short_list.txt b/short_list.txt
index 3e5982a..74d01b8 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,61 +1,61 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
-Development
+Stimulus / Economic Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing / Urban
Human Services
Immigration
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
b1bb208b8a7bfed98eca63238d193bdfc4069bff
|
Add Urban to Housing
|
diff --git a/short_list.txt b/short_list.txt
index c613f12..3e5982a 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,61 +1,61 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
-Housing
+Housing / Urban
Human Services
Immigration
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
bcb89c890a1e3ed728b55836384f21ad2b2c3abc
|
Income is included in Employment
|
diff --git a/short_list.txt b/short_list.txt
index af8ec64..c613f12 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,62 +1,61 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Development
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
-Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
164a88ed9a2ae364d0218ff095263a0056d7d7fb
|
Earnings is included in Employment
|
diff --git a/short_list.txt b/short_list.txt
index 07c6cd0..af8ec64 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,63 +1,62 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Development
-Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
57033bc10c371dc85ded10a04c1b2bf999787a74
|
Licensing Data seems relatively unimportant
|
diff --git a/short_list.txt b/short_list.txt
index a6d5e5c..07c6cd0 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,64 +1,63 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
-Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes / Budget
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
49f15a85841d7baaebd6750a854126a4c7f3c4b4
|
Group Taxes and Budget
|
diff --git a/short_list.txt b/short_list.txt
index d5d6f7a..a6d5e5c 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,65 +1,64 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
-Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
-Taxes
+Taxes / Budget
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
3408cc32dab9843b4ec13f579a71bd2bab879eb6
|
Population -> Demographics
|
diff --git a/short_list.txt b/short_list.txt
index 3140e45..d5d6f7a 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,66 +1,65 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law / Courts
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Philanthropy
Politics
-Population
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
a7d91cdc639ca50e80261177541ac818a63c8b3e
|
Group Energy and Natural Resources
|
diff --git a/short_list.txt b/short_list.txt
index 7847754..3140e45 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,67 +1,66 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
-Law / Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
-Energy
+Energy / Natural Resources
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
+Law / Courts
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
-Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
b1244ab48082618555509113afe75dee425160d3
|
Prisons -> Crime / Law Enforcement
|
diff --git a/short_list.txt b/short_list.txt
index 32e3b26..7847754 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,68 +1,67 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Law / Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Environment
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
-Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
9b6cbd6add8a88820617aae6c1d0c375c3dfb743
|
Expenditures are not a policy area
|
diff --git a/short_list.txt b/short_list.txt
index e442839..32e3b26 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,69 +1,68 @@
Agriculture
Arts
Banking / Finance / Fiscal Policy
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Law / Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Environment
-Expenditures
Families
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
06618078d7db4350d8b824cb0ac15f7e3b1052a8
|
Group Banking, Finance, Fiscal Policy
|
diff --git a/short_list.txt b/short_list.txt
index 2ce717e..e442839 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,71 +1,69 @@
Agriculture
Arts
-Banking
+Banking / Finance / Fiscal Policy
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Law / Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Environment
Expenditures
Families
-Finance
-Fiscal Policy
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
6a8d5184f6c59eb367c174a4acf4993522fb6712
|
Group Law and Courts
|
diff --git a/short_list.txt b/short_list.txt
index e33e6c5..2ce717e 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,72 +1,71 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
-Courts
+Law / Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
-Law
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
556cd77c87c97da9cfd076ac35def3e68b596935
|
Entitlement programs are not a policy area...
|
diff --git a/short_list.txt b/short_list.txt
index 97d376f..e33e6c5 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,73 +1,72 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
-Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development / Foreign Aid
Internet
Labor
Law
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
2f289261e3d3c59fe7a889e229ba8fbe14a0c5e0
|
group Foreign Aid and International Development
|
diff --git a/short_list.txt b/short_list.txt
index 2db0648..97d376f 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,74 +1,73 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
-Foreign Aid
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
-International Development
+International Development / Foreign Aid
Internet
Labor
Law
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
2c4dc614633a05287a838b5da32582894367455e
|
group health and nutrition
|
diff --git a/short_list.txt b/short_list.txt
index 7938f7d..2db0648 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,75 +1,74 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Courts
Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Aid
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
-Health
+Health / Nutrition
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development
Internet
Labor
Law
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
-Nutrition
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
11e1ada421e37bf0aa433c81ee4590999fd89cf9
|
group crime and law enforcement
|
diff --git a/short_list.txt b/short_list.txt
index 265fabb..7938f7d 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,76 +1,75 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Courts
-Crime
+Crime / Law Enforcement
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Aid
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development
Internet
Labor
Law
-Law Enforcement
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Nutrition
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science & Technology
Social Insurance
Social Policy
Taxes
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
13f61152b82029baa5ee831deeaedbccdd206a24
|
group science and technology
|
diff --git a/short_list.txt b/short_list.txt
index 06a8744..265fabb 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,78 +1,76 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
Civil Rights & Liberties
Climate
Communications
Construction
Courts
Crime
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Aid
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development
Internet
Labor
Law
Law Enforcement
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Nutrition
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
-Science
Science & Technology
Social Insurance
Social Policy
Taxes
-Technology
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
bddd08bd723a78994275b6ca6128a59a5fcb2039
|
group civil rights and liberties
|
diff --git a/short_list.txt b/short_list.txt
index a277472..06a8744 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,79 +1,78 @@
Agriculture
Arts
Banking
Budget
Business
Campaign Finance
Children
-Civil Liberties
-Civil Rights
+Civil Rights & Liberties
Climate
Communications
Construction
Courts
Crime
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Aid
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development
Internet
Labor
Law
Law Enforcement
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Nutrition
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science
Science & Technology
Social Insurance
Social Policy
Taxes
Technology
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
7d857fcd82e8069320cbf7f9fb060fc578cae04a
|
remove births, deaths, marriages, divorces
|
diff --git a/short_list.txt b/short_list.txt
index 403fd7e..a277472 100644
--- a/short_list.txt
+++ b/short_list.txt
@@ -1,80 +1,79 @@
Agriculture
Arts
Banking
-Births, Deaths, Marriages, and Divorces
Budget
Business
Campaign Finance
Children
Civil Liberties
Civil Rights
Climate
Communications
Construction
Courts
Crime
Demographics
Development
Earnings
Economic Data
Economic Studies
Education
Elections
Employment
Energy
Entitlements
Environment
Expenditures
Families
Finance
Fiscal Policy
Foreign Aid
Foreign Commerce
Foreign Policy
Geography
Global Economy
Governance
Health
Housing
Human Services
Immigration
Income
Information Policy
Innovation
Insurance
International Development
Internet
Labor
Law
Law Enforcement
Licensing Data
Metropolitan
Monetary Policy
Municipal
National Security
Natural Resources
Nutrition
Philanthropy
Politics
Population
Poverty
Prices
Prisons
Public Safety
Recreation
Regulatory
Science
Science & Technology
Social Insurance
Social Policy
Taxes
Technology
Telecom
Trade
Transportation
Travel
Urban
Utilities
Veterans Affairs
Wealth
Welfare
|
djsun/policy-categories
|
5b23b024df15e0de03e4dcd06375e509a6b01459
|
start the short list (from master list)
|
diff --git a/short_list.txt b/short_list.txt
new file mode 100644
index 0000000..403fd7e
--- /dev/null
+++ b/short_list.txt
@@ -0,0 +1,80 @@
+Agriculture
+Arts
+Banking
+Births, Deaths, Marriages, and Divorces
+Budget
+Business
+Campaign Finance
+Children
+Civil Liberties
+Civil Rights
+Climate
+Communications
+Construction
+Courts
+Crime
+Demographics
+Development
+Earnings
+Economic Data
+Economic Studies
+Education
+Elections
+Employment
+Energy
+Entitlements
+Environment
+Expenditures
+Families
+Finance
+Fiscal Policy
+Foreign Aid
+Foreign Commerce
+Foreign Policy
+Geography
+Global Economy
+Governance
+Health
+Housing
+Human Services
+Immigration
+Income
+Information Policy
+Innovation
+Insurance
+International Development
+Internet
+Labor
+Law
+Law Enforcement
+Licensing Data
+Metropolitan
+Monetary Policy
+Municipal
+National Security
+Natural Resources
+Nutrition
+Philanthropy
+Politics
+Population
+Poverty
+Prices
+Prisons
+Public Safety
+Recreation
+Regulatory
+Science
+Science & Technology
+Social Insurance
+Social Policy
+Taxes
+Technology
+Telecom
+Trade
+Transportation
+Travel
+Urban
+Utilities
+Veterans Affairs
+Wealth
+Welfare
|
djsun/policy-categories
|
d25a99486673642b07cb723fe0492fdbeaff143d
|
early draft
|
diff --git a/categories.txt b/categories.txt
new file mode 100644
index 0000000..403fd7e
--- /dev/null
+++ b/categories.txt
@@ -0,0 +1,80 @@
+Agriculture
+Arts
+Banking
+Births, Deaths, Marriages, and Divorces
+Budget
+Business
+Campaign Finance
+Children
+Civil Liberties
+Civil Rights
+Climate
+Communications
+Construction
+Courts
+Crime
+Demographics
+Development
+Earnings
+Economic Data
+Economic Studies
+Education
+Elections
+Employment
+Energy
+Entitlements
+Environment
+Expenditures
+Families
+Finance
+Fiscal Policy
+Foreign Aid
+Foreign Commerce
+Foreign Policy
+Geography
+Global Economy
+Governance
+Health
+Housing
+Human Services
+Immigration
+Income
+Information Policy
+Innovation
+Insurance
+International Development
+Internet
+Labor
+Law
+Law Enforcement
+Licensing Data
+Metropolitan
+Monetary Policy
+Municipal
+National Security
+Natural Resources
+Nutrition
+Philanthropy
+Politics
+Population
+Poverty
+Prices
+Prisons
+Public Safety
+Recreation
+Regulatory
+Science
+Science & Technology
+Social Insurance
+Social Policy
+Taxes
+Technology
+Telecom
+Trade
+Transportation
+Travel
+Urban
+Utilities
+Veterans Affairs
+Wealth
+Welfare
|
mikewest/pysvnhooks
|
9ad5ae25aab900c2601381b4847777f5943f13a0
|
Changing the rules for Jira tickets.
|
diff --git a/PySvnHooks.py b/PySvnHooks.py
index 07d633a..beaae77 100755
--- a/PySvnHooks.py
+++ b/PySvnHooks.py
@@ -1,304 +1,321 @@
# -*- coding: utf-8 -*-
import os, sys, re, urllib, urllib2, base64, socket, smtplib
from subprocess import Popen, PIPE
import settings
if os.path.exists( os.path.join( '/usr', 'local', 'bin', 'svnlook' ) ):
SVNLOOK = os.path.join( '/usr', 'local', 'bin', 'svnlook' )
else:
SVNLOOK = os.path.join( '/usr', 'bin', 'svnlook' )
socket.setdefaulttimeout( 3 ) # If a connection takes more than 3 seconds, abandon it.
class Twitterer( object ):
def tweet( self, text=None, dm_at_user=None):
username = settings.TWITTER_USERNAME
password = settings.TWITTER_PASSWORD
url = 'http://twitter.com/statuses/update.json'
base64string = base64.encodestring( '%s:%s' % (username, password) )[ :-1 ]
authheader = "Basic %s" % base64string
if dm_at_user is not None:
url = 'http://twitter.com/direct_messages/new.json'
data = urllib.urlencode( { 'user': dm_at_user, 'text': text })
else:
data = urllib.urlencode( { 'status' : text } )
req = urllib2.Request( url, data )
req.add_header("Authorization", authheader)
handle = urllib2.urlopen(req)
class Emailer( object ):
def email( self, to, message ):
try:
server = smtplib.SMTP( 'localhost' )
server.sendmail( settings.EMAIL_FROM_ADDRESS, to, message )
server.quit()
return True
except smtplib.SMTPException:
return False
class Tinyizer( object ):
def __init__( self ):
self._tiny = {}
def tinyize( self, url ):
if not self._tiny.has_key( url ):
tiny = 'http://is.gd/api.php?longurl=%s' % urllib.quote( url )
try:
self._tiny[ url ] = urllib.urlopen( tiny ).read()
except Exception:
self._tiny[ url ] = url
return self._tiny[ url ]
class PySvnHook( object ):
"""Base class for PreCommitHook and PostCommitHook"""
#
# Some helpful class constants
#
COMPRESSION_BOT = settings.HEADLESS_USERNAME
- TICKET_REGEX = re.compile( r'[A-Z]+-\d+' )
+ TICKET_REGEX = re.compile( r'[a-zA-Z]+-\d+' )
PRODUCTION_REGEX = re.compile( r'/production/' )
STATICS_REGEX = re.compile( r'/statics/' )
+ NONSDE_REGEX = re.compile( r'/(flashdevelopment|orm)/' )
VIEWER_URL = settings.VIEWER_URL
VALID_RECIPIENTS = settings.VALID_RECIPIENTS
COMMIT_EMAIL_LIST = settings.COMMIT_EMAIL_LIST
def __init__( self, repository = None, txn_name = None, revision = None, twitterer = None, emailer = None, tinyizer = None ):
self._repo = repository
self._txn = txn_name
self._rev = revision
if self._rev is not None:
self._rev = int( self._rev )
self._err = sys.stderr
self._log = self.look( 'log' ).strip()
self._author = self.look( 'author' ).strip()
self._dirs = self.look( 'dirs-changed' ).strip().split( '\n' )
self._tiny = tinyizer or Tinyizer()
self._twitterer = twitterer or Twitterer()
self._emailer = emailer or Emailer()
def run_tests( self ):
return 0
def error( self, message ):
self._err.write( message )
return 1
def look( self, cmd ):
"""
Wrapper for the `svnlook` command. Runs `svnlook CMD`, and passes
in either the provided transaction name or revision.
"""
if self._txn is not None:
result, errors = Popen( [ SVNLOOK, cmd, '-t', self._txn, self._repo ], stdout=PIPE ).communicate()
elif self._rev is not None:
result, errors = Popen( [ SVNLOOK, cmd, '-r %d' % self._rev, self._repo ], stdout=PIPE ).communicate()
if errors:
self._err.write( errors )
sys.exit( 1 )
return result
def tweet( self, text=None, dm_at_user=None):
self._twitterer.tweet( text=text, dm_at_user=dm_at_user )
def email( self, to, message ):
self._emailer.email( to=to, message=message )
def tinyize( self, url ):
return self._tiny.tinyize( url=url )
#
# Bug-based helpers
#
def is_tied_to_bug( self ):
return PySvnHook.TICKET_REGEX.search( self._log )
##########################################################################
#
# Path-based helpers
#
def is_path( self, path_regex ):
dirs = [ path for path in self._dirs if path_regex.search( path ) ]
return ( dirs != [] )
def is_production( self ):
return self.is_path( PySvnHook.PRODUCTION_REGEX )
-
+
+ def is_only_sde( self ):
+ return not self.is_path( PySvnHook.NONSDE_REGEX )
+
def is_static( self ):
return self.is_path( PySvnHook.STATICS_REGEX)
##############################################################################
#
# PreCommitHook
#
class PreCommitHook( PySvnHook ):
"""Tests to be run on `pre-commit`"""
#
# Test Runner
#
def run_tests( self ):
return (
self.is_log_nonempty()
- or self.is_production_change_tied_to_bug()
+ or self.is_sde_change_not_tied_to_bug()
or self.is_headless_user_authorized()
)
#
# Test definitions
#
def is_log_nonempty( self ):
if re.match( r'^$', self._log ):
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
# Your commit message must not be empty. Please enter something #
# descriptive so that we have half a chance of understanding what #
# your changes mean. :) #
# #
#####################################################################
""")
- return 1
- def is_production_change_tied_to_bug( self ):
- if self.is_production() and not self.is_tied_to_bug():
+ def is_sde_change_not_tied_to_bug( self ):
+ if self.is_only_sde() and not self.is_tied_to_bug():
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
-# When committing to production, your commit message _must_ #
-# contain reference to a Jira ticket in the format #
-# `[JIRATYPE-ID]` (e.g. "Fixing [FRONT-123]")' ) #
+# Your commit message must contain at least one reference to a #
+# Jira ticket in the format `[JIRATYPE-ID]` (e.g. "Fixing #
+# [FRONT-123]")' ). If you aren't work on on a Jira ticket, go #
+# create one! Or, if a ticket is _really_ unnecessary, please #
+# use `[WWW-17]` our no-ticket ticket. #
+# #
+# Thanks! #
# #
#####################################################################
""")
def is_headless_user_authorized( self ):
if self.is_static() and not PySvnHook.COMPRESSION_BOT == self._author:
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
# The compression bot is the only user authorized to commit to #
# the statics directory. If you need to adjust the CSS or JS, #
# then please simply edit the source files, and let the bot #
# automagically compress them after you commit your changes. #
# #
#####################################################################
""")
if not self.is_static() and PySvnHook.COMPRESSION_BOT == self._author:
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
# The compression bot is not authorized to commit anywhere other #
# than the designated statics directory. Bad bot. #
# #
#####################################################################
""")
##############################################################################
#
# PreCommitHook
#
class PostCommitHook( PySvnHook ):
"""Tests to be run on `post-commit`"""
#
# Test Runner
#
def run_tests( self ):
errors = self.is_commit_tied_to_bug()
self.communicate()
return ( errors )
#
# Test definitions
#
def is_commit_tied_to_bug( self ):
if not self.is_tied_to_bug():
self.error("""
#####################################################################
# COMMIT WARNING #
# #
# Your commit was saved successfully! A quick note, however: #
# #
# Your commit message doesn't reference any Jira ticket. It'd be #
# great if it did, as it simplifies the whole process of figuring #
# out exactly what each commit aims at, and what changes fix what #
# bugs. It would be brilliant if you could take a minute or two #
# next time to make sure that a Jira ticket exists for the work #
# you're doing, and that it appears in your commit message (e.g. #
# "Fixed [WWW-14]")! #
# #
-# If your change is so small that iyou don't believe that it #
+# If your change is so small that you don't believe that it #
# requires a ticket, please mark it with "[WWW-17]", our #
# "no ticket" ticket. #
# #
#####################################################################
""")
- return 1
+ return 0
return 0
def communicate( self ):
if self.is_production():
self.post_to_twitter()
has_ = lambda y, x: (self.VALID_RECIPIENTS.has_key( x ) and self.VALID_RECIPIENTS[ x ].has_key( y ) and self.VALID_RECIPIENTS[ x ][ y ] is not None)
people = re.findall( r'@([-a-zA-Z0-9_]+)', self._log )
email_list = [ self.VALID_RECIPIENTS[ person ][ 'email' ] for person in people if has_( 'email', person ) ]
dm_list = [ self.VALID_RECIPIENTS[ person ][ 'twitter' ] for person in people if has_( 'twitter', person ) ]
if self.COMMIT_EMAIL_LIST is not None:
email_list.append( self.COMMIT_EMAIL_LIST )
self.send_notification_emails( email_list )
self.send_dms( dm_list )
def send_notification_emails( self, email_list ):
tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
+ params = {
+ 'from': settings.EMAIL_FROM_ADDRESS,
+ 'repo': os.path.basename( self._repo ),
+ 'author': self._author,
+ 'rev': self._rev,
+ 'tinyurl': tinyurl,
+ 'log': self._log,
+ 'to_list': ", ".join( email_list )
+ }
message = """\
-From: [email protected]
+From: %(from)s
To: %(to_list)s
-Subject: %(author)s committed revision #%(rev)d
+Subject: [%(repo)s] %(author)s committed r%(rev)d
-Hello! %(author)s committed revision #%(rev)d to SVN. If you've got a minute, take a look:
+Hello! %(author)s committed r%(rev)d to SVN. If you've got a minute, take a look:
---- COMMIT LOG --------------------------------------------------
%(log)s
* Details at: %(tinyurl)s
------------------------------------------------- /COMMIT LOG ----
Thanks for your attention!
--The Friendly SDE SVN Bot""" % ( { 'author': self._author, 'rev': self._rev, 'tinyurl': tinyurl, 'log': self._log, 'to_list': ", ".join( email_list ) })
+-The Friendly SDE SVN Bot""" % ( params )
+
self.email( to=email_list, message=message )
def post_to_twitter( self ):
tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
author = self._author
if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ].has_key( 'twitter' ):
author = '@%s' % self.VALID_RECIPIENTS[ author ][ 'twitter' ]
- message = "%s committed revision #%d: %s" % ( author, self._rev, tinyurl )
+ message = "%s committed r%d to production: %s" % ( author, self._rev, tinyurl )
self.tweet( message )
def send_dms( self, dm_list ):
tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
author = self._author
if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ].has_key( 'twitter' ):
author = '@%s' % self.VALID_RECIPIENTS[ author ][ 'twitter' ]
for dm in dm_list:
- message = "%s would like you to take a look at revision #%d: %s" % ( self._author, self._rev, tinyurl )
+ message = "%s would like you to take a look at r%d: %s" % ( self._author, self._rev, tinyurl )
self.tweet( message, dm )
|
mikewest/pysvnhooks
|
cb0cc24cfa2430bbeeaefc3510098b9aa090b39d
|
Slight fixes to hooks: two typos, and a few small additions
|
diff --git a/PySvnHooks.py b/PySvnHooks.py
index 8c1b587..07d633a 100755
--- a/PySvnHooks.py
+++ b/PySvnHooks.py
@@ -1,292 +1,304 @@
# -*- coding: utf-8 -*-
import os, sys, re, urllib, urllib2, base64, socket, smtplib
from subprocess import Popen, PIPE
import settings
if os.path.exists( os.path.join( '/usr', 'local', 'bin', 'svnlook' ) ):
SVNLOOK = os.path.join( '/usr', 'local', 'bin', 'svnlook' )
else:
SVNLOOK = os.path.join( '/usr', 'bin', 'svnlook' )
socket.setdefaulttimeout( 3 ) # If a connection takes more than 3 seconds, abandon it.
class Twitterer( object ):
def tweet( self, text=None, dm_at_user=None):
username = settings.TWITTER_USERNAME
password = settings.TWITTER_PASSWORD
url = 'http://twitter.com/statuses/update.json'
base64string = base64.encodestring( '%s:%s' % (username, password) )[ :-1 ]
authheader = "Basic %s" % base64string
if dm_at_user is not None:
url = 'http://twitter.com/direct_messages/new.json'
data = urllib.urlencode( { 'user': dm_at_user, 'text': text })
else:
data = urllib.urlencode( { 'status' : text } )
req = urllib2.Request( url, data )
req.add_header("Authorization", authheader)
handle = urllib2.urlopen(req)
class Emailer( object ):
def email( self, to, message ):
try:
server = smtplib.SMTP( 'localhost' )
server.sendmail( settings.EMAIL_FROM_ADDRESS, to, message )
server.quit()
- return true
+ return True
except smtplib.SMTPException:
- return false
+ return False
class Tinyizer( object ):
def __init__( self ):
self._tiny = {}
def tinyize( self, url ):
if not self._tiny.has_key( url ):
tiny = 'http://is.gd/api.php?longurl=%s' % urllib.quote( url )
try:
self._tiny[ url ] = urllib.urlopen( tiny ).read()
except Exception:
self._tiny[ url ] = url
return self._tiny[ url ]
class PySvnHook( object ):
"""Base class for PreCommitHook and PostCommitHook"""
#
# Some helpful class constants
#
- COMPRESSION_BOT = settings.HEADLESS_USERNAME
- TICKET_REGEX = re.compile( r'[A-Z]+-\d+' )
- PRODUCTION_REGEX = re.compile( r'/production/' )
- STATICS_REGEX = re.compile( r'/statics/' )
- VIEWER_URL = settings.VIEWER_URL
- VALID_RECIPIENTS = settings.VALID_RECIPIENTS
+ COMPRESSION_BOT = settings.HEADLESS_USERNAME
+ TICKET_REGEX = re.compile( r'[A-Z]+-\d+' )
+ PRODUCTION_REGEX = re.compile( r'/production/' )
+ STATICS_REGEX = re.compile( r'/statics/' )
+ VIEWER_URL = settings.VIEWER_URL
+ VALID_RECIPIENTS = settings.VALID_RECIPIENTS
+ COMMIT_EMAIL_LIST = settings.COMMIT_EMAIL_LIST
def __init__( self, repository = None, txn_name = None, revision = None, twitterer = None, emailer = None, tinyizer = None ):
self._repo = repository
self._txn = txn_name
self._rev = revision
if self._rev is not None:
self._rev = int( self._rev )
self._err = sys.stderr
self._log = self.look( 'log' ).strip()
self._author = self.look( 'author' ).strip()
self._dirs = self.look( 'dirs-changed' ).strip().split( '\n' )
self._tiny = tinyizer or Tinyizer()
self._twitterer = twitterer or Twitterer()
self._emailer = emailer or Emailer()
def run_tests( self ):
return 0
def error( self, message ):
self._err.write( message )
return 1
def look( self, cmd ):
"""
Wrapper for the `svnlook` command. Runs `svnlook CMD`, and passes
in either the provided transaction name or revision.
"""
if self._txn is not None:
result, errors = Popen( [ SVNLOOK, cmd, '-t', self._txn, self._repo ], stdout=PIPE ).communicate()
elif self._rev is not None:
result, errors = Popen( [ SVNLOOK, cmd, '-r %d' % self._rev, self._repo ], stdout=PIPE ).communicate()
if errors:
self._err.write( errors )
sys.exit( 1 )
return result
def tweet( self, text=None, dm_at_user=None):
self._twitterer.tweet( text=text, dm_at_user=dm_at_user )
def email( self, to, message ):
self._emailer.email( to=to, message=message )
def tinyize( self, url ):
- self._tiny.tinyize( url=url )
+ return self._tiny.tinyize( url=url )
#
# Bug-based helpers
#
def is_tied_to_bug( self ):
return PySvnHook.TICKET_REGEX.search( self._log )
##########################################################################
#
# Path-based helpers
#
def is_path( self, path_regex ):
dirs = [ path for path in self._dirs if path_regex.search( path ) ]
return ( dirs != [] )
def is_production( self ):
return self.is_path( PySvnHook.PRODUCTION_REGEX )
def is_static( self ):
return self.is_path( PySvnHook.STATICS_REGEX)
##############################################################################
#
# PreCommitHook
#
class PreCommitHook( PySvnHook ):
"""Tests to be run on `pre-commit`"""
#
# Test Runner
#
def run_tests( self ):
return (
self.is_log_nonempty()
or self.is_production_change_tied_to_bug()
or self.is_headless_user_authorized()
)
#
# Test definitions
#
def is_log_nonempty( self ):
if re.match( r'^$', self._log ):
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
# Your commit message must not be empty. Please enter something #
# descriptive so that we have half a chance of understanding what #
# your changes mean. :) #
# #
#####################################################################
""")
return 1
def is_production_change_tied_to_bug( self ):
if self.is_production() and not self.is_tied_to_bug():
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
-# Your commit message should contain reference to a Jira ticket #
-# in the format `[JIRATYPE-ID]` (e.g. "Fixing [FRONT-123]")' ) #
+# When committing to production, your commit message _must_ #
+# contain reference to a Jira ticket in the format #
+# `[JIRATYPE-ID]` (e.g. "Fixing [FRONT-123]")' ) #
# #
#####################################################################
""")
def is_headless_user_authorized( self ):
if self.is_static() and not PySvnHook.COMPRESSION_BOT == self._author:
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
# The compression bot is the only user authorized to commit to #
# the statics directory. If you need to adjust the CSS or JS, #
# then please simply edit the source files, and let the bot #
# automagically compress them after you commit your changes. #
# #
#####################################################################
""")
if not self.is_static() and PySvnHook.COMPRESSION_BOT == self._author:
return self.error( """
#####################################################################
# COMMIT FAILURE #
# #
# The compression bot is not authorized to commit anywhere other #
# than the designated statics directory. Bad bot. #
# #
#####################################################################
""")
##############################################################################
#
# PreCommitHook
#
class PostCommitHook( PySvnHook ):
"""Tests to be run on `post-commit`"""
#
# Test Runner
#
def run_tests( self ):
errors = self.is_commit_tied_to_bug()
self.communicate()
return ( errors )
#
# Test definitions
#
def is_commit_tied_to_bug( self ):
if not self.is_tied_to_bug():
self.error("""
#####################################################################
# COMMIT WARNING #
# #
# Your commit was saved successfully! A quick note, however: #
# #
# Your commit message doesn't reference any Jira ticket. It'd be #
# great if it did, as it simplifies the whole process of figuring #
# out exactly what each commit aims at, and what changes fix what #
# bugs. It would be brilliant if you could take a minute or two #
# next time to make sure that a Jira ticket exists for the work #
# you're doing, and that it appears in your commit message (e.g. #
# "Fixed [WWW-14]")! #
# #
-# If your change is so small that it probably doesn't deserve a #
-# ticket, please mark it with "[WWW-17]", our "no ticket" ticket. #
+# If your change is so small that iyou don't believe that it #
+# requires a ticket, please mark it with "[WWW-17]", our #
+# "no ticket" ticket. #
# #
#####################################################################
""")
return 1
return 0
def communicate( self ):
if self.is_production():
self.post_to_twitter()
- has_ = lambda y, x: (self.VALID_RECIPIENTS.has_key( x ) and self.VALID_RECIPIENTS[ x ][ y ] is not None)
+ has_ = lambda y, x: (self.VALID_RECIPIENTS.has_key( x ) and self.VALID_RECIPIENTS[ x ].has_key( y ) and self.VALID_RECIPIENTS[ x ][ y ] is not None)
people = re.findall( r'@([-a-zA-Z0-9_]+)', self._log )
email_list = [ self.VALID_RECIPIENTS[ person ][ 'email' ] for person in people if has_( 'email', person ) ]
dm_list = [ self.VALID_RECIPIENTS[ person ][ 'twitter' ] for person in people if has_( 'twitter', person ) ]
+ if self.COMMIT_EMAIL_LIST is not None:
+ email_list.append( self.COMMIT_EMAIL_LIST )
+
self.send_notification_emails( email_list )
self.send_dms( dm_list )
def send_notification_emails( self, email_list ):
tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
- message = """
-Hello! %(author)s committed revision #%(rev)d to SVN, and thinks you might be interested in the changeset. If you've got a minute, take a look: %(tinyurl)s
+ message = """\
+From: [email protected]
+To: %(to_list)s
+Subject: %(author)s committed revision #%(rev)d
+Hello! %(author)s committed revision #%(rev)d to SVN. If you've got a minute, take a look:
---- COMMIT LOG --------------------------------------------------
%(log)s
+
+* Details at: %(tinyurl)s
+
------------------------------------------------- /COMMIT LOG ----
Thanks for your attention!
--The Friendly SVN Bot""" % ( { 'author': self._author, 'rev': self._rev, 'tinyurl': tinyurl, 'log': self._log })
+-The Friendly SDE SVN Bot""" % ( { 'author': self._author, 'rev': self._rev, 'tinyurl': tinyurl, 'log': self._log, 'to_list': ", ".join( email_list ) })
self.email( to=email_list, message=message )
def post_to_twitter( self ):
tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
author = self._author
- if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ][ 'twitter' ] is not None:
+ if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ].has_key( 'twitter' ):
author = '@%s' % self.VALID_RECIPIENTS[ author ][ 'twitter' ]
message = "%s committed revision #%d: %s" % ( author, self._rev, tinyurl )
self.tweet( message )
def send_dms( self, dm_list ):
tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
author = self._author
- if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ][ 'twitter' ] is not None:
+ if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ].has_key( 'twitter' ):
author = '@%s' % self.VALID_RECIPIENTS[ author ][ 'twitter' ]
for dm in dm_list:
message = "%s would like you to take a look at revision #%d: %s" % ( self._author, self._rev, tinyurl )
- self.tweet( message, dm )
\ No newline at end of file
+ self.tweet( message, dm )
|
mikewest/pysvnhooks
|
6ccef24218ef1eea6fc314d08d09f18118422ce3
|
Cleaned up the code, removing SDE specific info. You're left with the ACTUAL error messages and bug tracking system that we're using, which I'm sure you can somehow use to hack into all our base.
|
diff --git a/PySvnHooks.py b/PySvnHooks.py
new file mode 100755
index 0000000..8c1b587
--- /dev/null
+++ b/PySvnHooks.py
@@ -0,0 +1,292 @@
+# -*- coding: utf-8 -*-
+import os, sys, re, urllib, urllib2, base64, socket, smtplib
+from subprocess import Popen, PIPE
+import settings
+
+if os.path.exists( os.path.join( '/usr', 'local', 'bin', 'svnlook' ) ):
+ SVNLOOK = os.path.join( '/usr', 'local', 'bin', 'svnlook' )
+else:
+ SVNLOOK = os.path.join( '/usr', 'bin', 'svnlook' )
+
+socket.setdefaulttimeout( 3 ) # If a connection takes more than 3 seconds, abandon it.
+
+class Twitterer( object ):
+ def tweet( self, text=None, dm_at_user=None):
+ username = settings.TWITTER_USERNAME
+ password = settings.TWITTER_PASSWORD
+ url = 'http://twitter.com/statuses/update.json'
+
+ base64string = base64.encodestring( '%s:%s' % (username, password) )[ :-1 ]
+ authheader = "Basic %s" % base64string
+
+ if dm_at_user is not None:
+ url = 'http://twitter.com/direct_messages/new.json'
+ data = urllib.urlencode( { 'user': dm_at_user, 'text': text })
+ else:
+ data = urllib.urlencode( { 'status' : text } )
+
+ req = urllib2.Request( url, data )
+ req.add_header("Authorization", authheader)
+ handle = urllib2.urlopen(req)
+
+class Emailer( object ):
+ def email( self, to, message ):
+ try:
+ server = smtplib.SMTP( 'localhost' )
+ server.sendmail( settings.EMAIL_FROM_ADDRESS, to, message )
+ server.quit()
+ return true
+ except smtplib.SMTPException:
+ return false
+
+class Tinyizer( object ):
+ def __init__( self ):
+ self._tiny = {}
+
+ def tinyize( self, url ):
+ if not self._tiny.has_key( url ):
+ tiny = 'http://is.gd/api.php?longurl=%s' % urllib.quote( url )
+ try:
+ self._tiny[ url ] = urllib.urlopen( tiny ).read()
+ except Exception:
+ self._tiny[ url ] = url
+ return self._tiny[ url ]
+
+class PySvnHook( object ):
+ """Base class for PreCommitHook and PostCommitHook"""
+ #
+ # Some helpful class constants
+ #
+ COMPRESSION_BOT = settings.HEADLESS_USERNAME
+ TICKET_REGEX = re.compile( r'[A-Z]+-\d+' )
+ PRODUCTION_REGEX = re.compile( r'/production/' )
+ STATICS_REGEX = re.compile( r'/statics/' )
+ VIEWER_URL = settings.VIEWER_URL
+ VALID_RECIPIENTS = settings.VALID_RECIPIENTS
+
+ def __init__( self, repository = None, txn_name = None, revision = None, twitterer = None, emailer = None, tinyizer = None ):
+ self._repo = repository
+ self._txn = txn_name
+ self._rev = revision
+ if self._rev is not None:
+ self._rev = int( self._rev )
+ self._err = sys.stderr
+ self._log = self.look( 'log' ).strip()
+ self._author = self.look( 'author' ).strip()
+ self._dirs = self.look( 'dirs-changed' ).strip().split( '\n' )
+ self._tiny = tinyizer or Tinyizer()
+ self._twitterer = twitterer or Twitterer()
+ self._emailer = emailer or Emailer()
+
+ def run_tests( self ):
+ return 0
+
+ def error( self, message ):
+ self._err.write( message )
+ return 1
+
+ def look( self, cmd ):
+ """
+ Wrapper for the `svnlook` command. Runs `svnlook CMD`, and passes
+ in either the provided transaction name or revision.
+ """
+ if self._txn is not None:
+ result, errors = Popen( [ SVNLOOK, cmd, '-t', self._txn, self._repo ], stdout=PIPE ).communicate()
+ elif self._rev is not None:
+ result, errors = Popen( [ SVNLOOK, cmd, '-r %d' % self._rev, self._repo ], stdout=PIPE ).communicate()
+
+ if errors:
+ self._err.write( errors )
+ sys.exit( 1 )
+ return result
+
+ def tweet( self, text=None, dm_at_user=None):
+ self._twitterer.tweet( text=text, dm_at_user=dm_at_user )
+
+ def email( self, to, message ):
+ self._emailer.email( to=to, message=message )
+
+ def tinyize( self, url ):
+ self._tiny.tinyize( url=url )
+
+ #
+ # Bug-based helpers
+ #
+ def is_tied_to_bug( self ):
+ return PySvnHook.TICKET_REGEX.search( self._log )
+
+ ##########################################################################
+ #
+ # Path-based helpers
+ #
+ def is_path( self, path_regex ):
+ dirs = [ path for path in self._dirs if path_regex.search( path ) ]
+ return ( dirs != [] )
+
+ def is_production( self ):
+ return self.is_path( PySvnHook.PRODUCTION_REGEX )
+
+ def is_static( self ):
+ return self.is_path( PySvnHook.STATICS_REGEX)
+
+##############################################################################
+#
+# PreCommitHook
+#
+class PreCommitHook( PySvnHook ):
+ """Tests to be run on `pre-commit`"""
+ #
+ # Test Runner
+ #
+ def run_tests( self ):
+ return (
+ self.is_log_nonempty()
+ or self.is_production_change_tied_to_bug()
+ or self.is_headless_user_authorized()
+ )
+
+ #
+ # Test definitions
+ #
+ def is_log_nonempty( self ):
+ if re.match( r'^$', self._log ):
+ return self.error( """
+#####################################################################
+# COMMIT FAILURE #
+# #
+# Your commit message must not be empty. Please enter something #
+# descriptive so that we have half a chance of understanding what #
+# your changes mean. :) #
+# #
+#####################################################################
+ """)
+ return 1
+
+ def is_production_change_tied_to_bug( self ):
+ if self.is_production() and not self.is_tied_to_bug():
+ return self.error( """
+#####################################################################
+# COMMIT FAILURE #
+# #
+# Your commit message should contain reference to a Jira ticket #
+# in the format `[JIRATYPE-ID]` (e.g. "Fixing [FRONT-123]")' ) #
+# #
+#####################################################################
+ """)
+
+ def is_headless_user_authorized( self ):
+ if self.is_static() and not PySvnHook.COMPRESSION_BOT == self._author:
+ return self.error( """
+#####################################################################
+# COMMIT FAILURE #
+# #
+# The compression bot is the only user authorized to commit to #
+# the statics directory. If you need to adjust the CSS or JS, #
+# then please simply edit the source files, and let the bot #
+# automagically compress them after you commit your changes. #
+# #
+#####################################################################
+ """)
+
+ if not self.is_static() and PySvnHook.COMPRESSION_BOT == self._author:
+ return self.error( """
+#####################################################################
+# COMMIT FAILURE #
+# #
+# The compression bot is not authorized to commit anywhere other #
+# than the designated statics directory. Bad bot. #
+# #
+#####################################################################
+ """)
+
+##############################################################################
+#
+# PreCommitHook
+#
+class PostCommitHook( PySvnHook ):
+ """Tests to be run on `post-commit`"""
+ #
+ # Test Runner
+ #
+ def run_tests( self ):
+ errors = self.is_commit_tied_to_bug()
+ self.communicate()
+ return ( errors )
+
+ #
+ # Test definitions
+ #
+ def is_commit_tied_to_bug( self ):
+ if not self.is_tied_to_bug():
+ self.error("""
+#####################################################################
+# COMMIT WARNING #
+# #
+# Your commit was saved successfully! A quick note, however: #
+# #
+# Your commit message doesn't reference any Jira ticket. It'd be #
+# great if it did, as it simplifies the whole process of figuring #
+# out exactly what each commit aims at, and what changes fix what #
+# bugs. It would be brilliant if you could take a minute or two #
+# next time to make sure that a Jira ticket exists for the work #
+# you're doing, and that it appears in your commit message (e.g. #
+# "Fixed [WWW-14]")! #
+# #
+# If your change is so small that it probably doesn't deserve a #
+# ticket, please mark it with "[WWW-17]", our "no ticket" ticket. #
+# #
+#####################################################################
+ """)
+ return 1
+ return 0
+
+ def communicate( self ):
+ if self.is_production():
+ self.post_to_twitter()
+
+ has_ = lambda y, x: (self.VALID_RECIPIENTS.has_key( x ) and self.VALID_RECIPIENTS[ x ][ y ] is not None)
+ people = re.findall( r'@([-a-zA-Z0-9_]+)', self._log )
+
+ email_list = [ self.VALID_RECIPIENTS[ person ][ 'email' ] for person in people if has_( 'email', person ) ]
+ dm_list = [ self.VALID_RECIPIENTS[ person ][ 'twitter' ] for person in people if has_( 'twitter', person ) ]
+
+ self.send_notification_emails( email_list )
+ self.send_dms( dm_list )
+
+ def send_notification_emails( self, email_list ):
+ tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
+ message = """
+Hello! %(author)s committed revision #%(rev)d to SVN, and thinks you might be interested in the changeset. If you've got a minute, take a look: %(tinyurl)s
+
+
+---- COMMIT LOG --------------------------------------------------
+
+%(log)s
+
+------------------------------------------------- /COMMIT LOG ----
+
+Thanks for your attention!
+
+-The Friendly SVN Bot""" % ( { 'author': self._author, 'rev': self._rev, 'tinyurl': tinyurl, 'log': self._log })
+ self.email( to=email_list, message=message )
+
+ def post_to_twitter( self ):
+ tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
+
+ author = self._author
+ if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ][ 'twitter' ] is not None:
+ author = '@%s' % self.VALID_RECIPIENTS[ author ][ 'twitter' ]
+
+ message = "%s committed revision #%d: %s" % ( author, self._rev, tinyurl )
+ self.tweet( message )
+
+ def send_dms( self, dm_list ):
+ tinyurl = self.tinyize( PySvnHook.VIEWER_URL % self._rev )
+
+ author = self._author
+ if self.VALID_RECIPIENTS.has_key( author ) and self.VALID_RECIPIENTS[ author ][ 'twitter' ] is not None:
+ author = '@%s' % self.VALID_RECIPIENTS[ author ][ 'twitter' ]
+
+ for dm in dm_list:
+ message = "%s would like you to take a look at revision #%d: %s" % ( self._author, self._rev, tinyurl )
+ self.tweet( message, dm )
\ No newline at end of file
diff --git a/SvnStaticsHandler.py b/SvnStaticsHandler.py
new file mode 100755
index 0000000..1eea107
--- /dev/null
+++ b/SvnStaticsHandler.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+
+import os, sys, re
+import settings
+from subprocess import Popen, PIPE
+
+class Concatenater( object ):
+ def concat( self, filelist, outfile ):
+ outfile = open( outfile, 'w' )
+ for cur in filelist:
+ f = open( cur, 'r' )
+ try:
+ outfile.write( f.read() )
+ finally:
+ f.close()
+ outfile.close()
+
+
+class Minimizer( object ):
+ def __init__( self, infile, outfile ):
+ pass
+
+class StaticsHandler( object ):
+ USERNAME = settings.HEADLESS_USERNAME
+ PASSWORD = settings.HEADLESS_PASSWORD
+ def __init__( self ):
+ pass
diff --git a/post-commit b/post-commit
new file mode 100755
index 0000000..dd9ecf7
--- /dev/null
+++ b/post-commit
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+import os, sys, re
+from PySvnHooks import PySvnHook, PostCommitHook
+
+def usage_and_exit( error_message = None ):
+ """Print usage information and exit."""
+ stream = ( error_message and sys.stderr ) or sys.stdout
+ if error_message:
+ stream.write( "ERROR: %s\n\n" % error_message )
+ stream.write(
+ "USAGE: %s REPOSITORY REVISION_NUMBER\n"
+ % ( os.path.basename( sys.argv[ 0 ] ) )
+ )
+ sys.exit( ( error_message and 1 ) or 0 )
+
+
+if __name__ == '__main__':
+ if len( sys.argv ) != 3:
+ """Expects to be called by `svnserve` with two arguments"""
+ usage_and_exit( )
+ else:
+ """See?"""
+ sys.exit( PostCommitHook( repository=sys.argv[ 1 ], revision=sys.argv[ 2 ] ).run_tests() )
diff --git a/pre-commit b/pre-commit
new file mode 100755
index 0000000..8cccae0
--- /dev/null
+++ b/pre-commit
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+import os, sys, re
+from PySvnHooks import PySvnHook, PreCommitHook
+
+def usage_and_exit( error_message = None ):
+ """Print usage information and exit."""
+ stream = ( error_message and sys.stderr ) or sys.stdout
+ if error_message:
+ stream.write( "ERROR: %s\n\n" % error_message )
+ stream.write(
+ "USAGE: %s REPOSITORY TRANSACTION_NAME\n"
+ % ( os.path.basename( sys.argv[ 0 ] ) )
+ )
+ sys.exit( ( error_message and 1 ) or 0 )
+
+
+if __name__ == '__main__':
+ if len( sys.argv ) != 3:
+ usage_and_exit( )
+ else:
+ sys.exit( PreCommitHook( repository=sys.argv[ 1 ], txn_name=sys.argv[ 2 ] ).run_tests() )
diff --git a/settings.py b/settings.py
new file mode 100644
index 0000000..13af3a8
--- /dev/null
+++ b/settings.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+
+TWITTER_USERNAME = 'TWITTER_USERNAME'
+TWITTER_PASSWORD = 'TWITTER_PASSWORD'
+EMAIL_FROM_ADDRESS = '[email protected]'
+VIEWER_URL = 'http://svnserver.com/viewvc?view=rev&revision=%d'
+
+VALID_RECIPIENTS = {
+ 'svn_username': { 'email': '[email protected]', 'twitter': 'im_on_twitter' },
+ 'mwest': { 'email': '[email protected]', 'twitter': 'mikewest' }
+}
+
+HEADLESS_USERNAME = 'headlessness'
+HEADLESS_PASSWORD = 'i_have_no_head'
\ No newline at end of file
diff --git a/tests/._TestSdeHook.py b/tests/._TestSdeHook.py
new file mode 100755
index 0000000..f1a3118
Binary files /dev/null and b/tests/._TestSdeHook.py differ
diff --git a/tests/._TestSdeStaticsHandler.py b/tests/._TestSdeStaticsHandler.py
new file mode 100755
index 0000000..71a7c2c
Binary files /dev/null and b/tests/._TestSdeStaticsHandler.py differ
diff --git a/tests/PySvnHookTestRepo/README.txt b/tests/PySvnHookTestRepo/README.txt
new file mode 100755
index 0000000..3bf5a57
--- /dev/null
+++ b/tests/PySvnHookTestRepo/README.txt
@@ -0,0 +1,5 @@
+This is a Subversion repository; use the 'svnadmin' tool to examine
+it. Do not add, delete, or modify files here unless you know how
+to avoid corrupting the repository.
+
+Visit http://subversion.tigris.org/ for more information.
diff --git a/tests/PySvnHookTestRepo/conf/authz b/tests/PySvnHookTestRepo/conf/authz
new file mode 100755
index 0000000..0b9a410
--- /dev/null
+++ b/tests/PySvnHookTestRepo/conf/authz
@@ -0,0 +1,32 @@
+### This file is an example authorization file for svnserve.
+### Its format is identical to that of mod_authz_svn authorization
+### files.
+### As shown below each section defines authorizations for the path and
+### (optional) repository specified by the section name.
+### The authorizations follow. An authorization line can refer to:
+### - a single user,
+### - a group of users defined in a special [groups] section,
+### - an alias defined in a special [aliases] section,
+### - all authenticated users, using the '$authenticated' token,
+### - only anonymous users, using the '$anonymous' token,
+### - anyone, using the '*' wildcard.
+###
+### A match can be inverted by prefixing the rule with '~'. Rules can
+### grant read ('r') access, read-write ('rw') access, or no access
+### ('').
+
+[aliases]
+# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
+
+[groups]
+# harry_and_sally = harry,sally
+# harry_sally_and_joe = harry,sally,&joe
+
+# [/foo/bar]
+# harry = rw
+# &joe = r
+# * =
+
+# [repository:/baz/fuz]
+# @harry_and_sally = rw
+# * = r
diff --git a/tests/PySvnHookTestRepo/conf/passwd b/tests/PySvnHookTestRepo/conf/passwd
new file mode 100755
index 0000000..ecaa08d
--- /dev/null
+++ b/tests/PySvnHookTestRepo/conf/passwd
@@ -0,0 +1,8 @@
+### This file is an example password file for svnserve.
+### Its format is similar to that of svnserve.conf. As shown in the
+### example below it contains one section labelled [users].
+### The name and password for each user follow, one account per line.
+
+[users]
+# harry = harryssecret
+# sally = sallyssecret
diff --git a/tests/PySvnHookTestRepo/conf/svnserve.conf b/tests/PySvnHookTestRepo/conf/svnserve.conf
new file mode 100755
index 0000000..e62a01e
--- /dev/null
+++ b/tests/PySvnHookTestRepo/conf/svnserve.conf
@@ -0,0 +1,47 @@
+### This file controls the configuration of the svnserve daemon, if you
+### use it to allow access to this repository. (If you only allow
+### access through http: and/or file: URLs, then this file is
+### irrelevant.)
+
+### Visit http://subversion.tigris.org/ for more information.
+
+[general]
+### These options control access to the repository for unauthenticated
+### and authenticated users. Valid values are "write", "read",
+### and "none". The sample settings below are the defaults.
+# anon-access = read
+# auth-access = write
+### The password-db option controls the location of the password
+### database file. Unless you specify a path starting with a /,
+### the file's location is relative to the directory containing
+### this configuration file.
+### If SASL is enabled (see below), this file will NOT be used.
+### Uncomment the line below to use the default password file.
+# password-db = passwd
+### The authz-db option controls the location of the authorization
+### rules for path-based access control. Unless you specify a path
+### starting with a /, the file's location is relative to the the
+### directory containing this file. If you don't specify an
+### authz-db, no path-based access control is done.
+### Uncomment the line below to use the default authorization file.
+# authz-db = authz
+### This option specifies the authentication realm of the repository.
+### If two repositories have the same authentication realm, they should
+### have the same password database, and vice versa. The default realm
+### is repository's uuid.
+# realm = My First Repository
+
+[sasl]
+### This option specifies whether you want to use the Cyrus SASL
+### library for authentication. Default is false.
+### This section will be ignored if svnserve is not built with Cyrus
+### SASL support; to check, run 'svnserve --version' and look for a line
+### reading 'Cyrus SASL authentication is available.'
+# use-sasl = true
+### These options specify the desired strength of the security layer
+### that you want SASL to provide. 0 means no encryption, 1 means
+### integrity-checking only, values larger than 1 are correlated
+### to the effective key length for encryption (e.g. 128 means 128-bit
+### encryption). The values below are the defaults.
+# min-encryption = 0
+# max-encryption = 256
diff --git a/tests/PySvnHookTestRepo/db/current b/tests/PySvnHookTestRepo/db/current
new file mode 100755
index 0000000..b8626c4
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/current
@@ -0,0 +1 @@
+4
diff --git a/tests/PySvnHookTestRepo/db/format b/tests/PySvnHookTestRepo/db/format
new file mode 100755
index 0000000..ef83e21
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/format
@@ -0,0 +1,2 @@
+3
+layout sharded 1000
diff --git a/tests/PySvnHookTestRepo/db/fs-type b/tests/PySvnHookTestRepo/db/fs-type
new file mode 100755
index 0000000..4fdd953
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/fs-type
@@ -0,0 +1 @@
+fsfs
diff --git a/tests/PySvnHookTestRepo/db/revprops/0/0 b/tests/PySvnHookTestRepo/db/revprops/0/0
new file mode 100755
index 0000000..8097507
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revprops/0/0
@@ -0,0 +1,5 @@
+K 8
+svn:date
+V 27
+2009-04-16T11:23:15.571216Z
+END
diff --git a/tests/PySvnHookTestRepo/db/revprops/0/1 b/tests/PySvnHookTestRepo/db/revprops/0/1
new file mode 100755
index 0000000..b4c0191
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revprops/0/1
@@ -0,0 +1,13 @@
+K 10
+svn:author
+V 7
+svnm157
+K 8
+svn:date
+V 27
+2009-04-16T11:27:30.447959Z
+K 7
+svn:log
+V 41
+Adding test.file without noting a ticket.
+END
diff --git a/tests/PySvnHookTestRepo/db/revprops/0/2 b/tests/PySvnHookTestRepo/db/revprops/0/2
new file mode 100755
index 0000000..f78ddde
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revprops/0/2
@@ -0,0 +1,14 @@
+K 10
+svn:author
+V 7
+svnm157
+K 8
+svn:date
+V 27
+2009-04-16T15:42:05.100788Z
+K 7
+svn:log
+V 41
+This is a log message containing @mwest.
+
+END
diff --git a/tests/PySvnHookTestRepo/db/revprops/0/3 b/tests/PySvnHookTestRepo/db/revprops/0/3
new file mode 100755
index 0000000..5eb3483
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revprops/0/3
@@ -0,0 +1,13 @@
+K 10
+svn:author
+V 7
+svnm157
+K 8
+svn:date
+V 27
+2009-04-16T15:45:54.894868Z
+K 7
+svn:log
+V 54
+Adding a file to production branch _without_ a ticket.
+END
diff --git a/tests/PySvnHookTestRepo/db/revprops/0/4 b/tests/PySvnHookTestRepo/db/revprops/0/4
new file mode 100755
index 0000000..38599d0
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revprops/0/4
@@ -0,0 +1,13 @@
+K 10
+svn:author
+V 7
+svnm157
+K 8
+svn:date
+V 27
+2009-04-16T15:50:14.702044Z
+K 7
+svn:log
+V 57
+This is a static file, which I shouldn't be able to edit.
+END
diff --git a/tests/PySvnHookTestRepo/db/revs/0/0 b/tests/PySvnHookTestRepo/db/revs/0/0
new file mode 100755
index 0000000..10f5c45
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revs/0/0
@@ -0,0 +1,11 @@
+PLAIN
+END
+ENDREP
+id: 0.0.r0/17
+type: dir
+count: 0
+text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
+cpath: /
+
+
+17 107
diff --git a/tests/PySvnHookTestRepo/db/revs/0/1 b/tests/PySvnHookTestRepo/db/revs/0/1
new file mode 100755
index 0000000..61f6b81
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revs/0/1
@@ -0,0 +1,28 @@
+DELTA
+SVNENDREP
+id: 0-1.0.r1/17
+type: file
+count: 0
+text: 1 0 4 0 d41d8cd98f00b204e9800998ecf8427e
+cpath: /test.file
+copyroot: 0 /
+
+PLAIN
+K 9
+test.file
+V 16
+file 0-1.0.r1/17
+END
+ENDREP
+id: 0.0.r1/186
+type: dir
+pred: 0.0.r0/17
+count: 1
+text: 1 133 40 40 90a981dfe858292dd547519b8fb12572
+cpath: /
+copyroot: 0 /
+
+_0.0.t0-0 add true false /test.file
+
+
+186 311
diff --git a/tests/PySvnHookTestRepo/db/revs/0/2 b/tests/PySvnHookTestRepo/db/revs/0/2
new file mode 100755
index 0000000..905d8a8
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revs/0/2
@@ -0,0 +1,32 @@
+DELTA
+SVNENDREP
+id: 0-2.0.r2/17
+type: file
+count: 0
+text: 2 0 4 0 d41d8cd98f00b204e9800998ecf8427e
+cpath: /test1.file
+copyroot: 0 /
+
+PLAIN
+K 9
+test.file
+V 16
+file 0-1.0.r1/17
+K 10
+test1.file
+V 16
+file 0-2.0.r2/17
+END
+ENDREP
+id: 0.0.r2/225
+type: dir
+pred: 0.0.r1/186
+count: 2
+text: 2 134 78 78 faa1536bc179c8b0dfa345a05fa48b81
+cpath: /
+copyroot: 0 /
+
+_0.0.t1-1 add true false /test1.file
+
+
+225 351
diff --git a/tests/PySvnHookTestRepo/db/revs/0/3 b/tests/PySvnHookTestRepo/db/revs/0/3
new file mode 100755
index 0000000..6bf636b
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revs/0/3
@@ -0,0 +1,68 @@
+DELTA
+SVNENDREP
+id: 2-3.0.r3/17
+type: file
+count: 0
+text: 3 0 4 0 d41d8cd98f00b204e9800998ecf8427e
+cpath: /branches/production/production.html
+copyroot: 0 /
+
+PLAIN
+K 15
+production.html
+V 16
+file 2-3.0.r3/17
+END
+ENDREP
+id: 1-3.0.r3/219
+type: dir
+count: 0
+text: 3 159 47 47 6674a5fb8081d33bb18d59a99e844934
+cpath: /branches/production
+copyroot: 0 /
+
+PLAIN
+K 10
+production
+V 16
+dir 1-3.0.r3/219
+END
+ENDREP
+id: 0-3.0.r3/404
+type: dir
+count: 0
+text: 3 349 42 42 5f93ae68d6eee36ad921bf9a4cff3879
+cpath: /branches
+copyroot: 0 /
+
+PLAIN
+K 8
+branches
+V 16
+dir 0-3.0.r3/404
+K 9
+test.file
+V 16
+file 0-1.0.r1/17
+K 10
+test1.file
+V 16
+file 0-2.0.r2/17
+END
+ENDREP
+id: 0.0.r3/649
+type: dir
+pred: 0.0.r2/225
+count: 3
+text: 3 523 113 113 04270786eab0bc716b27cae7a45e470a
+cpath: /
+copyroot: 0 /
+
+_2.0.t2-2 add true false /branches/production/production.html
+
+_0.0.t2-2 add false false /branches
+
+_1.0.t2-2 add false false /branches/production
+
+
+649 777
diff --git a/tests/PySvnHookTestRepo/db/revs/0/4 b/tests/PySvnHookTestRepo/db/revs/0/4
new file mode 100755
index 0000000..2e5c736
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/revs/0/4
@@ -0,0 +1,71 @@
+DELTA
+SVNENDREP
+id: 1-4.0.r4/17
+type: file
+count: 0
+text: 4 0 4 0 d41d8cd98f00b204e9800998ecf8427e
+cpath: /branches/statics/static.file
+copyroot: 0 /
+
+PLAIN
+K 11
+static.file
+V 16
+file 1-4.0.r4/17
+END
+ENDREP
+id: 0-4.0.r4/208
+type: dir
+count: 0
+text: 4 152 43 43 c69b5b09a192997912677df7d577da2c
+cpath: /branches/statics
+copyroot: 0 /
+
+PLAIN
+K 10
+production
+V 16
+dir 1-3.0.r3/219
+K 7
+statics
+V 16
+dir 0-4.0.r4/208
+END
+ENDREP
+id: 0-3.0.r4/424
+type: dir
+pred: 0-3.0.r3/404
+count: 1
+text: 4 335 76 76 4a04d0149d1d10a1fa303aa38d67fe25
+cpath: /branches
+copyroot: 0 /
+
+PLAIN
+K 8
+branches
+V 16
+dir 0-3.0.r4/424
+K 9
+test.file
+V 16
+file 0-1.0.r1/17
+K 10
+test1.file
+V 16
+file 0-2.0.r2/17
+END
+ENDREP
+id: 0.0.r4/688
+type: dir
+pred: 0.0.r3/649
+count: 4
+text: 4 562 113 113 7e8aebcf81897f4279b9853328f8e4e5
+cpath: /
+copyroot: 0 /
+
+_1.0.t3-3 add true false /branches/statics/static.file
+
+_0.0.t3-3 add false false /branches/statics
+
+
+688 816
diff --git a/tests/PySvnHookTestRepo/db/txn-current b/tests/PySvnHookTestRepo/db/txn-current
new file mode 100755
index 0000000..b8626c4
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/txn-current
@@ -0,0 +1 @@
+4
diff --git a/tests/PySvnHookTestRepo/db/txn-current-lock b/tests/PySvnHookTestRepo/db/txn-current-lock
new file mode 100755
index 0000000..e69de29
diff --git a/tests/PySvnHookTestRepo/db/uuid b/tests/PySvnHookTestRepo/db/uuid
new file mode 100755
index 0000000..27930b1
--- /dev/null
+++ b/tests/PySvnHookTestRepo/db/uuid
@@ -0,0 +1 @@
+85f60bc2-cb85-4ffd-9aa9-aef10c0d5cc5
diff --git a/tests/PySvnHookTestRepo/db/write-lock b/tests/PySvnHookTestRepo/db/write-lock
new file mode 100755
index 0000000..e69de29
diff --git a/tests/PySvnHookTestRepo/format b/tests/PySvnHookTestRepo/format
new file mode 100755
index 0000000..7ed6ff8
--- /dev/null
+++ b/tests/PySvnHookTestRepo/format
@@ -0,0 +1 @@
+5
diff --git a/tests/PySvnHookTestRepo/hooks/post-commit.tmpl b/tests/PySvnHookTestRepo/hooks/post-commit.tmpl
new file mode 100755
index 0000000..b8345c6
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/post-commit.tmpl
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# POST-COMMIT HOOK
+#
+# The post-commit hook is invoked after a commit. Subversion runs
+# this hook by invoking a program (script, executable, binary, etc.)
+# named 'post-commit' (for which this file is a template) with the
+# following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] REV (the number of the revision just committed)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# Because the commit has already completed and cannot be undone,
+# the exit code of the hook program is ignored. The hook program
+# can use the 'svnlook' utility to help it examine the
+# newly-committed tree.
+#
+# On a Unix system, the normal procedure is to have 'post-commit'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-commit' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'post-commit.bat' or 'post-commit.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process. For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+REV="$2"
+
+commit-email.pl "$REPOS" "$REV" [email protected]
+log-commit.py --repository "$REPOS" --revision "$REV"
diff --git a/tests/PySvnHookTestRepo/hooks/post-lock.tmpl b/tests/PySvnHookTestRepo/hooks/post-lock.tmpl
new file mode 100755
index 0000000..c779f11
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/post-lock.tmpl
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# POST-LOCK HOOK
+#
+# The post-lock hook is run after a path is locked. Subversion runs
+# this hook by invoking a program (script, executable, binary, etc.)
+# named 'post-lock' (for which this file is a template) with the
+# following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] USER (the user who created the lock)
+#
+# The paths that were just locked are passed to the hook via STDIN (as
+# of Subversion 1.2, only one path is passed per invocation, but the
+# plan is to pass all locked paths at once, so the hook program
+# should be written accordingly).
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# Because the lock has already been created and cannot be undone,
+# the exit code of the hook program is ignored. The hook program
+# can use the 'svnlook' utility to help it examine the
+# newly-created lock.
+#
+# On a Unix system, the normal procedure is to have 'post-lock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-lock' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'post-lock.bat' or 'post-lock.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+USER="$2"
+
+# Send email to interested parties, let them know a lock was created:
+mailer.py lock "$REPOS" "$USER" /path/to/mailer.conf
diff --git a/tests/PySvnHookTestRepo/hooks/post-revprop-change.tmpl b/tests/PySvnHookTestRepo/hooks/post-revprop-change.tmpl
new file mode 100755
index 0000000..e3b34b5
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/post-revprop-change.tmpl
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# POST-REVPROP-CHANGE HOOK
+#
+# The post-revprop-change hook is invoked after a revision property
+# has been added, modified or deleted. Subversion runs this hook by
+# invoking a program (script, executable, binary, etc.) named
+# 'post-revprop-change' (for which this file is a template), with the
+# following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] REV (the revision that was tweaked)
+# [3] USER (the username of the person tweaking the property)
+# [4] PROPNAME (the property that was changed)
+# [5] ACTION (the property was 'A'dded, 'M'odified, or 'D'eleted)
+#
+# [STDIN] PROPVAL ** the old property value is passed via STDIN.
+#
+# Because the propchange has already completed and cannot be undone,
+# the exit code of the hook program is ignored. The hook program
+# can use the 'svnlook' utility to help it examine the
+# new property value.
+#
+# On a Unix system, the normal procedure is to have 'post-revprop-change'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-revprop-change' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'post-revprop-change.bat' or 'post-revprop-change.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process. For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+REV="$2"
+USER="$3"
+PROPNAME="$4"
+ACTION="$5"
+
+commit-email.pl --revprop-change "$REPOS" "$REV" "$USER" "$PROPNAME" [email protected]
diff --git a/tests/PySvnHookTestRepo/hooks/post-unlock.tmpl b/tests/PySvnHookTestRepo/hooks/post-unlock.tmpl
new file mode 100755
index 0000000..ae95c4b
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/post-unlock.tmpl
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# POST-UNLOCK HOOK
+#
+# The post-unlock hook runs after a path is unlocked. Subversion runs
+# this hook by invoking a program (script, executable, binary, etc.)
+# named 'post-unlock' (for which this file is a template) with the
+# following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] USER (the user who destroyed the lock)
+#
+# The paths that were just unlocked are passed to the hook via STDIN
+# (as of Subversion 1.2, only one path is passed per invocation, but
+# the plan is to pass all unlocked paths at once, so the hook program
+# should be written accordingly).
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# Because the lock has already been destroyed and cannot be undone,
+# the exit code of the hook program is ignored.
+#
+# On a Unix system, the normal procedure is to have 'post-unlock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-unlock' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'post-unlock.bat' or 'post-unlock.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+USER="$2"
+
+# Send email to interested parties, let them know a lock was removed:
+mailer.py unlock "$REPOS" "$USER" /path/to/mailer.conf
diff --git a/tests/PySvnHookTestRepo/hooks/pre-commit.tmpl b/tests/PySvnHookTestRepo/hooks/pre-commit.tmpl
new file mode 100755
index 0000000..a81e66c
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/pre-commit.tmpl
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+# PRE-COMMIT HOOK
+#
+# The pre-commit hook is invoked before a Subversion txn is
+# committed. Subversion runs this hook by invoking a program
+# (script, executable, binary, etc.) named 'pre-commit' (for which
+# this file is a template), with the following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] TXN-NAME (the name of the txn about to be committed)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the txn is committed; but
+# if it exits with failure (non-zero), the txn is aborted, no commit
+# takes place, and STDERR is returned to the client. The hook
+# program can use the 'svnlook' utility to help it examine the txn.
+#
+# On a Unix system, the normal procedure is to have 'pre-commit'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# *** NOTE: THE HOOK PROGRAM MUST NOT MODIFY THE TXN, EXCEPT ***
+# *** FOR REVISION PROPERTIES (like svn:log or svn:author). ***
+#
+# This is why we recommend using the read-only 'svnlook' utility.
+# In the future, Subversion may enforce the rule that pre-commit
+# hooks should not modify the versioned data in txns, or else come
+# up with a mechanism to make it safe to do so (by informing the
+# committing client of the changes). However, right now neither
+# mechanism is implemented, so hook writers just have to be careful.
+#
+# Note that 'pre-commit' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'pre-commit.bat' or 'pre-commit.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process. For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+TXN="$2"
+
+# Make sure that the log message contains some text.
+SVNLOOK=/Users/jwhitlock/work/svnbinaries/packages/osx/universal_build/build/64bit/bin/svnlook
+$SVNLOOK log -t "$TXN" "$REPOS" | \
+ grep "[a-zA-Z0-9]" > /dev/null || exit 1
+
+# Check that the author of this commit has the rights to perform
+# the commit on the files and directories being modified.
+commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1
+
+# All checks passed, so allow the commit.
+exit 0
diff --git a/tests/PySvnHookTestRepo/hooks/pre-lock.tmpl b/tests/PySvnHookTestRepo/hooks/pre-lock.tmpl
new file mode 100755
index 0000000..f08d475
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/pre-lock.tmpl
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# PRE-LOCK HOOK
+#
+# The pre-lock hook is invoked before an exclusive lock is
+# created. Subversion runs this hook by invoking a program
+# (script, executable, binary, etc.) named 'pre-lock' (for which
+# this file is a template), with the following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] PATH (the path in the repository about to be locked)
+# [3] USER (the user creating the lock)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the lock is created; but
+# if it exits with failure (non-zero), the lock action is aborted
+# and STDERR is returned to the client.
+
+# On a Unix system, the normal procedure is to have 'pre-lock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'pre-lock' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'pre-lock.bat' or 'pre-lock.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+PATH="$2"
+USER="$3"
+
+# If a lock exists and is owned by a different person, don't allow it
+# to be stolen (e.g., with 'svn lock --force ...').
+
+# (Maybe this script could send email to the lock owner?)
+SVNLOOK=/Users/jwhitlock/work/svnbinaries/packages/osx/universal_build/build/64bit/bin/svnlook
+GREP=/bin/grep
+SED=/bin/sed
+
+LOCK_OWNER=`$SVNLOOK lock "$REPOS" "$PATH" | \
+ $GREP '^Owner: ' | $SED 's/Owner: //'`
+
+# If we get no result from svnlook, there's no lock, allow the lock to
+# happen:
+if [ "$LOCK_OWNER" = "" ]; then
+ exit 0
+fi
+
+# If the person locking matches the lock's owner, allow the lock to
+# happen:
+if [ "$LOCK_OWNER" = "$USER" ]; then
+ exit 0
+fi
+
+# Otherwise, we've got an owner mismatch, so return failure:
+echo "Error: $PATH already locked by ${LOCK_OWNER}." 1>&2
+exit 1
diff --git a/tests/PySvnHookTestRepo/hooks/pre-revprop-change.tmpl b/tests/PySvnHookTestRepo/hooks/pre-revprop-change.tmpl
new file mode 100755
index 0000000..2f2de98
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/pre-revprop-change.tmpl
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# PRE-REVPROP-CHANGE HOOK
+#
+# The pre-revprop-change hook is invoked before a revision property
+# is added, modified or deleted. Subversion runs this hook by invoking
+# a program (script, executable, binary, etc.) named 'pre-revprop-change'
+# (for which this file is a template), with the following ordered
+# arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] REVISION (the revision being tweaked)
+# [3] USER (the username of the person tweaking the property)
+# [4] PROPNAME (the property being set on the revision)
+# [5] ACTION (the property is being 'A'dded, 'M'odified, or 'D'eleted)
+#
+# [STDIN] PROPVAL ** the new property value is passed via STDIN.
+#
+# If the hook program exits with success, the propchange happens; but
+# if it exits with failure (non-zero), the propchange doesn't happen.
+# The hook program can use the 'svnlook' utility to examine the
+# existing value of the revision property.
+#
+# WARNING: unlike other hooks, this hook MUST exist for revision
+# properties to be changed. If the hook does not exist, Subversion
+# will behave as if the hook were present, but failed. The reason
+# for this is that revision properties are UNVERSIONED, meaning that
+# a successful propchange is destructive; the old value is gone
+# forever. We recommend the hook back up the old value somewhere.
+#
+# On a Unix system, the normal procedure is to have 'pre-revprop-change'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'pre-revprop-change' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'pre-revprop-change.bat' or 'pre-revprop-change.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process. For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+REV="$2"
+USER="$3"
+PROPNAME="$4"
+ACTION="$5"
+
+if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
+
+echo "Changing revision properties other than svn:log is prohibited" >&2
+exit 1
diff --git a/tests/PySvnHookTestRepo/hooks/pre-unlock.tmpl b/tests/PySvnHookTestRepo/hooks/pre-unlock.tmpl
new file mode 100755
index 0000000..82f8212
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/pre-unlock.tmpl
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# PRE-UNLOCK HOOK
+#
+# The pre-unlock hook is invoked before an exclusive lock is
+# destroyed. Subversion runs this hook by invoking a program
+# (script, executable, binary, etc.) named 'pre-unlock' (for which
+# this file is a template), with the following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] PATH (the path in the repository about to be unlocked)
+# [3] USER (the user destroying the lock)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the lock is destroyed; but
+# if it exits with failure (non-zero), the unlock action is aborted
+# and STDERR is returned to the client.
+
+# On a Unix system, the normal procedure is to have 'pre-unlock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'pre-unlock' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'pre-unlock.bat' or 'pre-unlock.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+PATH="$2"
+USER="$3"
+
+# If a lock is owned by a different person, don't allow it be broken.
+# (Maybe this script could send email to the lock owner?)
+
+SVNLOOK=/Users/jwhitlock/work/svnbinaries/packages/osx/universal_build/build/64bit/bin/svnlook
+GREP=/bin/grep
+SED=/bin/sed
+
+LOCK_OWNER=`$SVNLOOK lock "$REPOS" "$PATH" | \
+ $GREP '^Owner: ' | $SED 's/Owner: //'`
+
+# If we get no result from svnlook, there's no lock, return success:
+if [ "$LOCK_OWNER" = "" ]; then
+ exit 0
+fi
+
+# If the person unlocking matches the lock's owner, return success:
+if [ "$LOCK_OWNER" = "$USER" ]; then
+ exit 0
+fi
+
+# Otherwise, we've got an owner mismatch, so return failure:
+echo "Error: $PATH locked by ${LOCK_OWNER}." 1>&2
+exit 1
diff --git a/tests/PySvnHookTestRepo/hooks/start-commit.tmpl b/tests/PySvnHookTestRepo/hooks/start-commit.tmpl
new file mode 100755
index 0000000..7597f58
--- /dev/null
+++ b/tests/PySvnHookTestRepo/hooks/start-commit.tmpl
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# START-COMMIT HOOK
+#
+# The start-commit hook is invoked before a Subversion txn is created
+# in the process of doing a commit. Subversion runs this hook
+# by invoking a program (script, executable, binary, etc.) named
+# 'start-commit' (for which this file is a template)
+# with the following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] USER (the authenticated user attempting to commit)
+# [3] CAPABILITIES (a colon-separated list of capabilities reported
+# by the client; see note below)
+#
+# Note: The CAPABILITIES parameter is new in Subversion 1.5, and 1.5
+# clients will typically report at least the "mergeinfo" capability.
+# If there are other capabilities, then the list is colon-separated,
+# e.g.: "mergeinfo:some-other-capability" (the order is undefined).
+#
+# The list is self-reported by the client. Therefore, you should not
+# make security assumptions based on the capabilities list, nor should
+# you assume that clients reliably report every capability they have.
+#
+# The working directory for this hook program's invocation is undefined,
+# so the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the commit continues; but
+# if it exits with failure (non-zero), the commit is stopped before
+# a Subversion txn is created, and STDERR is returned to the client.
+#
+# On a Unix system, the normal procedure is to have 'start-commit'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'start-commit' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# 'start-commit.bat' or 'start-commit.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process. For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+USER="$2"
+
+commit-allower.pl --repository "$REPOS" --user "$USER" || exit 1
+special-auth-check.py --user "$USER" --auth-level 3 || exit 1
+
+# All checks passed, so allow the commit.
+exit 0
diff --git a/tests/PySvnHookTestRepo/locks/db-logs.lock b/tests/PySvnHookTestRepo/locks/db-logs.lock
new file mode 100755
index 0000000..20dd636
--- /dev/null
+++ b/tests/PySvnHookTestRepo/locks/db-logs.lock
@@ -0,0 +1,3 @@
+This file is not used by Subversion 1.3.x or later.
+However, its existence is required for compatibility with
+Subversion 1.2.x or earlier.
diff --git a/tests/PySvnHookTestRepo/locks/db.lock b/tests/PySvnHookTestRepo/locks/db.lock
new file mode 100755
index 0000000..20dd636
--- /dev/null
+++ b/tests/PySvnHookTestRepo/locks/db.lock
@@ -0,0 +1,3 @@
+This file is not used by Subversion 1.3.x or later.
+However, its existence is required for compatibility with
+Subversion 1.2.x or earlier.
diff --git a/tests/StaticsData/1.data b/tests/StaticsData/1.data
new file mode 100755
index 0000000..d00491f
--- /dev/null
+++ b/tests/StaticsData/1.data
@@ -0,0 +1 @@
+1
diff --git a/tests/StaticsData/2.data b/tests/StaticsData/2.data
new file mode 100755
index 0000000..0cfbf08
--- /dev/null
+++ b/tests/StaticsData/2.data
@@ -0,0 +1 @@
+2
diff --git a/tests/StaticsData/3.data b/tests/StaticsData/3.data
new file mode 100755
index 0000000..00750ed
--- /dev/null
+++ b/tests/StaticsData/3.data
@@ -0,0 +1 @@
+3
diff --git a/tests/StaticsData/4.data b/tests/StaticsData/4.data
new file mode 100755
index 0000000..b8626c4
--- /dev/null
+++ b/tests/StaticsData/4.data
@@ -0,0 +1 @@
+4
diff --git a/tests/TestPySvnHook.py b/tests/TestPySvnHook.py
new file mode 100755
index 0000000..e4ad623
--- /dev/null
+++ b/tests/TestPySvnHook.py
@@ -0,0 +1,106 @@
+# -*- coding: utf-8 -*-
+
+import os, sys, unittest, cStringIO, re
+
+sys.path.insert( 0, os.path.join( os.path.dirname( __file__ ), '..' ) )
+from PySvnHooks import PySvnHook, PreCommitHook, PostCommitHook
+
+TEST_ROOT = os.path.abspath( os.path.dirname( __file__ ) )
+TEST_REPO = os.path.join( TEST_ROOT, 'PySvnHookTestRepo' )
+
+class MockTwitterer( object ):
+ def __init__( self ):
+ self.called_tweet = []
+
+ def tweet( self, text=None, dm_at_user=None):
+ self.called_tweet.append( {
+ 'message': text,
+ 'dm': dm_at_user
+ } )
+
+class MockEmailer( object ):
+ def __init__( self ):
+ self.called_email = []
+
+ def email( self, to, message ):
+ self.called_email.append( {
+ 'message': message,
+ 'to': to
+ } )
+
+class MockTinyizer( object ):
+ def __init__( self ):
+ self.called_tinyize = []
+
+ def tinyize( self, url ):
+ self.called_tinyize.append( {
+ 'url': url
+ } )
+
+class TestPySvnHook( unittest.TestCase ):
+ STDERR = sys.stderr
+ STDOUT = sys.stdout
+ def setUp( self ):
+ sys.stderr = cStringIO.StringIO()
+ self.emailer = MockEmailer()
+ self.twitterer = MockTwitterer()
+ self.tinyizer = MockTinyizer()
+
+ def tearDown( self ):
+ sys.stderr = self.STDERR
+
+ def assertContains( self, haystack, needle ):
+ self.assert_( haystack.find( needle ) != -1, '""""%s""" does not contain """%s"""' % ( haystack, needle ) )
+
+ def generatePreCommit( self, revision ):
+ return PreCommitHook( repository=TEST_REPO, revision = revision, twitterer=self.twitterer, emailer=self.emailer, tinyizer=self.tinyizer )
+
+ def generatePostCommit( self, revision ):
+ return PostCommitHook( repository=TEST_REPO, revision = revision, twitterer=self.twitterer, emailer=self.emailer, tinyizer=self.tinyizer )
+
+ def testDevBranchWithoutTicket( self ):
+ """
+ Revision 0 commits a file outisde the production root
+ without a Ticket in the commit message
+ """
+ "Precommit hook shouldn't throw any warnings"
+ tmp = self.generatePreCommit( 1 )
+ self.assertEqual( tmp.run_tests(), None )
+ self.assertEqual( tmp._err.getvalue(), '' )
+
+ "Postcommit hook should throw a warning, and return an error code of 1."
+ tmp = self.generatePostCommit( 1 )
+ self.assertEqual( tmp.run_tests(), 1 )
+ self.assertContains( tmp._err.getvalue(), 'COMMIT WARNING' )
+
+ def testProdBranchWithoutTicket( self ):
+ tmp = self.generatePreCommit( 3 )
+ self.assertEqual( tmp.run_tests(), 1 )
+ self.assertContains( tmp._err.getvalue(), 'COMMIT FAILURE' )
+
+ def testDevBranchTwitterWithoutDm( self ):
+ tmp = self.generatePostCommit( 1 )
+ tmp.run_tests()
+ self.assertEqual( len( self.twitterer.called_tweet ), 0 )
+
+ def testTwitterWithDm( self ):
+ tmp = self.generatePostCommit( 2 ) # Commit 2 should send to @mikewest
+ tmp.run_tests()
+ self.assertEqual( len( self.twitterer.called_tweet ), 1 )
+ self.assertContains( self.twitterer.called_tweet[0]['message'], 'would like you to take a look at revision #2' )
+ self.assertEqual( self.twitterer.called_tweet[0]['dm'], 'mikewest' )
+
+ def testEmail( self ):
+ tmp = self.generatePostCommit( 2 ) # Commit 2 should send to @mikewest
+ tmp.run_tests()
+ self.assertEqual( len( self.emailer.called_email ), 1 )
+ self.assertContains( self.emailer.called_email[0]['message'], 'committed revision #2 to SVN, and thinks you might be interested in the changeset' )
+ self.assertEqual( self.emailer.called_email[0]['to'], ['[email protected]'] )
+
+ def testStaticAccessControl( self ):
+ tmp = self.generatePreCommit( 4 )
+ self.assertEqual( tmp.run_tests(), 1 )
+ self.assertContains( tmp._err.getvalue(), 'COMMIT FAILURE' )
+
+if __name__ == '__main__':
+ unittest.main()
\ No newline at end of file
diff --git a/tests/TestPySvnStaticsHandler.py b/tests/TestPySvnStaticsHandler.py
new file mode 100755
index 0000000..79fb6c5
--- /dev/null
+++ b/tests/TestPySvnStaticsHandler.py
@@ -0,0 +1,43 @@
+# -*- coding: utf-8 -*-
+
+import os, sys, unittest, cStringIO, re
+
+sys.path.insert( 0, os.path.join( os.path.dirname( __file__ ), '..' ) )
+from SvnStaticsHandler import Concatenater
+
+TEST_ROOT = os.path.abspath( os.path.dirname( __file__ ) )
+TEST_DATA = os.path.join( TEST_ROOT, 'StaticsData' )
+
+class TestConcatenater( unittest.TestCase ):
+ def setUp( self ):
+ self.result = os.path.join( TEST_DATA, 'result.data' )
+
+ def tearDown( self ):
+ os.remove( os.path.join( TEST_DATA, 'result.data' ) )
+
+ def assertResultEquals( self, test ):
+ tmp = open( self.result, 'r' )
+ self.assertEqual( tmp.read(), test )
+
+ def testOneFile( self ):
+ tmp = Concatenater()
+ files = [ os.path.join( TEST_DATA, '1.data' ) ]
+ tmp.concat( files, self.result )
+ self.assertResultEquals( '1\n' )
+
+ def testTwoFiles( self ):
+ tmp = Concatenater()
+
+ files = [ os.path.join( TEST_DATA, '%d.data' % num ) for num in range( 1, 3 ) ]
+ tmp.concat( files, self.result )
+ self.assertResultEquals( '1\n2\n' )
+
+ def testOrdering( self ):
+ tmp = Concatenater()
+
+ files = [ os.path.join( TEST_DATA, '%d.data' % num ) for num in reversed( range( 1, 5 ) ) ]
+ tmp.concat( files, self.result )
+ self.assertResultEquals( '4\n3\n2\n1\n' )
+
+if __name__ == '__main__':
+ unittest.main()
\ No newline at end of file
|
mikewest/pysvnhooks
|
c1f42c3c3a18737eea6ce6aadc1b479785c9aa95
|
started project
|
diff --git a/README.markdown b/README.markdown
new file mode 100644
index 0000000..ffd2840
--- /dev/null
+++ b/README.markdown
@@ -0,0 +1,4 @@
+Subversion Hooks
+================
+
+Some simple Python classes to make writing Subversion hooks simpler.
\ No newline at end of file
|
pablodv/blogajax
|
a314e6ae1775a9bdb6d82f2ac75ea2a1e011c6e6
|
Fix autores
|
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index c0a95d9..6c3c6c7 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,63 +1,63 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
<title>Sistemas Operativos Avanzados</title>
</head>
<body>
<div class="main">
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
<div id="user">
<% if current_user %>
<%= 'Welcome ' + current_user.full_name %> <br/>
<%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
<% end %>
</div>
</div>
<div class="link_menu">
<%= link_to 'Home', :controller => 'posts', :action => 'index' %>
<%= link_to 'Login', login_path %>
<%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
<%= link_to 'Add Category', :controller => 'categories', :action => 'new' %>
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
<div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
<a href="#" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="#" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
</div>
<div class="link_updates">
<div class="lbl">recent posts </div>
<%= render :partial => 'posts/posts' %>
<div class="lbl">categories </div>
<%= render :partial => 'categories/categories' %>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
- <div class="left">© <a href="#">Sistemas Operativos Avanzados</a> 2011.</div>
- <div class="right"><a href="#">Website </a> by <a href="#">Laura Insaurralde.</a></div>
+ <div class="left">© <a href="#">Sistemas Operativos Avanzados</a> 2010.</div>
+ <div class="right"><a href="#">Website </a> by <a href="#">Laura Insaurralde & Irene Bulacio.</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
|
pablodv/blogajax
|
3a71a794dfe15d2d808fb9fdd1952d2514d6c5a3
|
Fix title page
|
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 1fa96c6..c0a95d9 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,63 +1,63 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
- <title>Ruby on Rails 2010</title>
+ <title>Sistemas Operativos Avanzados</title>
</head>
<body>
<div class="main">
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
<div id="user">
<% if current_user %>
<%= 'Welcome ' + current_user.full_name %> <br/>
<%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
<% end %>
</div>
</div>
<div class="link_menu">
<%= link_to 'Home', :controller => 'posts', :action => 'index' %>
<%= link_to 'Login', login_path %>
<%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
<%= link_to 'Add Category', :controller => 'categories', :action => 'new' %>
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
<div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
<a href="#" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="#" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
</div>
<div class="link_updates">
<div class="lbl">recent posts </div>
<%= render :partial => 'posts/posts' %>
<div class="lbl">categories </div>
<%= render :partial => 'categories/categories' %>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
<div class="left">© <a href="#">Sistemas Operativos Avanzados</a> 2011.</div>
<div class="right"><a href="#">Website </a> by <a href="#">Laura Insaurralde.</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 25984b2..294131c 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index cb94312..78d969d 100644
--- a/log/development.log
+++ b/log/development.log
@@ -15410,512 +15410,533 @@ Migrating to AddActive (20110218214416)
[4;36;1mSQL (0.3ms)[0m [0;1mSELECT version FROM schema_migrations[0m
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("categories")[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("comments")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("posts")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
[4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("users")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
Processing ActivationsController#new (for 127.0.0.1 at 2011-02-18 18:49:42) [GET]
Parameters: {"action"=>"new", "activation_code"=>"DExcq2xiTEHujUcs6R98", "controller"=>"activations"}
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE (perishable_token = 'DExcq2xiTEHujUcs6R98' and updated_at > '2011-02-11 21:49:42') LIMIT 1[0m
Rendering template within layouts/application
Rendering activations/new
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:49:42') ORDER BY created_at DESC[0m
Rendered posts/_posts (39.7ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (8.7ms)
Completed in 237ms (View: 209, DB: 1) | 200 OK [http://localhost/register/DExcq2xiTEHujUcs6R98]
Processing ActivationsController#create (for 127.0.0.1 at 2011-02-18 18:49:46) [POST]
Parameters: {"commit"=>"Activate", "action"=>"create", "id"=>"1", "controller"=>"activations"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
[4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-18 21:49:46', "perishable_token" = 'Q0aCvJ4aosHGw6ijcBkY', "active" = 't' WHERE "id" = 1[0m
[4;36;1mUser Update (1.1ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:49:46', "perishable_token" = 'mtirz5wk7wT9ii8uatRs' WHERE "id" = 1[0m
Sent mail to [email protected]
Date: Fri, 18 Feb 2011 18:49:46 -0300
From: Blog <[email protected]>
To: [email protected]
Subject: Activation Complete
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Your account has been activated.
http://blogajax.heroku.com/login
If the above URL does not work try copying and pasting it into your browser.
If you continue to have problem, please feel free to contact us.
Redirected to http://localhost:3000/account
Completed in 459ms (DB: 2) | 302 Found [http://localhost/activate/1]
Processing UsersController#show (for 127.0.0.1 at 2011-02-18 18:49:47) [GET]
Parameters: {"action"=>"show", "controller"=>"users"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 18ms (DB: 0) | 302 Found [http://localhost/account]
Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:49:47) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:49:47') ORDER BY created_at DESC[0m
Rendered posts/_posts (8.0ms)
[4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (7.0ms)
Completed in 54ms (View: 32, DB: 1) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#create (for 127.0.0.1 at 2011-02-18 18:49:59) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablito"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablito') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "login_count" = 1, "current_login_ip" = '127.0.0.1', "updated_at" = '2011-02-18 21:49:59', "perishable_token" = 'yT1FcvYzLaRjLXGeJVa', "last_request_at" = '2011-02-18 21:49:59', "current_login_at" = '2011-02-18 21:49:59' WHERE "id" = 1[0m
Redirected to http://localhost:3000/account
Completed in 373ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing UsersController#show (for 127.0.0.1 at 2011-02-18 18:49:59) [GET]
Parameters: {"action"=>"show", "controller"=>"users"}
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:49:59', "perishable_token" = 'cM07e7FTcOVr1Iz80vTa', "last_request_at" = '2011-02-18 21:49:59' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering users/show
ActionView::TemplateError (undefined local variable or method `admin_clients_path' for #<ActionView::Base:0x7f63d86e7588>) on line #23 of app/views/users/show.html.erb:
20:
21: <%= link_to 'Edit', edit_account_path %><br/><br/>
22: <%= link_to 'Change Password', :controller => "password_resets" %><br/><br/>
23: <%= link_to 'Go to Holiday Reminder', admin_clients_path %>
app/views/users/show.html.erb:23
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendered rescues/_trace (59.8ms)
Rendered rescues/_request_and_response (0.5ms)
Rendering rescues/layout (internal_server_error)
Processing UserSessionsController#create (for 127.0.0.1 at 2011-02-18 18:51:39) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablito"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.9ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:51:39', "perishable_token" = 'x7pjlLdn5lPombEoF8UT', "last_request_at" = '2011-02-18 21:51:39' WHERE "id" = 1[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 151ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:51:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-18 21:51:40', "perishable_token" = '2RzyojZVu1OxFOxzaDVe', "last_request_at" = '2011-02-18 21:51:40' WHERE "id" = 1[0m
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:51:40') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.1ms)
[4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (7.3ms)
Completed in 190ms (View: 170, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2011-02-18 18:52:04) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-18 21:52:05', "perishable_token" = 'pIqetTTImbFu0AJiRUPc', "last_request_at" = '2011-02-18 21:52:05' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering posts/new
[4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered posts/_form (20.2ms)
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:52:05') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.2ms)
[4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (0.9ms)
Completed in 370ms (View: 51, DB: 2) | 200 OK [http://localhost/posts/new]
Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:09:52) [GET]
Parameters: {"action"=>"new", "controller"=>"categories"}
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:09:52', "perishable_token" = 'eWWFJvwvOp7Ey2Z5biJc', "last_request_at" = '2011-02-19 16:09:52' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering categories/new
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:09:52') ORDER BY created_at DESC[0m
Rendered posts/_posts (7.9ms)
[4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (1.3ms)
Completed in 202ms (View: 24, DB: 2) | 200 OK [http://localhost/categories/new]
Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:10:10) [POST]
Parameters: {"category"=>{"name"=>"ruby on rails"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
[4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:10:10', "perishable_token" = 'Zy7ClacucQF3Sme3lxko', "last_request_at" = '2011-02-19 16:10:10' WHERE "id" = 1[0m
[4;35;1mCategory Create (0.4ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES(NULL, '2011-02-19 16:10:10', '2011-02-19 16:10:10')[0m
ActionView::MissingTemplate (Missing template categories/create.erb in view path app/views):
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendering rescues/layout (internal_server_error)
Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:17:04) [GET]
Parameters: {"action"=>"new", "controller"=>"categories"}
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:17:04', "perishable_token" = 'r5nlbqB59y1Y9AOJpPPY', "last_request_at" = '2011-02-19 16:17:04' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering categories/new
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:17:04') ORDER BY created_at DESC[0m
Rendered posts/_posts (9.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (2.5ms)
Completed in 337ms (View: 22, DB: 2) | 200 OK [http://localhost/categories/new]
Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:18:03) [POST]
Parameters: {"category"=>{"name"=>"other category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:18:03', "perishable_token" = 'o85iQzLZ7lhqpMFaWKPd', "last_request_at" = '2011-02-19 16:18:03' WHERE "id" = 1[0m
NoMethodError (undefined method `stringify_keys!' for "other category":String):
app/controllers/categories_controller.rb:13:in `new'
app/controllers/categories_controller.rb:13:in `create'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendered rescues/_trace (44.0ms)
Rendered rescues/_request_and_response (0.5ms)
Rendering rescues/layout (internal_server_error)
Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:19:37) [GET]
Parameters: {"action"=>"new", "controller"=>"categories"}
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:19:37', "perishable_token" = 'bW4qsoRxmaWrWC0YZKFB', "last_request_at" = '2011-02-19 16:19:37' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering categories/new
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:19:37') ORDER BY created_at DESC[0m
Rendered posts/_posts (9.0ms)
[4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (2.3ms)
Completed in 198ms (View: 21, DB: 2) | 200 OK [http://localhost/categories/new]
Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:19:47) [POST]
Parameters: {"category"=>{"name"=>"my personal category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:19:48', "perishable_token" = 'qE0hmPHsh2X68SRNPGxH', "last_request_at" = '2011-02-19 16:19:48' WHERE "id" = 1[0m
[4;36;1mCategory Create (0.4ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('my personal category', '2011-02-19 16:19:48', '2011-02-19 16:19:48')[0m
ActionView::MissingTemplate (Missing template categories/create.erb in view path app/views):
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendering rescues/layout (internal_server_error)
Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:40:00) [GET]
Parameters: {"action"=>"new", "controller"=>"categories"}
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:40:00', "perishable_token" = 'Z0q4drEuuVb0Jl1MIsCN', "last_request_at" = '2011-02-19 16:40:00' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering categories/new
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:40:00') ORDER BY created_at DESC[0m
Rendered posts/_posts (10.4ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (2.7ms)
Completed in 171ms (View: 31, DB: 2) | 200 OK [http://localhost/categories/new]
Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:40:14) [POST]
Parameters: {"category"=>{"name"=>"my test category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:40:14', "perishable_token" = 'fc2w2OSUgfH0z9CqFD', "last_request_at" = '2011-02-19 16:40:14' WHERE "id" = 1[0m
[4;35;1mCategory Create (0.4ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('my test category', '2011-02-19 16:40:14', '2011-02-19 16:40:14')[0m
**************#<Category id: 3, name: "my test category", created_at: "2011-02-19 16:40:14", updated_at: "2011-02-19 16:40:14">
ActionView::MissingTemplate (Missing template categories/create.erb in view path app/views):
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
Rendering rescues/layout (internal_server_error)
Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:44:26) [GET]
Parameters: {"action"=>"new", "controller"=>"categories"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:26', "perishable_token" = 'vBwwEXNIU4n4J2ffo0AA', "last_request_at" = '2011-02-19 16:44:26' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering categories/new
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:44:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (8.2ms)
[4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (2.7ms)
Completed in 158ms (View: 20, DB: 2) | 200 OK [http://localhost/categories/new]
Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:44:37) [POST]
Parameters: {"category"=>{"name"=>"other category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:37', "perishable_token" = '8RDx74h1HECLBgArcDAu', "last_request_at" = '2011-02-19 16:44:37' WHERE "id" = 1[0m
[4;36;1mCategory Create (0.6ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('other category', '2011-02-19 16:44:37', '2011-02-19 16:44:37')[0m
**************#<Category id: 4, name: "other category", created_at: "2011-02-19 16:44:37", updated_at: "2011-02-19 16:44:37">
Redirected to http://localhost:3000/posts
Completed in 248ms (DB: 2) | 302 Found [http://localhost/categories]
Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:44:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:37', "perishable_token" = 'DcySbPqUR4nxzKNAbUv', "last_request_at" = '2011-02-19 16:44:37' WHERE "id" = 1[0m
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:44:37') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.1ms)
[4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (11.6ms)
Completed in 317ms (View: 304, DB: 3) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2011-02-19 13:44:49) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:49', "perishable_token" = 'Zq7sEcriJlSQhlTtOwe', "last_request_at" = '2011-02-19 16:44:49' WHERE "id" = 1[0m
Rendering template within layouts/application
Rendering posts/new
[4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered posts/_form (13.4ms)
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:44:49') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
[4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (1.8ms)
Completed in 162ms (View: 25, DB: 2) | 200 OK [http://localhost/posts/new]
Processing PostsController#create (for 127.0.0.1 at 2011-02-19 13:45:40) [POST]
Parameters: {"commit"=>"Create", "post"=>{"body"=>"The fellow's impious! What art thou sneezing about? Bone is rather dusty, sir. Take the hint, then; and when thou art dead, never bury thyself under living people's noses. Sir?—oh! ah!—I guess so;—yes—dear! Look ye, carpenter, I dare say thou callest thyself a right good workmanlike workman, eh? Well, then, will it speak thoroughly well for thy work, if, when I come to mount this leg thou makest, I shall nevertheless feel another leg in the same identical place with it; that is, carpenter, my old lost leg; the flesh and blood", "title"=>"my first post", "category_id"=>"3"}, "action"=>"create", "controller"=>"posts"}
[4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.6ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:45:40', "perishable_token" = 'ZGYAHAB6mW7CWgPxFSKM', "last_request_at" = '2011-02-19 16:45:40' WHERE "id" = 1[0m
[4;35;1mPost Create (0.5ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at", "category_id") VALUES('2011-02-19 16:45:40', 'my first post', 'The fellow''s impious! What art thou sneezing about? Bone is rather dusty, sir. Take the hint, then; and when thou art dead, never bury thyself under living people''s noses. Sir?—oh! ah!—I guess so;—yes—dear! Look ye, carpenter, I dare say thou callest thyself a right good workmanlike workman, eh? Well, then, will it speak thoroughly well for thy work, if, when I come to mount this leg thou makest, I shall nevertheless feel another leg in the same identical place with it; that is, carpenter, my old lost leg; the flesh and blood', 'Pablo Moreira Mora', '2011-02-19 16:45:40', 3)[0m
Redirected to http://localhost:3000/
Completed in 261ms (DB: 2) | 302 Found [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:45:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:45:40', "perishable_token" = 'cCAl7S7CNJenQJx7O1uf', "last_request_at" = '2011-02-19 16:45:40' WHERE "id" = 1[0m
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:45:40') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.5ms)
[4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (9.4ms)
Completed in 191ms (View: 178, DB: 3) | 200 OK [http://localhost/]
Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:50:06) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:50:06', "perishable_token" = 'iTNlbjzuECA7AuabF0n', "last_request_at" = '2011-02-19 16:50:06' WHERE "id" = 1[0m
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:50:06') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.6ms)
[4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (19.6ms)
Completed in 177ms (View: 158, DB: 3) | 200 OK [http://localhost/posts/1]
Processing CommentsController#create (for 127.0.0.1 at 2011-02-19 13:50:22) [POST]
Parameters: {"comment"=>{"comment"=>"good "}, "commit"=>"Post", "post_id"=>"1", "action"=>"create", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:50:22', "perishable_token" = 'FXEGX5YNGD6JobMbxzi', "last_request_at" = '2011-02-19 16:50:22' WHERE "id" = 1[0m
[4;35;1mComment Create (0.6ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "author", "updated_at", "post_id") VALUES('good ', '2011-02-19 16:50:22', 'Pablo Moreira Mora', '2011-02-19 16:50:22', 1)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/pablo/apps/blogajax/app/views/comments/_comment.html.erb:3)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/pablo/apps/blogajax/app/views/comments/_comment.html.erb:7)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/pablo/apps/blogajax/app/views/comments/_comment.html.erb:7)
Rendered comments/_comment (2.2ms)
Completed in 291ms (View: 26, DB: 2) | 200 OK [http://localhost/posts/1/comments]
Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:54:37) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (4.0ms)
[4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:54:38', "perishable_token" = 'ofw1UzibJbHWwAzUfHK', "last_request_at" = '2011-02-19 16:54:38' WHERE "id" = 1[0m
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:54:37') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.3ms)
Rendered categories/_categories (4.0ms)
Completed in 315ms (View: 289, DB: 3) | 200 OK [http://localhost/posts/1]
[4;36;1mCategory Load (1.1ms)[0m [0;1mSELECT * FROM "categories" [0m
[4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
[4;36;1mCategory Destroy (1.6ms)[0m [0;1mDELETE FROM "categories" WHERE "id" = 1[0m
Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:55:20) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (3.5ms)
[4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (2.1ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:55:20', "perishable_token" = 'wJEN6Sxe80mMUuqtMnH', "last_request_at" = '2011-02-19 16:55:20' WHERE "id" = 1[0m
[4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:55:20') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.1ms)
Rendered categories/_categories (4.9ms)
Completed in 192ms (View: 165, DB: 5) | 200 OK [http://localhost/posts/1]
Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:55:54) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:55:54', "perishable_token" = 'ttYcRlhlONR94Kq5F9fw', "last_request_at" = '2011-02-19 16:55:54' WHERE "id" = 1[0m
[4;36;1mPost Load (5.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:55:54') ORDER BY created_at DESC[0m
Rendered posts/_posts (8.2ms)
Rendered categories/_categories (2.5ms)
Completed in 163ms (View: 139, DB: 8) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:55:58) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mCategory Load (131.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:55:58', "perishable_token" = 'Lclnuro9HYcOFsMEqYp', "last_request_at" = '2011-02-19 16:55:58' WHERE "id" = 1[0m
[4;35;1mPost Load (1.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:55:58') ORDER BY created_at DESC[0m
Rendered posts/_posts (8.8ms)
Rendered categories/_categories (2.7ms)
Completed in 320ms (View: 168, DB: 135) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:56:00) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.4ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:56:00', "perishable_token" = 'pM05ku4wqlD8B9dP6Qr', "last_request_at" = '2011-02-19 16:56:00' WHERE "id" = 1[0m
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:56:00') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.6ms)
Rendered categories/_categories (2.7ms)
Completed in 165ms (View: 146, DB: 3) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:56:02) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
[4;36;1mPost Load (1.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.4ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (3.6ms)
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:56:02', "perishable_token" = 'Oa69tKa07LFdDZiD9S4', "last_request_at" = '2011-02-19 16:56:02' WHERE "id" = 1[0m
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:56:02') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.9ms)
Rendered categories/_categories (2.7ms)
Completed in 190ms (View: 161, DB: 4) | 200 OK [http://localhost/posts/1]
[4;36;1mSQL (0.9ms)[0m [0;1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;35;1mSQL (0.4ms)[0m [0mSELECT version FROM schema_migrations[0m
Migrating to CreateUsers (20100902183958)
Migrating to CreatePosts (20100913141458)
Migrating to CreateComments (20100913141627)
Migrating to AddAuthorPost (20100913142339)
Migrating to CreateNotifiers (20100914125209)
Migrating to CreateUserSessions (20100914125225)
Migrating to PasswordByUser (20100914141313)
Migrating to AuthorByComment (20100914143933)
Migrating to AcitveByUsers (20100914191104)
Migrating to CreateCategories (20100915183945)
Migrating to CategoryByPosts (20100915184510)
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
[4;35;1mSQL (0.3ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.4ms)[0m [0;1mSELECT version FROM schema_migrations[0m
[4;35;1mSQL (0.3ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("categories")[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("comments")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("posts")[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
[4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("users")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2011-02-19 15:41:23) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 18:41:23', "perishable_token" = 'x0Hh2Gz4c1wRH3KJpM7', "last_request_at" = '2011-02-19 18:41:23' WHERE "id" = 1[0m
+Redirected to http://localhost:3000/posts
+Completed in 168ms (DB: 2) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-19 15:41:23) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mCategory Load (1.0ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 18:41:23') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.5ms)
+Rendered categories/_categories (3.0ms)
+Completed in 183ms (View: 34, DB: 2) | 200 OK [http://localhost/posts]
diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml
new file mode 100644
index 0000000..c1f155a
--- /dev/null
+++ b/nbproject/private/private.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
+ <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
+</project-private>
|
pablodv/blogajax
|
049293af2148dc708871f5555b510d71005ca2cd
|
Fix user
|
diff --git a/db/migrate/20100902183958_create_users.rb b/db/migrate/20100902183958_create_users.rb
index 34bb540..90ed687 100644
--- a/db/migrate/20100902183958_create_users.rb
+++ b/db/migrate/20100902183958_create_users.rb
@@ -1,33 +1,33 @@
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :full_name
t.string :login, :null => false
t.string :email, :null => false
t.string :crypted_password, :null => false
t.string :password_salt, :null => false
t.string :persistence_token, :null => false
t.string :single_access_token, :null => false
t.string :perishable_token, :null => false
t.integer :login_count, :null => false, :default => 0
t.integer :failed_login_count, :null => false, :default => 0
t.datetime :last_request_at
t.datetime :current_login_at
t.datetime :last_login_at
t.string :current_login_ip
t.string :last_login_ip
t.boolean :active, :default => false
t.timestamps
- add_index :users, :perishable_token
- add_index :users, :email
+ #add_index :users, :perishable_token
+ #add_index :users, :email
end
end
def self.down
drop_table :users
end
end
|
pablodv/blogajax
|
2388e1c0943bfc66c892eddff9dd13b408cb4172
|
Fix .gams
|
diff --git a/.gems b/.gems
index 2f54ba3..6bd25a7 100644
--- a/.gems
+++ b/.gems
@@ -1,3 +1,6 @@
rails --version 2.3.8
authlogic --version 2.1.6 --source gems.github.com
+sqlite3 --version 1.3.3
+sqlite3-ruby
+
|
pablodv/blogajax
|
d5f90399e6ad2db7b383a1fea320abbf637df915
|
Fix gems file
|
diff --git a/.gems b/.gems
index 3d59127..2f54ba3 100644
--- a/.gems
+++ b/.gems
@@ -1 +1,3 @@
+rails --version 2.3.8
authlogic --version 2.1.6 --source gems.github.com
+
|
pablodv/blogajax
|
8135bcbae3d3a2d54d17e3e31b36f41ecd17c163
|
Fix version
|
diff --git a/config/environment.rb b/config/environment.rb
index b01ccb6..6ea40fa 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,42 +1,42 @@
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.3.8' #unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Specify gems that this application depends on and have them installed with rake gems:install
# config.gem "bj"
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
# config.gem "sqlite3-ruby", :lib => "sqlite3"
# config.gem "aws-s3", :lib => "aws/s3"
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Skip frameworks you're not going to use. To use Rails without a database,
# you must remove the Active Record framework.
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names.
config.time_zone = 'UTC'
config.gem "authlogic"
config.action_mailer.default_url_options = { :host => "blogsoa.heroku.com" }
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
# config.i18n.default_locale = :de
end
\ No newline at end of file
|
pablodv/blogajax
|
ec7c401f959ca18a3d7be224d60274962b68774c
|
Rails versio
|
diff --git a/config/environment.rb b/config/environment.rb
index 1a833a9..b01ccb6 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,42 +1,42 @@
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Specify gems that this application depends on and have them installed with rake gems:install
# config.gem "bj"
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
# config.gem "sqlite3-ruby", :lib => "sqlite3"
# config.gem "aws-s3", :lib => "aws/s3"
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Skip frameworks you're not going to use. To use Rails without a database,
# you must remove the Active Record framework.
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names.
config.time_zone = 'UTC'
config.gem "authlogic"
- config.action_mailer.default_url_options = { :host => "blogajax.heroku.com" }
+ config.action_mailer.default_url_options = { :host => "blogsoa.heroku.com" }
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
# config.i18n.default_locale = :de
end
\ No newline at end of file
|
pablodv/blogajax
|
79e0443ca32af8d0b2854715aaa74aadeb9b90ad
|
Fix application
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 57d394e..f62790f 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,70 +1,70 @@
-# Filters added to this controller apply to all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
class ApplicationController < ActionController::Base
helper :all
helper_method :current_user_session, :current_user
filter_parameter_logging :password, :password_confirmation
before_filter :set_locale
+ before_filter :load_categories
+
+ def load_categories
+ @categories = Category.find(:all, :order => 'name ASC')
+ end
protected
- def set_locale
- session[:locale] = params[:locale] if params[:locale]
- I18n.locale = session[:locale] || I18n.default_locale
+ def set_locale
+ session[:locale] = params[:locale] if params[:locale]
+ I18n.locale = session[:locale] || I18n.default_locale
- locale_path = "#{LOCALES_DIRECTORY}#{I18n.locale}.yml"
+ locale_path = "#{LOCALES_DIRECTORY}#{I18n.locale}.yml"
- unless I18n.load_path.include? locale_path
- I18n.load_path << locale_path
- I18n.backend.send(:init_translations)
- end
+ unless I18n.load_path.include? locale_path
+ I18n.load_path << locale_path
+ I18n.backend.send(:init_translations)
+ end
- rescue Exception => err
- logger.error err
- flash.now[:notice] = "#{I18n.locale} translation not available"
+ rescue Exception => err
+ logger.error err
+ flash.now[:notice] = "#{I18n.locale} translation not available"
- I18n.load_path -= [locale_path]
- I18n.locale = session[:locale] = I18n.default_locale
- end
+ I18n.load_path -= [locale_path]
+ I18n.locale = session[:locale] = I18n.default_locale
+ end
-
-
private
- def current_user_session
- return @current_user_session if defined?(@current_user_session)
- @current_user_session = UserSession.find
- end
+ def current_user_session
+ return @current_user_session if defined?(@current_user_session)
+ @current_user_session = UserSession.find
+ end
- def current_user
- return @current_user if defined?(@current_user)
- @current_user = current_user_session && current_user_session.record
- end
+ def current_user
+ return @current_user if defined?(@current_user)
+ @current_user = current_user_session && current_user_session.record
+ end
- def require_user
- unless current_user
- store_location
- flash[:notice] = "You must be logged in to access this page"
- redirect_to new_user_session_url
- return false
- end
+ def require_user
+ unless current_user
+ store_location
+ flash[:notice] = "You must be logged in to access this page"
+ redirect_to new_user_session_url
+ return false
end
+ end
- def require_no_user
- if current_user
- store_location
- flash[:notice] = "You must be logged out to access this page"
- redirect_to posts_path
- return false
- end
+ def require_no_user
+ if current_user
+ store_location
+ flash[:notice] = "You must be logged out to access this page"
+ redirect_to posts_path
+ return false
end
+ end
- def store_location
- session[:return_to] = request.request_uri
- end
+ def store_location
+ session[:return_to] = request.request_uri
+ end
- def redirect_back_or_default(default)
- redirect_to(session[:return_to] || default)
- session[:return_to] = nil
- end
+ def redirect_back_or_default(default)
+ redirect_to(session[:return_to] || default)
+ session[:return_to] = nil
+ end
end
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
index ce501da..aa7812f 100644
--- a/app/controllers/categories_controller.rb
+++ b/app/controllers/categories_controller.rb
@@ -1,19 +1,21 @@
class CategoriesController < ApplicationController
-
before_filter :require_user, :only => [:new, :create]
def categories
@categories = nil
end
def new
@category = Category.new()
end
def create
- @category = Category.new(params[:name])
+ @category = Category.new(params[:category])
if @category.save
- posts_path
+ flash[:notice] = 'Category was successfully created.'
+ redirect_to posts_path
+ else
+ render :action => 'new'
end
end
end
diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user_sessions_controller.rb
index 55bde79..f9bb40f 100644
--- a/app/controllers/user_sessions_controller.rb
+++ b/app/controllers/user_sessions_controller.rb
@@ -1,34 +1,26 @@
class UserSessionsController < ApplicationController
before_filter :require_no_user, :only => [:new, :create]
before_filter :require_user, :only => :destroy
def new
@user_session = UserSession.new
end
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
flash[:notice] = "Login successful!"
- unless request.xhr?
- redirect_back_or_default posts_path
- else
-# render :update do |page|
-# page.replace_html 'posts', :partial => 'comment'
-# page[:user_sessions_new].clear
-# page["comment_#commentsp"].visual_effect :highlight, :duration => 3.5
-# end
- end
+ redirect_back_or_default posts_path
else
render :action => :new
end
end
def destroy
current_user_session.destroy
flash[:notice] = "Logout successful!"
redirect_to posts_path
end
end
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index dbfddb0..67ea67a 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,42 +1,40 @@
class UsersController < ApplicationController
before_filter :require_no_user, :only => [:new, :create]
before_filter :require_user, :only => [:show, :edit, :update]
def new
@user = User.new
end
def create
@user = User.new(params[:user])
if @user.signup!(params)
@user.deliver_activation_instructions!
flash[:notice] = "Your account has been created. Please check your e-mail for your account activation instructions!"
- # [email protected]
- # flash[:notice] = "Account registered!"
- redirect_back_or_default login_path
+ redirect_to root_url
else
render :action => :new
end
end
def show
@user = @current_user
end
def edit
@user = @current_user
end
def update
@user = @current_user # makes our views "cleaner" and more consistent
if @user.update_attributes(params[:user])
flash[:notice] = "Account updated!"
redirect_to login_path
else
render :action => :edit
end
end
end
diff --git a/app/models/category.rb b/app/models/category.rb
index 910a009..564c853 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -1,2 +1,5 @@
class Category < ActiveRecord::Base
+ has_many :posts
+
+ named_scope :recent, :conditions => ["created_at > ?", 7.day.ago], :order => 'created_at DESC'
end
diff --git a/app/models/post.rb b/app/models/post.rb
index 542c622..5d23f2d 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -1,7 +1,8 @@
class Post < ActiveRecord::Base
has_many :comments
+ belongs_to :category
validates_presence_of :title, :body, :category_id
- named_scope :recent, :conditions => ["created_at > ?", 2.day.ago], :order => 'created_at DESC'
+ named_scope :recent, :conditions => ["created_at > ?", 7.day.ago], :order => 'created_at DESC'
end
diff --git a/app/views/activations/_form.erb b/app/views/activations/_form.erb
index 6bb902a..b02ed0e 100644
--- a/app/views/activations/_form.erb
+++ b/app/views/activations/_form.erb
@@ -1,9 +1,8 @@
-
- <%= form.label :password, "Set your password" %><br />
- <%= form.password_field :password %><br />
- <br />
- <%= form.label :password_confirmation %><br />
- <%= form.password_field :password_confirmation %><br />
-
- <%= form.label :openid_identifier, "Or use OpenID instead of your email / password" %><br />
- <%= form.text_field :openid_identifier %><br />
+<%= form.label :password, "Set your password" %><br />
+<%= form.password_field :password %><br />
+<br />
+<%= form.label :password_confirmation %><br />
+<%= form.password_field :password_confirmation %><br />
+
+<%= form.label :openid_identifier, "Or use OpenID instead of your email / password" %><br />
+<%= form.text_field :openid_identifier %><br />
diff --git a/app/views/activations/new.html.erb b/app/views/activations/new.html.erb
index dd2affd..4252593 100644
--- a/app/views/activations/new.html.erb
+++ b/app/views/activations/new.html.erb
@@ -1,8 +1,8 @@
<h1>Activate your account</h1>
<br />
- <% form_for @user, :url => activate_path(@user.id), :html => { :method => :post } do |f| %>
- <%= f.error_messages %>
- <%= f.submit "Activate" %>
- <% end %>
+<% form_for @user, :url => activate_path(@user.id), :html => { :method => :post } do |f| %>
+ <%= f.error_messages %>
+ <%= f.submit "Activate" %>
+<% end %>
+
-
diff --git a/app/views/categories/_categories.html.erb b/app/views/categories/_categories.html.erb
index b6f26f4..57da5a1 100644
--- a/app/views/categories/_categories.html.erb
+++ b/app/views/categories/_categories.html.erb
@@ -1,6 +1,5 @@
-<% unless @categories%>
- <% @categories = Category.find(:all, :order => 'name ASC') %>
+<% if @categories%>
<% @categories.each do |c| %>
- <%= link_to c.name, :controller => 'posts', :category_id => c.id %>
+ <%= link_to c.name, posts_path, :category_id => c.id %>
<% end %>
<% end %>
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb
index 8c4125a..176058c 100644
--- a/app/views/comments/_comment.html.erb
+++ b/app/views/comments/_comment.html.erb
@@ -1,11 +1,8 @@
-
-
- <blockquote id="commentsp">
- <p>
- <%= h comment.comment %><br/>
- </p>
- </blockquote>
- <div style="color: #999; font-size: 8pt">
- Posted by <%= comment.author %> on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
- </div>
-
\ No newline at end of file
+<blockquote id="commentsp">
+ <p>
+ <%= h comment.comment %><br/>
+ </p>
+</blockquote>
+<div style="color: #999; font-size: 8pt">
+ Posted by <%= comment.author %> on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
+</div>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 7774195..1fa96c6 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,99 +1,63 @@
<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-
-<%= stylesheet_link_tag "default" , :media => "all" %>
-<%= javascript_include_tag :defaults %>
-
-<title>Ruby on Rails 2010</title>
-</head>
-
-<body>
-
-<div class="main">
-
-
- <div class="main_left">
-
- <div class="header">
- <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
- <div id="user">
- <% if current_user %>
- <%= 'Welcome ' + current_user.full_name %> <br/>
- <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
- <% end %>
- <%# form_tag '', :method => 'GET', :class => 'locale' do %>
- <%#= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
- :onchange => 'this.form.submit()' %>
- <%#= submit_tag 'submit' %>
- <%#= javascript_tag "$$('.locale input').each(Element.hide)" %>
- <%# end %>
- </div>
- </div>
-
- <div class="link_menu">
- <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
- <%= link_to 'Login', login_path %>
- <%= link_to 'Registrer', signup_path %>
- <%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
- <%= link_to 'Add Category', :controller => 'categories', :action => 'new' %>
-
- </div>
-
- <div class="content">
- <br/>
- <div class="notice"><%= notice %></div>
- <%= yield %>
-
- </div>
-
- </div>
-
- <div class="main_right">
-
- <div class="link_projects">
- <div class="lbl">projects</div>
- <span class="left">
- <a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
- </span>
- <span class="right">
- <a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
- </span>
- </div>
-
- <div class="link_updates">
-
- <div class="lbl">recent posts </div>
- <%= render :partial => 'posts/posts' %>
- <div class="lbl">categories </div>
- <%= render :partial => 'categories/categories' %>
- <%#*<a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>%>
- <%#*<a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>%>
- <%#*<a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>%>
- <%#*<a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>%>
- <%#*<a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>%>
- <%#*<a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>%>
- <%#*<a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>%>
- <%#*<a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>%>
-
- <div class="clearer"><span></span></div>
-
- </div>
-
- </div>
-
- <div class="footer">
-
- <div class="left">© <a href="index.html">Website</a> 2009.</div>
-
- <div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
-
- <div class="clearer"><span></span></div>
-
- </div>
-
-</div>
-
-
-
-</body></html>
+ <head>
+ <%= stylesheet_link_tag "default" , :media => "all" %>
+ <%= javascript_include_tag :defaults %>
+ <title>Ruby on Rails 2010</title>
+ </head>
+
+ <body>
+ <div class="main">
+ <div class="main_left">
+ <div class="header">
+ <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+ <div id="user">
+ <% if current_user %>
+ <%= 'Welcome ' + current_user.full_name %> <br/>
+ <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
+ <% end %>
+ </div>
+ </div>
+
+ <div class="link_menu">
+ <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
+ <%= link_to 'Login', login_path %>
+ <%= link_to 'Registrer', signup_path %>
+ <%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
+ <%= link_to 'Add Category', :controller => 'categories', :action => 'new' %>
+ </div>
+
+ <div class="content">
+ <br/>
+ <div class="notice"><%= notice %></div>
+ <%= yield %>
+ </div>
+ </div>
+ <div class="main_right">
+ <div class="link_projects">
+ <div class="lbl">projects</div>
+ <span class="left">
+ <a href="#" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
+ </span>
+ <span class="right">
+ <a href="#" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
+ </span>
+ </div>
+ <div class="link_updates">
+ <div class="lbl">recent posts </div>
+ <%= render :partial => 'posts/posts' %>
+ <div class="lbl">categories </div>
+ <%= render :partial => 'categories/categories' %>
+ <div class="clearer"><span></span></div>
+ </div>
+ </div>
+
+ <div class="footer">
+ <div class="left">© <a href="#">Sistemas Operativos Avanzados</a> 2011.</div>
+ <div class="right"><a href="#">Website </a> by <a href="#">Laura Insaurralde.</a></div>
+ <div class="clearer"><span></span></div>
+ </div>
+ </div>
+
+
+
+ </body></html>
diff --git a/app/views/layouts/post.html.erb b/app/views/layouts/post.html.erb
deleted file mode 100644
index 2d9d6a0..0000000
--- a/app/views/layouts/post.html.erb
+++ /dev/null
@@ -1,96 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-
-<%= stylesheet_link_tag "default" , :media => "all" %>
-<%= javascript_include_tag :defaults %>
-
-<title>Ruby on Rails 2010</title>
-</head>
-
-<body>
-
-<div class="main">
-
-
- <div class="main_left">
-
- <div class="header">
- <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
- <div id="user">
- <% if current_user %>
- <%= 'Welcome ' + current_user.full_name %> <br/>
- <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
- <% end %>
- <%# form_tag '', :method => 'GET', :class => 'locale' do %>
- <%#= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
- :onchange => 'this.form.submit()' %>
- <%#= submit_tag 'submit' %>
- <%#= javascript_tag "$$('.locale input').each(Element.hide)" %>
- <%# end %>
- </div>
- </div>
-
- <div class="link_menu">
- <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
- <%= link_to 'Login', login_path %>
- <%= link_to 'Registrer', signup_path %>
- <%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
-
- </div>
-
- <div class="content">
- <br/>
- <div class="notice"><%= notice %></div>
- <%= yield %>
-
- </div>
-
- </div>
-
- <div class="main_right">
-
- <div class="link_projects">
- <div class="lbl">projects</div>
- <span class="left">
- <a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
- </span>
- <span class="right">
- <a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
- </span>
- </div>
-
- <div class="link_updates">
-
- <div class="lbl">update</div>
-
- <a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>
- <a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>
- <a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>
- <a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>
- <a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>
- <a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>
- <a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>
- <a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>
-
- <div class="clearer"><span></span></div>
-
- </div>
-
- </div>
-
- <div class="footer">
-
- <div class="left">© <a href="index.html">Website</a> 2009.</div>
-
- <div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
-
- <div class="clearer"><span></span></div>
-
- </div>
-
-</div>
-
-
-
-</body></html>
diff --git a/app/views/notifier/activation_confirmation.erb b/app/views/notifier/activation_confirmation.erb
index b5f6790..d568ac1 100644
--- a/app/views/notifier/activation_confirmation.erb
+++ b/app/views/notifier/activation_confirmation.erb
@@ -1,6 +1,6 @@
Your account has been activated.
- <%= @root_url %>
+<%= @root_url %>
- If the above URL does not work try copying and pasting it into your browser.
- If you continue to have problem, please feel free to contact us.
+If the above URL does not work try copying and pasting it into your browser.
+If you continue to have problem, please feel free to contact us.
diff --git a/app/views/notifier/activation_instructions.erb b/app/views/notifier/activation_instructions.erb
index b2bea17..def5a8d 100644
--- a/app/views/notifier/activation_instructions.erb
+++ b/app/views/notifier/activation_instructions.erb
@@ -1,3 +1,3 @@
- Thank you for creating an account! Click the url below to activate your account!
+Thank you for creating an account! Click the url below to activate your account!
- <%= @account_activation_url %>
+<%= @account_activation_url %>
diff --git a/app/views/notifier/holiday_reminder.erb b/app/views/notifier/holiday_reminder.erb
index 132ccd0..3b1accf 100644
--- a/app/views/notifier/holiday_reminder.erb
+++ b/app/views/notifier/holiday_reminder.erb
@@ -1,10 +1,10 @@
This a reminder of the upcoming holidays:
<% @holiday_reminder_url.each do |h| %>
<%= h.name %>
- <%= h.day %>
+ <%= h.day %>
<% end %>
If you don't want to receive more notifications, click on the link below:
<%= @exception_mailer %>
diff --git a/app/views/notifier/password_reset_instructions.erb b/app/views/notifier/password_reset_instructions.erb
index ed9bde6..e12d770 100644
--- a/app/views/notifier/password_reset_instructions.erb
+++ b/app/views/notifier/password_reset_instructions.erb
@@ -1,8 +1,8 @@
Password Reset Instructions
- A request to reset your password has been made. If you did not make
- this request, simply ignore this email. If you did make this
- request, please follow the link below.
+A request to reset your password has been made. If you did not make
+this request, simply ignore this email. If you did make this
+request, please follow the link below.
<%= @edit_password_reset_url %>
diff --git a/app/views/password_resets/new.html.erb b/app/views/password_resets/new.html.erb
index ecd79b3..425dd5b 100644
--- a/app/views/password_resets/new.html.erb
+++ b/app/views/password_resets/new.html.erb
@@ -1,14 +1,14 @@
<h1>Forgot Password</h1>
<br />
Fill out the form below and instructions to reset your password will be emailed
to you:<br />
<br />
<% form_tag password_resets_path do %>
<label>Email:</label><br />
<%= text_field_tag "email" %><br />
<br />
<%= submit_tag "Reset my password" %>
<% end %>
- <%= link_to "Back", login_path %>
\ No newline at end of file
+<%= link_to "Back", login_path %>
\ No newline at end of file
diff --git a/app/views/posts/_comment.html.erb b/app/views/posts/_comment.html.erb
index b48b691..790e5db 100644
--- a/app/views/posts/_comment.html.erb
+++ b/app/views/posts/_comment.html.erb
@@ -1,11 +1,8 @@
-
-
- <blockquote id="commentsp">
- <p>
- <%= h comment.comment %><br/>
- </p>
- </blockquote>
- <div style="color: #999; font-size: 8pt">
- Posted on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
- </div>
-
\ No newline at end of file
+<blockquote id="commentsp">
+ <p>
+ <%= h comment.comment %><br/>
+ </p>
+</blockquote>
+<div style="color: #999; font-size: 8pt">
+ Posted on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
+</div>
diff --git a/app/views/posts/_form.html.erb b/app/views/posts/_form.html.erb
index 83e9b9a..5be28e4 100644
--- a/app/views/posts/_form.html.erb
+++ b/app/views/posts/_form.html.erb
@@ -1,14 +1,13 @@
<%= error_messages_for 'post' %>
<p><label for="post_title">Title</label><br/>
<%= text_field 'post', 'title' %></p>
<p><label for="post_body">Body</label><br/>
<%= text_area 'post', 'body' %></p>
<p><label for="post_category">Category</label><br/>
<%= select 'post', 'category_id', Category.find(:all, :order => 'name ASC').collect {|c| [c.name, c.id]}, {:include_blank => 'Select a category'}%></p>
-
<p>
<%#*<p><label for="post_author">Author</label><br/>%>
<%#= text_field 'post', 'author' %></p>
diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb
index 75296dc..e3ec3ed 100644
--- a/app/views/posts/index.html.erb
+++ b/app/views/posts/index.html.erb
@@ -1,6 +1,6 @@
<% @posts.each do |p| %>
-<h1><%= link_to p.title, p %></h1>
+ <h1><%= link_to p.title, p %></h1>
<div class="descr"><%= p.author %></div>
<%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
<br/>
<% end %>
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index 8fa9a90..d52483f 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -1,22 +1,22 @@
<h1><%= @post.title %></h1>
<br/>
<%= @post.body %><br/>
<br/>
<h4>Comments</h4>
<ul>
<div id="comments">
- <%# @comments.each do |comment| %>
- <%= render @comments %> <%#= render :partial=>"comment", :object => comment %>
- <%# end %>
+<%# @comments.each do |comment| %>
+ <%= render @comments %> <%#= render :partial=>"comment", :object => comment %>
+<%# end %>
</div>
</ul>
<%= error_messages_for 'comment' %>
<% form_remote_for :comment, @comment, :url => post_comments_path(@post, @comment) do |f|%>
<p>
- <%= f.label 'Comment' %><br/>
- <%= f.text_area :comment %></p>
+ <%= f.label 'Comment' %><br/>
+ <%= f.text_area :comment %></p>
<%= f.submit "Post" %>
<% end %>
diff --git a/app/views/user_sessions/new.html.erb b/app/views/user_sessions/new.html.erb
index 28c85ec..0ad9e03 100644
--- a/app/views/user_sessions/new.html.erb
+++ b/app/views/user_sessions/new.html.erb
@@ -1,21 +1,19 @@
<h1>Login</h1>
<br />
<% form_for @user_session, :url => user_session_path do |f| %>
<%= f.error_messages %>
<%= f.label :login %><br />
<%= f.text_field :login %><br />
<br />
<%= f.label :password %><br />
<%= f.password_field :password %><br />
<br />
<%= f.check_box :remember_me %><%= f.label :remember_me %><br />
<br />
<%= f.submit "Login" %>
<% end %>
<br/>
- <%= link_to 'Signup', signup_path %> <br/>
- <%= link_to 'Forgot Password', :controller => "password_resets",
- :action => "new"%> <br/>
- <br />
+<%= link_to 'Signup', signup_path %> <br/>
+<%= link_to 'Forgot Password', :controller => "password_resets", :action => "new"%> <br/>
+<br />
-
\ No newline at end of file
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index 95d7c26..e6152f8 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -1,11 +1,10 @@
<h1>Register</h1>
<br/>
-
<% form_for @user, :url => account_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Register" %>
<% end %>
<br/>
<%= link_to "Back", login_path %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 25cfd3f..7e29f0b 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,49 +1,23 @@
-
<p>
<b>Login:</b>
<%=h @user.login %>
</p>
<p>
<b>Login count:</b>
<%=h @user.login_count %>
</p>
-<%#*<p>%>
- <%#*<b>State:</b>%>
- <%#=h @user.state %>
-<%#*</p>%>
-
-<%#*<p>%>
- <%#*<b>Country:</b>%>
- <%#=h @user.country %>
-<%#*</p>%>
-<%#*<p>%>
- <%#*<b>Last request at:</b>%>
- <%#=h @user.last_request_at %>
-<%#*</p>%>
-
<p>
<b>Last login at:</b>
<%=h @user.last_login_at %>
</p>
<p>
<b>Current login at:</b>
<%=h @user.current_login_at %>
</p>
-<%#*<p>%>
- <%#*<b>Last login ip:</b>%>
- <%#=h @user.last_login_ip %>
-<%#*</p>%>
-
-<%#*<p>%>
- <%#*<b>Current login ip:</b>%>
- <%#=h @user.current_login_ip %>
-<%#*</p>%>
-
-
<%= link_to 'Edit', edit_account_path %><br/><br/>
<%= link_to 'Change Password', :controller => "password_resets" %><br/><br/>
<%= link_to 'Go to Holiday Reminder', admin_clients_path %>
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index c5bb269..52a566e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,59 +1,60 @@
ActionController::Routing::Routes.draw do |map|
+ map.root :controller => "posts", :action => "index"
+
map.resources :posts, :has_many => :comments
map.resources :comments
map.resources :password_resets
map.resources :categories
map.resource :user_session
map.resource :account, :controller => "users"
map.login '/login', :controller => "user_sessions", :action => "new"
map.logout '/logout', :controller => "user_sessions", :action => "destroy"
map.signup 'signup', :controller => "users", :action => "new"
- map.root :controller => "user_sessions", :action => "new"
map.register '/register/:activation_code', :controller => 'activations', :action => 'new'
map.activate '/activate/:id', :controller => 'activations', :action => 'create'
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# map.resources :products
# Sample resource route with options:
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
# Sample resource route with more complex sub-resources
# map.resources :products do |products|
# products.resources :comments
# products.resources :sales, :collection => { :recent => :get }
# end
# Sample resource route within a namespace:
# map.namespace :admin do |admin|
# # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
# admin.resources :products
# end
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing or commenting them out if you're using named routes and resources.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index d095cb4..25984b2 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/db/migrate/20100902183958_create_users.rb b/db/migrate/20100902183958_create_users.rb
index 613af5d..34bb540 100644
--- a/db/migrate/20100902183958_create_users.rb
+++ b/db/migrate/20100902183958_create_users.rb
@@ -1,29 +1,33 @@
class CreateUsers < ActiveRecord::Migration
def self.up
-# create_table :users do |t|
-#
-# t.string :full_name
-# t.string :login, :null => false
-# t.string :email, :null => false
-# t.string :crypted_password, :null => false
-# t.string :password_salt, :null => false
-# t.string :persistence_token, :null => false
-# t.string :single_access_token, :null => false
-# t.string :perishable_token, :null => false
-# t.integer :login_count, :null => false, :default => 0
-# t.integer :failed_login_count, :null => false, :default => 0
-# t.datetime :last_request_at
-# t.datetime :current_login_at
-# t.datetime :last_login_at
-# t.string :current_login_ip
-# t.string :last_login_ip
-#
-# t.timestamps
- #end
+ create_table :users do |t|
+
+ t.string :full_name
+ t.string :login, :null => false
+ t.string :email, :null => false
+ t.string :crypted_password, :null => false
+ t.string :password_salt, :null => false
+ t.string :persistence_token, :null => false
+ t.string :single_access_token, :null => false
+ t.string :perishable_token, :null => false
+ t.integer :login_count, :null => false, :default => 0
+ t.integer :failed_login_count, :null => false, :default => 0
+ t.datetime :last_request_at
+ t.datetime :current_login_at
+ t.datetime :last_login_at
+ t.string :current_login_ip
+ t.string :last_login_ip
+ t.boolean :active, :default => false
+
+ t.timestamps
+
+ add_index :users, :perishable_token
+ add_index :users, :email
+ end
end
def self.down
drop_table :users
end
end
diff --git a/db/migrate/20100914133546_create_user.rb b/db/migrate/20100914133546_create_user.rb
deleted file mode 100644
index b533d18..0000000
--- a/db/migrate/20100914133546_create_user.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-class CreateUser < ActiveRecord::Migration
- def self.up
-
-
-# add_column :users, :full_name, :string
-# add_column :users, :login, :string
-# add_column :users, :email, :string
-# add_column :users, :crypted_password, :string
-# add_column :users, :password_salt, :string
-# add_column :users, :persistence_token, :string
-# add_column :users, :single_access_token, :string
-# add_column :users, :perishable_token, :string
-# add_column :users, :login_count, :integer, :default => 0
-# add_column :users, :failed_login_count, :integer, :default => 0
-# add_column :users, :last_request_at, :datetime
-# add_column :users, :current_login_at, :datetime
-# add_column :users, :last_login_at, :datetime
-# add_column :users, :current_login_ip, :string
-# add_column :users, :last_login_ip, :string
-# add_column :users, :active, :boolean, :default => false
-#
- add_index :users, :perishable_token
- add_index :users, :email
- end
-
- def self.down
-# remove_column :users, :full_name
-# remove_column :users, :login
-# remove_column :users, :email
-# remove_column :users, :crypted_password
-# remove_column :users, :password_salt
-# remove_column :users, :persistence_token
-# remove_column :users, :single_access_token
-# remove_column :users, :perishable_token
-# remove_column :users, :login_count
-# remove_column :users, :failed_login_count
-# remove_column :users, :last_request_at
-# remove_column :users, :current_login_at
-# remove_column :users, :last_login_at
-# remove_column :users, :current_login_ip
-# remove_column :users, :last_login_ip
-# remove_column :users, :active
- end
-end
diff --git a/db/schema.rb b/db/schema.rb
index 230ec5f..153692a 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1,72 +1,72 @@
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20100915184510) do
+ActiveRecord::Schema.define(:version => 20110218214416) do
create_table "categories", :force => true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "comments", :force => true do |t|
t.integer "post_id"
t.date "created_at"
t.text "comment"
t.datetime "updated_at"
t.string "author"
end
create_table "notifiers", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "posts", :force => true do |t|
t.string "title"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.string "author"
t.integer "category_id"
end
create_table "user_sessions", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "users", :force => true do |t|
- t.datetime "created_at"
- t.datetime "updated_at"
t.string "full_name"
- t.string "login"
- t.string "email"
- t.string "crypted_password"
- t.string "password_salt"
- t.string "persistence_token"
- t.string "single_access_token"
- t.string "perishable_token"
- t.integer "login_count", :default => 0
- t.integer "failed_login_count", :default => 0
+ t.string "login", :null => false
+ t.string "email", :null => false
+ t.string "crypted_password", :null => false
+ t.string "password_salt", :null => false
+ t.string "persistence_token", :null => false
+ t.string "single_access_token", :null => false
+ t.string "perishable_token", :null => false
+ t.integer "login_count", :default => 0, :null => false
+ t.integer "failed_login_count", :default => 0, :null => false
t.datetime "last_request_at"
t.datetime "current_login_at"
t.datetime "last_login_at"
t.string "current_login_ip"
t.string "last_login_ip"
- t.boolean "active", :default => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.string "password"
+ t.boolean "active", :default => false
end
add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
end
diff --git a/log/development.log b/log/development.log
index 91e05b7..b8fb50b 100644
--- a/log/development.log
+++ b/log/development.log
@@ -14262,512 +14262,1626 @@ Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:54) [GET]
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.4ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:20) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (37.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:21) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (35.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:50:27) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:50:27') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.7ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.2ms)
Completed in 32ms (View: 26, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:32) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:32') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.7ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:55) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:55') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 29ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.6ms)
Completed in 31ms (View: 25, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:53:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:53:03') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.1ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.4ms)
Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:07) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (37.8ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:27) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (35.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:30) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (38.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:42) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (35.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:02') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.7ms)
Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:03') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (11.8ms)
Completed in 75ms (View: 69, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:06) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (undefined method `each' for #<Post:0xb6f2d3b4>) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (43.7ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:57:59) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (13.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:57:59') ORDER BY created_at DESC[0m
Rendered posts/_posts (61.1ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.2ms)
Completed in 85ms (View: 66, DB: 14) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:38) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:38') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.1ms)
Completed in 27ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:40) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:40') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.8ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 28ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:59:44) [GET]
Parameters: {"action"=>"show", "id"=>"6", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 6) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 6) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:44') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.1ms)
Completed in 35ms (View: 25, DB: 1) | 200 OK [http://localhost/posts/6]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:49) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:49') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:52) [GET]
Parameters: {"action"=>"index", "category_id"=>"10", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '10') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:52') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.0ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=10]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:54) [GET]
Parameters: {"action"=>"index", "category_id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '1') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:54') ORDER BY created_at DESC[0m
Rendered posts/_posts (4.0ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.5ms)
Completed in 28ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:56) [GET]
Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 26ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:30) [GET]
Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:30') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:32') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.6ms)
Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:14:58) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:14:58') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 27ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:22) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:22') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.7ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.1ms)
Completed in 101ms (View: 87, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:24) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:24') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.4ms)
[4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.0ms)
Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 17:27:26) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.9ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 32ms (View: 22, DB: 1) | 200 OK [http://localhost/login]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-15 17:27:35) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "login_count" = 20, "updated_at" = '2010-09-15 20:27:35', "perishable_token" = 'qqS49rycTUycYkgf2tWJ', "last_request_at" = '2010-09-15 20:27:35', "last_login_at" = '2010-09-15 18:53:07', "current_login_at" = '2010-09-15 20:27:35' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 244ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 20:27:35', "perishable_token" = 'F1lkrqflfbkOOpAstUGC', "last_request_at" = '2010-09-15 20:27:35' WHERE "id" = 2[0m
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:35') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.9ms)
Completed in 189ms (View: 182, DB: 3) | 200 OK [http://localhost/posts]
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:27:36) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:31:31) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:31:39) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:31:46) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:09) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:10) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:10) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:10) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:11) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:11) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:11) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:32:17) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 20:32:17', "perishable_token" = 'n0GA6mVdCIqe2McmmBRp', "last_request_at" = '2010-09-15 20:32:17' WHERE "id" = 2[0m
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:32:17') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.7ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (7.4ms)
Completed in 219ms (View: 205, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:32:18) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (1.8ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 20:32:18', "perishable_token" = '5wuJKnbPCVBHq0yoSQMt', "last_request_at" = '2010-09-15 20:32:18' WHERE "id" = 2[0m
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:32:18') ORDER BY created_at DESC[0m
Rendered posts/_posts (5.4ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.8ms)
Completed in 135ms (View: 126, DB: 3) | 200 OK [http://localhost/posts]
Processing CategoriesController#new (for 127.0.0.1 at 2010-09-15 17:32:20) [GET]
Parameters: {"action"=>"new", "controller"=>"categories"}
[4;36;1mUser Load (2.7ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 20:32:21', "perishable_token" = 'oRU8HFM1gce9TmdeO16w', "last_request_at" = '2010-09-15 20:32:21' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering categories/new
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:32:21') ORDER BY created_at DESC[0m
Rendered posts/_posts (58.4ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (2.9ms)
Completed in 178ms (View: 73, DB: 4) | 200 OK [http://localhost/categories/new]
+
+
+Processing Rails::InfoController#properties (for 127.0.0.1 at 2011-02-18 17:58:40) [GET]
+ [4;36;1mSQL (1.7ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.7ms)[0m [0mSELECT version FROM schema_migrations[0m
+Completed in 127ms (View: 18, DB: 2) | 200 OK [http://localhost/rails/info/properties]
+ [4;36;1mSQL (1.1ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+Migrating to CreateCategories (20100915183945)
+Migrating to CategoryByPosts (20100915184510)
+ [4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.5ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("categories")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("comments")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("posts")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;36;1mSQL (0.9ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.5ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+Migrating to CreateCategories (20100915183945)
+Migrating to CategoryByPosts (20100915184510)
+ [4;36;1mSQL (0.3ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("categories")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("comments")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("posts")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2011-02-18 18:04:30) [GET]
+
+ActionController::RoutingError (No route matches "/sign_in" with {:method=>:get}):
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:04:40) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:04:40') ORDER BY created_at DESC[0m
+Rendered posts/_posts (106.4ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (12.1ms)
+Completed in 366ms (View: 249, DB: 1) | 200 OK [http://localhost/login]
+
+
+Processing Rails::InfoController#properties (for 127.0.0.1 at 2011-02-18 18:05:26) [GET]
+ [4;36;1mSQL (0.8ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.4ms)[0m [0mSELECT version FROM schema_migrations[0m
+Completed in 17ms (View: 2, DB: 1) | 200 OK [http://localhost/rails/info/properties]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:05:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.1ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:05:57') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.1ms)
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.8ms)
+Completed in 56ms (View: 45, DB: 2) | 200 OK [http://localhost/]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:10:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.1ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:10:50') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.4ms)
+Completed in 51ms (View: 39, DB: 2) | 200 OK [http://localhost/]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:10:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:10:52') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.6ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.3ms)
+Completed in 49ms (View: 27, DB: 1) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2011-02-18 18:10:57) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (6.2ms)
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:10:57') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.6ms)
+ [4;35;1mCategory Load (0.8ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.7ms)
+Completed in 64ms (View: 43, DB: 1) | 200 OK [http://localhost/signup]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2011-02-18 18:11:02) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 20ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:11:02) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:11:02') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.7ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.9ms)
+Completed in 47ms (View: 26, DB: 1) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2011-02-18 18:11:11) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 17ms (DB: 0) | 302 Found [http://localhost/categories/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:11:11) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:11:11') ORDER BY created_at DESC[0m
+Rendered posts/_posts (8.2ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.2ms)
+Completed in 49ms (View: 27, DB: 1) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2011-02-18 18:11:31) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (4.0ms)
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:11:31') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.2ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.0ms)
+Completed in 51ms (View: 32, DB: 1) | 200 OK [http://localhost/signup]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2011-02-18 18:11:41) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 119ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:11:41) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:11:41') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.4ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.4ms)
+Completed in 46ms (View: 26, DB: 1) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:12:33) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:12:33') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.1ms)
+Completed in 50ms (View: 38, DB: 2) | 200 OK [http://localhost/]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:18:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.2ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:18:54') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.1ms)
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.3ms)
+Completed in 57ms (View: 45, DB: 2) | 200 OK [http://localhost/]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:19:34) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:19:34') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.1ms)
+ [4;36;1mCategory Load (0.7ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.5ms)
+Completed in 158ms (View: 147, DB: 2) | 200 OK [http://localhost/]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:21:45) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.0ms)[0m [0mSQLite3::SQLException: no such table: posts: SELECT * FROM "posts" ORDER BY title[0m
+
+ActiveRecord::StatementInvalid (SQLite3::SQLException: no such table: posts: SELECT * FROM "posts" ORDER BY title):
+ app/controllers/posts_controller.rb:10:in `index'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendered rescues/_trace (162.9ms)
+Rendered rescues/_request_and_response (2.5ms)
+Rendering rescues/layout (internal_server_error)
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
+ [4;36;1mSQL (144.6ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [4;35;1mSQL (0.4ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
+ [4;36;1mSQL (87.9ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [4;35;1mSQL (0.9ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.6ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+ [4;35;1mSQL (1.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100902183958')[0m
+Migrating to CreatePosts (20100913141458)
+ [4;36;1mSQL (1.9ms)[0m [0;1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
+ [4;35;1mSQL (0.5ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100913141458')[0m
+Migrating to CreateComments (20100913141627)
+ [4;36;1mSQL (1.6ms)[0m [0;1mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "created_at" date, "comment" text, "updated_at" datetime) [0m
+ [4;35;1mSQL (0.5ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100913141627')[0m
+Migrating to AddAuthorPost (20100913142339)
+ [4;36;1mSQL (1.6ms)[0m [0;1mALTER TABLE "posts" ADD "author" varchar(255)[0m
+ [4;35;1mSQL (0.5ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100913142339')[0m
+Migrating to CreateNotifiers (20100914125209)
+ [4;36;1mSQL (0.9ms)[0m [0;1mCREATE TABLE "notifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100914125209')[0m
+Migrating to CreateUserSessions (20100914125225)
+ [4;36;1mSQL (1.6ms)[0m [0;1mCREATE TABLE "user_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;35;1mSQL (0.4ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100914125225')[0m
+Migrating to CreateUser (20100914133546)
+ [4;36;1mSQL (0.3ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mSQLite3::SQLException: no such table: main.users: CREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
+ [4;36;1mSQL (125.5ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [4;35;1mSQL (0.4ms)[0m [0mPRAGMA index_list("schema_migrations")[0m
+ [4;36;1mSQL (75.8ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+ [4;35;1mSQL (0.8ms)[0m [0mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "full_name" varchar(255), "login" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "password_salt" varchar(255) NOT NULL, "persistence_token" varchar(255) NOT NULL, "single_access_token" varchar(255) NOT NULL, "perishable_token" varchar(255) NOT NULL, "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100902183958')[0m
+Migrating to CreatePosts (20100913141458)
+ [4;35;1mSQL (0.8ms)[0m [0mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100913141458')[0m
+Migrating to CreateComments (20100913141627)
+ [4;35;1mSQL (0.9ms)[0m [0mCREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "created_at" date, "comment" text, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100913141627')[0m
+Migrating to AddAuthorPost (20100913142339)
+ [4;35;1mSQL (0.6ms)[0m [0mALTER TABLE "posts" ADD "author" varchar(255)[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100913142339')[0m
+Migrating to CreateNotifiers (20100914125209)
+ [4;35;1mSQL (0.6ms)[0m [0mCREATE TABLE "notifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914125209')[0m
+Migrating to CreateUserSessions (20100914125225)
+ [4;35;1mSQL (0.6ms)[0m [0mCREATE TABLE "user_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914125225')[0m
+Migrating to CreateUser (20100914133546)
+ [4;35;1mSQL (0.3ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (2.2ms)[0m [0;1mCREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;35;1mSQL (0.3ms)[0m [0mCREATE INDEX "index_users_on_email" ON "users" ("email")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914133546')[0m
+Migrating to PasswordByUser (20100914141313)
+ [4;35;1mSQL (1.9ms)[0m [0mALTER TABLE "users" ADD "password" varchar(255)[0m
+ [4;36;1mSQL (0.6ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914141313')[0m
+Migrating to AuthorByComment (20100914143933)
+ [4;35;1mSQL (1.6ms)[0m [0mALTER TABLE "comments" ADD "author" varchar(255)[0m
+ [4;36;1mSQL (0.6ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914143933')[0m
+Migrating to AcitveByUsers (20100914191104)
+ [4;35;1mSQL (1.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100914191104')[0m
+Migrating to CreateCategories (20100915183945)
+ [4;36;1mSQL (1.7ms)[0m [0;1mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100915183945')[0m
+Migrating to CategoryByPosts (20100915184510)
+ [4;36;1mSQL (0.6ms)[0m [0;1mALTER TABLE "posts" ADD "category_id" integer[0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100915184510')[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.4ms)[0m [0mSELECT version FROM schema_migrations[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("categories")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:24:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-16 21:24:17') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (4.5ms)
+Completed in 39ms (View: 26, DB: 2) | 200 OK [http://localhost/]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2011-02-18 18:29:19) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 40ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:29:19) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:29:19') ORDER BY created_at DESC[0m
+Rendered posts/_posts (30.4ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (11.5ms)
+Completed in 73ms (View: 52, DB: 1) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:38:53) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;35;1mPost Load (0.9ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:38:53') ORDER BY created_at DESC[0m
+Rendered posts/_posts (28.9ms)
+ [4;36;1mCategory Load (0.9ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (26.2ms)
+Completed in 226ms (View: 143, DB: 2) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2011-02-18 18:39:01) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (37.5ms)
+ [4;35;1mPost Load (0.9ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:39:01') ORDER BY created_at DESC[0m
+Rendered posts/_posts (81.6ms)
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (48.4ms)
+Completed in 510ms (View: 315, DB: 2) | 200 OK [http://localhost/signup]
+
+
+Processing UsersController#create (for 127.0.0.1 at 2011-02-18 18:39:28) [POST]
+ Parameters: {"commit"=>"Register", "action"=>"create", "controller"=>"users", "user"=>{"password_confirmation"=>"[FILTERED]", "full_name"=>"Pablo Moreira Mora", "password"=>"[FILTERED]", "login"=>"pablito", "email"=>"[email protected]"}}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT "users".id FROM "users" WHERE (LOWER("users"."email") = '[email protected]') LIMIT 1[0m
+ [4;36;1mUser Load (0.2ms)[0m [0;1mSELECT "users".id FROM "users" WHERE (LOWER("users"."login") = 'pablito') LIMIT 1[0m
+ [4;35;1mUser Load (0.2ms)[0m [0mSELECT "users".id FROM "users" WHERE ("users"."persistence_token" = '9709e8ee32c6d82a1c8ede2165ce11c4fd5f25e62a8c31c048b4ab1f18327b43344bcf8ef11f000919d31bb62913cfaec55768e3f69229f8e55f9fdc12d73034') LIMIT 1[0m
+ [4;36;1mUser Load (0.2ms)[0m [0;1mSELECT "users".id FROM "users" WHERE ("users"."single_access_token" = 'IqVXXluUGBrgMVovB8') LIMIT 1[0m
+ [4;35;1mUser Create (0.7ms)[0m [0mINSERT INTO "users" ("single_access_token", "last_request_at", "created_at", "crypted_password", "perishable_token", "updated_at", "failed_login_count", "current_login_ip", "password_salt", "current_login_at", "full_name", "persistence_token", "login_count", "last_login_ip", "login", "last_login_at", "password", "email") VALUES('IqVXXluUGBrgMVovB8', NULL, '2011-02-18 21:39:29', 'd3d26da121b94f36ea09fafdd50a3a3ae5feee47f3ad9437b467b3749a177f391d2ba72532a6406848beeb34182486b2516417db4b70a1bc1e300eb402548012', 'f74IT2lMjt6PuoJsQA', '2011-02-18 21:39:29', 0, NULL, 'fOQwTiGsPB5c9VTCzWG', NULL, 'Pablo Moreira Mora', '9709e8ee32c6d82a1c8ede2165ce11c4fd5f25e62a8c31c048b4ab1f18327b43344bcf8ef11f000919d31bb62913cfaec55768e3f69229f8e55f9fdc12d73034', 0, NULL, 'pablito', NULL, NULL, '[email protected]')[0m
+ [4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:39:29', "perishable_token" = 'DExcq2xiTEHujUcs6R98' WHERE "id" = 1[0m
+Sent mail to [email protected]
+
+Date: Fri, 18 Feb 2011 18:39:29 -0300
+From: Blog <[email protected]>
+To: [email protected]
+Subject: Activation Instructions
+Mime-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+
+Thank you for creating an account! Click the url below to activate your account!
+
+http://blogajax.heroku.com/register/DExcq2xiTEHujUcs6R98
+Redirected to http://localhost:3000/posts/new
+Completed in 1034ms (DB: 2) | 302 Found [http://localhost/account]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2011-02-18 18:39:29) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 28ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:39:30) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:39:30') ORDER BY created_at DESC[0m
+Rendered posts/_posts (9.7ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.7ms)
+Completed in 50ms (View: 26, DB: 1) | 200 OK [http://localhost/user_session/new]
+
+
+Processing ActivationsController#new (for 127.0.0.1 at 2011-02-18 18:40:41) [GET]
+ Parameters: {"action"=>"new", "activation_code"=>"DExcq2xiTEHujUcs6R98", "controller"=>"activations"}
+ [4;36;1mUser Load (1.7ms)[0m [0;1mSELECT * FROM "users" WHERE (perishable_token = 'DExcq2xiTEHujUcs6R98' and updated_at > '2011-02-11 21:40:42') LIMIT 1[0m
+
+NameError (undefined local variable or method `active' for #<User:0x7f63d8af1098>):
+ app/models/user.rb:7:in `active?'
+ app/controllers/activations_controller.rb:7:in `new'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendered rescues/_trace (403.8ms)
+Rendered rescues/_request_and_response (6.3ms)
+Rendering rescues/layout (internal_server_error)
+ [4;36;1mSQL (2.7ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.3ms)[0m [0mSELECT version FROM schema_migrations[0m
+ [4;36;1mSQL (1.1ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.8ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CategoryByPosts (20100915184510)
+ [4;36;1mSQL (0.5ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (3.2ms)[0m [0mCREATE TEMPORARY TABLE "altered_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime, "author" varchar(255), "category_id" integer) [0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (1.9ms)[0m [0mDROP TABLE "posts"[0m
+ [4;36;1mSQL (1.2ms)[0m [0;1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" text, "created_at" datetime, "updated_at" datetime, "author" varchar(255)) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("altered_posts")[0m
+ [4;36;1mSQL (1.0ms)[0m [0;1mDROP TABLE "altered_posts"[0m
+ [4;35;1mSQL (0.7ms)[0m [0mDELETE FROM schema_migrations WHERE version = '20100915184510'[0m
+ [4;36;1mSQL (1.1ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.0ms)[0m [0mSELECT version FROM schema_migrations[0m
+ [4;36;1mSQL (0.9ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.3ms)[0m [0mPRAGMA index_list("categories")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.3ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;36;1mSQL (2.7ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+ [4;36;1mSQL (1.2ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateCategories (20100915183945)
+ [4;36;1mSQL (0.4ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (1.7ms)[0m [0mDROP TABLE "categories"[0m
+ [4;36;1mSQL (0.7ms)[0m [0;1mDELETE FROM schema_migrations WHERE version = '20100915183945'[0m
+ [4;35;1mSQL (1.1ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.9ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.9ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.3ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;36;1mSQL (2.7ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (1.4ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+Migrating to CreateCategories (20100915183945)
+ [4;36;1mSQL (0.5ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (2.0ms)[0m [0mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (1.3ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100915183945')[0m
+Migrating to CategoryByPosts (20100915184510)
+ [4;35;1mSQL (1.8ms)[0m [0mALTER TABLE "posts" ADD "category_id" integer[0m
+ [4;36;1mSQL (0.6ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100915184510')[0m
+ [4;35;1mSQL (1.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (1.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (1.0ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("categories")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("comments")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("posts")[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
+ [4;35;1mSQL (0.5ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
+ [4;35;1mSQL (0.3ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;36;1mSQL (0.9ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.4ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+Migrating to CreateCategories (20100915183945)
+Migrating to CategoryByPosts (20100915184510)
+Migrating to AddActive (20110218214416)
+ [4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.8ms)[0m [0mALTER TABLE "users" ADD "active" boolean DEFAULT 'f'[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20110218214416')[0m
+ [4;35;1mSQL (0.4ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.4ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("categories")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("comments")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("posts")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
+ [4;35;1mSQL (0.2ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing ActivationsController#new (for 127.0.0.1 at 2011-02-18 18:49:42) [GET]
+ Parameters: {"action"=>"new", "activation_code"=>"DExcq2xiTEHujUcs6R98", "controller"=>"activations"}
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE (perishable_token = 'DExcq2xiTEHujUcs6R98' and updated_at > '2011-02-11 21:49:42') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering activations/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:49:42') ORDER BY created_at DESC[0m
+Rendered posts/_posts (39.7ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (8.7ms)
+Completed in 237ms (View: 209, DB: 1) | 200 OK [http://localhost/register/DExcq2xiTEHujUcs6R98]
+
+
+Processing ActivationsController#create (for 127.0.0.1 at 2011-02-18 18:49:46) [POST]
+ Parameters: {"commit"=>"Activate", "action"=>"create", "id"=>"1", "controller"=>"activations"}
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 1) [0m
+ [4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-18 21:49:46', "perishable_token" = 'Q0aCvJ4aosHGw6ijcBkY', "active" = 't' WHERE "id" = 1[0m
+ [4;36;1mUser Update (1.1ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:49:46', "perishable_token" = 'mtirz5wk7wT9ii8uatRs' WHERE "id" = 1[0m
+Sent mail to [email protected]
+
+Date: Fri, 18 Feb 2011 18:49:46 -0300
+From: Blog <[email protected]>
+To: [email protected]
+Subject: Activation Complete
+Mime-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+
+Your account has been activated.
+
+http://blogajax.heroku.com/login
+
+If the above URL does not work try copying and pasting it into your browser.
+If you continue to have problem, please feel free to contact us.
+Redirected to http://localhost:3000/account
+Completed in 459ms (DB: 2) | 302 Found [http://localhost/activate/1]
+
+
+Processing UsersController#show (for 127.0.0.1 at 2011-02-18 18:49:47) [GET]
+ Parameters: {"action"=>"show", "controller"=>"users"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 18ms (DB: 0) | 302 Found [http://localhost/account]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2011-02-18 18:49:47) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:49:47') ORDER BY created_at DESC[0m
+Rendered posts/_posts (8.0ms)
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (7.0ms)
+Completed in 54ms (View: 32, DB: 1) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2011-02-18 18:49:59) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablito"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablito') LIMIT 1[0m
+ [4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "login_count" = 1, "current_login_ip" = '127.0.0.1', "updated_at" = '2011-02-18 21:49:59', "perishable_token" = 'yT1FcvYzLaRjLXGeJVa', "last_request_at" = '2011-02-18 21:49:59', "current_login_at" = '2011-02-18 21:49:59' WHERE "id" = 1[0m
+Redirected to http://localhost:3000/account
+Completed in 373ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing UsersController#show (for 127.0.0.1 at 2011-02-18 18:49:59) [GET]
+ Parameters: {"action"=>"show", "controller"=>"users"}
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:49:59', "perishable_token" = 'cM07e7FTcOVr1Iz80vTa', "last_request_at" = '2011-02-18 21:49:59' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering users/show
+
+ActionView::TemplateError (undefined local variable or method `admin_clients_path' for #<ActionView::Base:0x7f63d86e7588>) on line #23 of app/views/users/show.html.erb:
+20:
+21: <%= link_to 'Edit', edit_account_path %><br/><br/>
+22: <%= link_to 'Change Password', :controller => "password_resets" %><br/><br/>
+23: <%= link_to 'Go to Holiday Reminder', admin_clients_path %>
+
+ app/views/users/show.html.erb:23
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendered rescues/_trace (59.8ms)
+Rendered rescues/_request_and_response (0.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2011-02-18 18:51:39) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablito"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.9ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-18 21:51:39', "perishable_token" = 'x7pjlLdn5lPombEoF8UT', "last_request_at" = '2011-02-18 21:51:39' WHERE "id" = 1[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 151ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-18 18:51:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-18 21:51:40', "perishable_token" = '2RzyojZVu1OxFOxzaDVe', "last_request_at" = '2011-02-18 21:51:40' WHERE "id" = 1[0m
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:51:40') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.1ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (7.3ms)
+Completed in 190ms (View: 170, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2011-02-18 18:52:04) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-18 21:52:05', "perishable_token" = 'pIqetTTImbFu0AJiRUPc', "last_request_at" = '2011-02-18 21:52:05' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (20.2ms)
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-11 21:52:05') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.2ms)
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (0.9ms)
+Completed in 370ms (View: 51, DB: 2) | 200 OK [http://localhost/posts/new]
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:09:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:09:52', "perishable_token" = 'eWWFJvwvOp7Ey2Z5biJc', "last_request_at" = '2011-02-19 16:09:52' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering categories/new
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:09:52') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.9ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (1.3ms)
+Completed in 202ms (View: 24, DB: 2) | 200 OK [http://localhost/categories/new]
+
+
+Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:10:10) [POST]
+ Parameters: {"category"=>{"name"=>"ruby on rails"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
+ [4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:10:10', "perishable_token" = 'Zy7ClacucQF3Sme3lxko', "last_request_at" = '2011-02-19 16:10:10' WHERE "id" = 1[0m
+ [4;35;1mCategory Create (0.4ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES(NULL, '2011-02-19 16:10:10', '2011-02-19 16:10:10')[0m
+
+ActionView::MissingTemplate (Missing template categories/create.erb in view path app/views):
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:17:04) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:17:04', "perishable_token" = 'r5nlbqB59y1Y9AOJpPPY', "last_request_at" = '2011-02-19 16:17:04' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering categories/new
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:17:04') ORDER BY created_at DESC[0m
+Rendered posts/_posts (9.5ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (2.5ms)
+Completed in 337ms (View: 22, DB: 2) | 200 OK [http://localhost/categories/new]
+
+
+Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:18:03) [POST]
+ Parameters: {"category"=>{"name"=>"other category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:18:03', "perishable_token" = 'o85iQzLZ7lhqpMFaWKPd', "last_request_at" = '2011-02-19 16:18:03' WHERE "id" = 1[0m
+
+NoMethodError (undefined method `stringify_keys!' for "other category":String):
+ app/controllers/categories_controller.rb:13:in `new'
+ app/controllers/categories_controller.rb:13:in `create'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendered rescues/_trace (44.0ms)
+Rendered rescues/_request_and_response (0.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:19:37) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:19:37', "perishable_token" = 'bW4qsoRxmaWrWC0YZKFB', "last_request_at" = '2011-02-19 16:19:37' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering categories/new
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:19:37') ORDER BY created_at DESC[0m
+Rendered posts/_posts (9.0ms)
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (2.3ms)
+Completed in 198ms (View: 21, DB: 2) | 200 OK [http://localhost/categories/new]
+
+
+Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:19:47) [POST]
+ Parameters: {"category"=>{"name"=>"my personal category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:19:48', "perishable_token" = 'qE0hmPHsh2X68SRNPGxH', "last_request_at" = '2011-02-19 16:19:48' WHERE "id" = 1[0m
+ [4;36;1mCategory Create (0.4ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('my personal category', '2011-02-19 16:19:48', '2011-02-19 16:19:48')[0m
+
+ActionView::MissingTemplate (Missing template categories/create.erb in view path app/views):
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:40:00) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:40:00', "perishable_token" = 'Z0q4drEuuVb0Jl1MIsCN', "last_request_at" = '2011-02-19 16:40:00' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering categories/new
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:40:00') ORDER BY created_at DESC[0m
+Rendered posts/_posts (10.4ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (2.7ms)
+Completed in 171ms (View: 31, DB: 2) | 200 OK [http://localhost/categories/new]
+
+
+Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:40:14) [POST]
+ Parameters: {"category"=>{"name"=>"my test category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:40:14', "perishable_token" = 'fc2w2OSUgfH0z9CqFD', "last_request_at" = '2011-02-19 16:40:14' WHERE "id" = 1[0m
+ [4;35;1mCategory Create (0.4ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('my test category', '2011-02-19 16:40:14', '2011-02-19 16:40:14')[0m
+**************#<Category id: 3, name: "my test category", created_at: "2011-02-19 16:40:14", updated_at: "2011-02-19 16:40:14">
+
+ActionView::MissingTemplate (Missing template categories/create.erb in view path app/views):
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:95:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `each'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:92:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:23:in `start'
+ /home/pablo/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/webrick/server.rb:82:in `start'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2011-02-19 13:44:26) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:26', "perishable_token" = 'vBwwEXNIU4n4J2ffo0AA', "last_request_at" = '2011-02-19 16:44:26' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering categories/new
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:44:26') ORDER BY created_at DESC[0m
+Rendered posts/_posts (8.2ms)
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (2.7ms)
+Completed in 158ms (View: 20, DB: 2) | 200 OK [http://localhost/categories/new]
+
+
+Processing CategoriesController#create (for 127.0.0.1 at 2011-02-19 13:44:37) [POST]
+ Parameters: {"category"=>{"name"=>"other category"}, "commit"=>"Create", "action"=>"create", "controller"=>"categories"}
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:37', "perishable_token" = '8RDx74h1HECLBgArcDAu', "last_request_at" = '2011-02-19 16:44:37' WHERE "id" = 1[0m
+ [4;36;1mCategory Create (0.6ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('other category', '2011-02-19 16:44:37', '2011-02-19 16:44:37')[0m
+**************#<Category id: 4, name: "other category", created_at: "2011-02-19 16:44:37", updated_at: "2011-02-19 16:44:37">
+Redirected to http://localhost:3000/posts
+Completed in 248ms (DB: 2) | 302 Found [http://localhost/categories]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:44:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:37', "perishable_token" = 'DcySbPqUR4nxzKNAbUv', "last_request_at" = '2011-02-19 16:44:37' WHERE "id" = 1[0m
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:44:37') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.1ms)
+ [4;35;1mCategory Load (0.7ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (11.6ms)
+Completed in 317ms (View: 304, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2011-02-19 13:44:49) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:44:49', "perishable_token" = 'Zq7sEcriJlSQhlTtOwe', "last_request_at" = '2011-02-19 16:44:49' WHERE "id" = 1[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;36;1mCategory Load (0.6ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (13.4ms)
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:44:49') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+ [4;36;1mCACHE (0.0ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (1.8ms)
+Completed in 162ms (View: 25, DB: 2) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2011-02-19 13:45:40) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"The fellow's impious! What art thou sneezing about? Bone is rather dusty, sir. Take the hint, then; and when thou art dead, never bury thyself under living people's noses. Sir?—oh! ah!—I guess so;—yes—dear! Look ye, carpenter, I dare say thou callest thyself a right good workmanlike workman, eh? Well, then, will it speak thoroughly well for thy work, if, when I come to mount this leg thou makest, I shall nevertheless feel another leg in the same identical place with it; that is, carpenter, my old lost leg; the flesh and blood", "title"=>"my first post", "category_id"=>"3"}, "action"=>"create", "controller"=>"posts"}
+ [4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.6ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:45:40', "perishable_token" = 'ZGYAHAB6mW7CWgPxFSKM', "last_request_at" = '2011-02-19 16:45:40' WHERE "id" = 1[0m
+ [4;35;1mPost Create (0.5ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at", "category_id") VALUES('2011-02-19 16:45:40', 'my first post', 'The fellow''s impious! What art thou sneezing about? Bone is rather dusty, sir. Take the hint, then; and when thou art dead, never bury thyself under living people''s noses. Sir?—oh! ah!—I guess so;—yes—dear! Look ye, carpenter, I dare say thou callest thyself a right good workmanlike workman, eh? Well, then, will it speak thoroughly well for thy work, if, when I come to mount this leg thou makest, I shall nevertheless feel another leg in the same identical place with it; that is, carpenter, my old lost leg; the flesh and blood', 'Pablo Moreira Mora', '2011-02-19 16:45:40', 3)[0m
+Redirected to http://localhost:3000/
+Completed in 261ms (DB: 2) | 302 Found [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:45:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.5ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:45:40', "perishable_token" = 'cCAl7S7CNJenQJx7O1uf', "last_request_at" = '2011-02-19 16:45:40' WHERE "id" = 1[0m
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:45:40') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.5ms)
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (9.4ms)
+Completed in 191ms (View: 178, DB: 3) | 200 OK [http://localhost/]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:50:06) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:50:06', "perishable_token" = 'iTNlbjzuECA7AuabF0n', "last_request_at" = '2011-02-19 16:50:06' WHERE "id" = 1[0m
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:50:06') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.6ms)
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (19.6ms)
+Completed in 177ms (View: 158, DB: 3) | 200 OK [http://localhost/posts/1]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2011-02-19 13:50:22) [POST]
+ Parameters: {"comment"=>{"comment"=>"good "}, "commit"=>"Post", "post_id"=>"1", "action"=>"create", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.6ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:50:22', "perishable_token" = 'FXEGX5YNGD6JobMbxzi', "last_request_at" = '2011-02-19 16:50:22' WHERE "id" = 1[0m
+ [4;35;1mComment Create (0.6ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "author", "updated_at", "post_id") VALUES('good ', '2011-02-19 16:50:22', 'Pablo Moreira Mora', '2011-02-19 16:50:22', 1)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/pablo/apps/blogajax/app/views/comments/_comment.html.erb:3)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/pablo/apps/blogajax/app/views/comments/_comment.html.erb:7)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/pablo/apps/blogajax/app/views/comments/_comment.html.erb:7)
+Rendered comments/_comment (2.2ms)
+Completed in 291ms (View: 26, DB: 2) | 200 OK [http://localhost/posts/1/comments]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:54:37) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (4.0ms)
+ [4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:54:38', "perishable_token" = 'ofw1UzibJbHWwAzUfHK', "last_request_at" = '2011-02-19 16:54:38' WHERE "id" = 1[0m
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:54:37') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.3ms)
+Rendered categories/_categories (4.0ms)
+Completed in 315ms (View: 289, DB: 3) | 200 OK [http://localhost/posts/1]
+ [4;36;1mCategory Load (1.1ms)[0m [0;1mSELECT * FROM "categories" [0m
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" WHERE ("categories"."id" = 1) [0m
+ [4;36;1mCategory Destroy (1.6ms)[0m [0;1mDELETE FROM "categories" WHERE "id" = 1[0m
+
+
+Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:55:20) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (3.5ms)
+ [4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (2.1ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:55:20', "perishable_token" = 'wJEN6Sxe80mMUuqtMnH', "last_request_at" = '2011-02-19 16:55:20' WHERE "id" = 1[0m
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:55:20') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.1ms)
+Rendered categories/_categories (4.9ms)
+Completed in 192ms (View: 165, DB: 5) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:55:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:55:54', "perishable_token" = 'ttYcRlhlONR94Kq5F9fw', "last_request_at" = '2011-02-19 16:55:54' WHERE "id" = 1[0m
+ [4;36;1mPost Load (5.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:55:54') ORDER BY created_at DESC[0m
+Rendered posts/_posts (8.2ms)
+Rendered categories/_categories (2.5ms)
+Completed in 163ms (View: 139, DB: 8) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:55:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mCategory Load (131.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.7ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;36;1mUser Update (0.5ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2011-02-19 16:55:58', "perishable_token" = 'Lclnuro9HYcOFsMEqYp', "last_request_at" = '2011-02-19 16:55:58' WHERE "id" = 1[0m
+ [4;35;1mPost Load (1.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:55:58') ORDER BY created_at DESC[0m
+Rendered posts/_posts (8.8ms)
+Rendered categories/_categories (2.7ms)
+Completed in 320ms (View: 168, DB: 135) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2011-02-19 13:56:00) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mCategory Load (0.8ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.4ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:56:00', "perishable_token" = 'pM05ku4wqlD8B9dP6Qr', "last_request_at" = '2011-02-19 16:56:00' WHERE "id" = 1[0m
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:56:00') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.6ms)
+Rendered categories/_categories (2.7ms)
+Completed in 165ms (View: 146, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2011-02-19 13:56:02) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mCategory Load (0.9ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+ [4;36;1mPost Load (1.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.4ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (3.6ms)
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '1') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2011-02-19 16:56:02', "perishable_token" = 'Oa69tKa07LFdDZiD9S4', "last_request_at" = '2011-02-19 16:56:02' WHERE "id" = 1[0m
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2011-02-12 16:56:02') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.9ms)
+Rendered categories/_categories (2.7ms)
+Completed in 190ms (View: 161, DB: 4) | 200 OK [http://localhost/posts/1]
diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml
deleted file mode 100644
index c1f155a..0000000
--- a/nbproject/private/private.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
- <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
-</project-private>
diff --git a/public/index.html b/public/index.html
deleted file mode 100644
index 0dd5189..0000000
--- a/public/index.html
+++ /dev/null
@@ -1,275 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>Ruby on Rails: Welcome aboard</title>
- <style type="text/css" media="screen">
- body {
- margin: 0;
- margin-bottom: 25px;
- padding: 0;
- background-color: #f0f0f0;
- font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
- font-size: 13px;
- color: #333;
- }
-
- h1 {
- font-size: 28px;
- color: #000;
- }
-
- a {color: #03c}
- a:hover {
- background-color: #03c;
- color: white;
- text-decoration: none;
- }
-
-
- #page {
- background-color: #f0f0f0;
- width: 750px;
- margin: 0;
- margin-left: auto;
- margin-right: auto;
- }
-
- #content {
- float: left;
- background-color: white;
- border: 3px solid #aaa;
- border-top: none;
- padding: 25px;
- width: 500px;
- }
-
- #sidebar {
- float: right;
- width: 175px;
- }
-
- #footer {
- clear: both;
- }
-
-
- #header, #about, #getting-started {
- padding-left: 75px;
- padding-right: 30px;
- }
-
-
- #header {
- background-image: url("images/rails.png");
- background-repeat: no-repeat;
- background-position: top left;
- height: 64px;
- }
- #header h1, #header h2 {margin: 0}
- #header h2 {
- color: #888;
- font-weight: normal;
- font-size: 16px;
- }
-
-
- #about h3 {
- margin: 0;
- margin-bottom: 10px;
- font-size: 14px;
- }
-
- #about-content {
- background-color: #ffd;
- border: 1px solid #fc0;
- margin-left: -11px;
- }
- #about-content table {
- margin-top: 10px;
- margin-bottom: 10px;
- font-size: 11px;
- border-collapse: collapse;
- }
- #about-content td {
- padding: 10px;
- padding-top: 3px;
- padding-bottom: 3px;
- }
- #about-content td.name {color: #555}
- #about-content td.value {color: #000}
-
- #about-content.failure {
- background-color: #fcc;
- border: 1px solid #f00;
- }
- #about-content.failure p {
- margin: 0;
- padding: 10px;
- }
-
-
- #getting-started {
- border-top: 1px solid #ccc;
- margin-top: 25px;
- padding-top: 15px;
- }
- #getting-started h1 {
- margin: 0;
- font-size: 20px;
- }
- #getting-started h2 {
- margin: 0;
- font-size: 14px;
- font-weight: normal;
- color: #333;
- margin-bottom: 25px;
- }
- #getting-started ol {
- margin-left: 0;
- padding-left: 0;
- }
- #getting-started li {
- font-size: 18px;
- color: #888;
- margin-bottom: 25px;
- }
- #getting-started li h2 {
- margin: 0;
- font-weight: normal;
- font-size: 18px;
- color: #333;
- }
- #getting-started li p {
- color: #555;
- font-size: 13px;
- }
-
-
- #search {
- margin: 0;
- padding-top: 10px;
- padding-bottom: 10px;
- font-size: 11px;
- }
- #search input {
- font-size: 11px;
- margin: 2px;
- }
- #search-text {width: 170px}
-
-
- #sidebar ul {
- margin-left: 0;
- padding-left: 0;
- }
- #sidebar ul h3 {
- margin-top: 25px;
- font-size: 16px;
- padding-bottom: 10px;
- border-bottom: 1px solid #ccc;
- }
- #sidebar li {
- list-style-type: none;
- }
- #sidebar ul.links li {
- margin-bottom: 5px;
- }
-
- </style>
- <script type="text/javascript" src="javascripts/prototype.js"></script>
- <script type="text/javascript" src="javascripts/effects.js"></script>
- <script type="text/javascript">
- function about() {
- if (Element.empty('about-content')) {
- new Ajax.Updater('about-content', 'rails/info/properties', {
- method: 'get',
- onFailure: function() {Element.classNames('about-content').add('failure')},
- onComplete: function() {new Effect.BlindDown('about-content', {duration: 0.25})}
- });
- } else {
- new Effect[Element.visible('about-content') ?
- 'BlindUp' : 'BlindDown']('about-content', {duration: 0.25});
- }
- }
-
- window.onload = function() {
- $('search-text').value = '';
- $('search').onsubmit = function() {
- $('search-text').value = 'site:rubyonrails.org ' + $F('search-text');
- }
- }
- </script>
- </head>
- <body>
- <div id="page">
- <div id="sidebar">
- <ul id="sidebar-items">
- <li>
- <form id="search" action="http://www.google.com/search" method="get">
- <input type="hidden" name="hl" value="en" />
- <input type="text" id="search-text" name="q" value="site:rubyonrails.org " />
- <input type="submit" value="Search" /> the Rails site
- </form>
- </li>
-
- <li>
- <h3>Join the community</h3>
- <ul class="links">
- <li><a href="http://www.rubyonrails.org/">Ruby on Rails</a></li>
- <li><a href="http://weblog.rubyonrails.org/">Official weblog</a></li>
- <li><a href="http://wiki.rubyonrails.org/">Wiki</a></li>
- </ul>
- </li>
-
- <li>
- <h3>Browse the documentation</h3>
- <ul class="links">
- <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
- <li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
- <li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
- <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
- </ul>
- </li>
- </ul>
- </div>
-
- <div id="content">
- <div id="header">
- <h1>Welcome aboard</h1>
- <h2>You’re riding Ruby on Rails!</h2>
- </div>
-
- <div id="about">
- <h3><a href="rails/info/properties" onclick="about(); return false">About your application’s environment</a></h3>
- <div id="about-content" style="display: none"></div>
- </div>
-
- <div id="getting-started">
- <h1>Getting started</h1>
- <h2>Here’s how to get rolling:</h2>
-
- <ol>
- <li>
- <h2>Use <tt>script/generate</tt> to create your models and controllers</h2>
- <p>To see all available options, run it without parameters.</p>
- </li>
-
- <li>
- <h2>Set up a default route and remove or rename this file</h2>
- <p>Routes are set up in config/routes.rb.</p>
- </li>
-
- <li>
- <h2>Create your database</h2>
- <p>Run <tt>rake db:migrate</tt> to create your database. If you're not using SQLite (the default), edit <tt>config/database.yml</tt> with your username and password.</p>
- </li>
- </ol>
- </div>
- </div>
-
- <div id="footer"> </div>
- </div>
- </body>
-</html>
\ No newline at end of file
diff --git a/public/stylesheets/default.css b/public/stylesheets/default.css
index ea7083c..a9358b0 100644
--- a/public/stylesheets/default.css
+++ b/public/stylesheets/default.css
@@ -1,222 +1,223 @@
*{margin:0;padding:0}
body{
background:#6C1400 url(/images/bgbody.gif) repeat-y center top;
font:normal 0.7em Tahoma,Verdana,sans-serif
}
div a{
color:#FFF;
cursor:pointer;
text-decoration:none
}
h1{
color:#444;
font:normal 2em sans-serif;
margin:18px 0 0 0
}
code{
background:url(/images/bgcode.gif);
border:1px solid #F0F0F0;
border-left:6px solid #D91623;
color:#555;display:block;
font:normal 1em "Lucida Sans Unicode",serif;
margin-bottom:12px;
padding:8px 10px;
white-space:pre
}
blockquote{
background:url(/images/quote.gif) no-repeat lavender;
border-top: darkgrey solid 1px;
color:#555;
display:block;
font:bold 1.2em "Trebuchet MS",serif;
margin:6px 0;
padding-left:28px
}
.main{
width:680px;
margin:0 auto
}
.main_left{
float:left;
padding-top:6px;
width:420px
}
.main_right{
border-top:6px solid #FFF;
float:right;
width:254px
}
.footer{clear:both}
.left{float:left}
.right{float:right}
.header,.link_projects,.lbl,.link_updates a{border-bottom:6px solid #FFF}
div.link_projects a:hover,div.link_updates a:hover, .content a:hover, div.footer div.left a:hover{
background:#D7162C;
color:#FFF
}
.header{
background:#D91623 url(/images/bgheader.gif) repeat-x;
height:180px;
}
.header h1{
margin:0;
padding:124px 0 0 24px;
font:normal 2.2em Verdana,sans-serif
}
.header #user{ padding-left: 25px; }
.link_menu{background:#CC2224 url(/images/grdnt_red.png) repeat-x}
.link_menu a{
border-bottom:1px solid #FFF;
display:block;
font:bold 0.9em Verdana,sans-serif;
height:18px;
padding:6px 0 0 10px;
text-decoration:none
}
.link_menu a:hover{background:#444}
.lbl{
background:#222 url(/images/bglbl.gif) repeat-x;
clear:both;
color:#FFF;
font:normal 2em "Lucida Sans Unicode",sans-serif;
height:50px;
line-height:50px;
overflow:hidden;
text-align:center
}
.link_projects a{
display:block;
height:100px;
text-align:center;
color:#FFF;
padding-top:24px;
width:124px;
font-size:0.9em;
font-family:sans-serif
}
.link_projects a span{font:normal 5em sans-serif}
a.g1{background:#888}
a.g2{
background:#666;
border-left:6px solid #FFF
}
.link_updates{background:#222 url(/images/grdnt_gray.gif) repeat-x}
.link_updates .lbl{
border-top:6px solid #FFF;
height:100px;
line-height:100px
}
.link_updates a{
clear:right;
display:block;
font:normal 1.2em "Trebuchet MS",sans-serif;
height:55px;
padding:10px 0;
text-align:center
}
.link_updates a span{
float:left;
font:normal 3em Verdana,sans-serif;
letter-spacing: -2px;margin-left:10px;
margin-top:3px
}
.content{
color:#444;
font-family:Verdana,sans-serif;
line-height:1.3em;
padding:0 10px 10px;
text-align: justify;
}
.content a{color:#FD1C24}
.content p{margin:4px 0 10px 0}
.content .descr{
color:#666;
margin-bottom:6px
}
.content li{
list-style:url(/images/li.gif);
margin-left:18px
}
.footer{color:#666;clear:both}
.footer .right a{
background:#2A2A2A;
color:#555;
padding:1px 3px
}
.footer .right a:hover{
background:#383838;
color:#999
}
.footer .left a{color:#777}
.footer .left{
border-top:1px solid #F0F0F0;
padding:9px 0 9px 9px;
width:407px
}
.footer .right{
margin-right:8px;
padding:9px 0;
text-align:right;
width:220px
}
.notice{
background:#383838;
color:#FFF;
font-family:Verdana,sans-serif;
font-size: 14px;
text-align: center;
+ height: 18px;
}
.text:focus{ background: antiquewhite; }
form .text { width: 200px;}
#login { background-color: #888;
padding-left: 5px;
}
#login form {
background-color: #888;
color: #fff;
}
#login a:hover { background:#383838; }
|
pablodv/blogajax
|
eccc093f95a2bf72ec8f1db6a9a46de0479130d5
|
Mejoras varias
|
diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erb
index e00c847..d17cb22 100644
--- a/app/views/categories/new.html.erb
+++ b/app/views/categories/new.html.erb
@@ -1,8 +1,9 @@
<h1>New Category</h1>
+<br/>
<% form_tag :action => 'create' do %>
<label for="category_name">Name</label>
- <%= text_field 'category', 'name' %>
+ <%= text_field 'category', 'name' %><br/>
<%= submit_tag "Create" %>
<% end %>
<br/>
<%= link_to 'Back', :action => 'index' %>
\ No newline at end of file
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index c398564..d095cb4 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index 674fabd..91e05b7 100644
--- a/log/development.log
+++ b/log/development.log
@@ -14141,512 +14141,633 @@ Completed in 101ms (View: 87, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:39:08) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (undefined method `each' for #<Post:0xb6f0c128>) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (45.2ms)
Rendered rescues/_request_and_response (1.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:45:46) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:45:46') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.7ms)
Completed in 93ms (View: 87, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:05) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (91.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:52) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:57) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (37.9ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:19) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (93.0ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:23) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.4ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:49) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:51) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (94.1ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:54) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.4ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:20) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (37.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:21) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (35.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:50:27) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:50:27') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.7ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.2ms)
Completed in 32ms (View: 26, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:32) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:32') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.7ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:55) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:55') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 29ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.6ms)
Completed in 31ms (View: 25, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:53:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:53:03') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.1ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.4ms)
Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:07) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (37.8ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:27) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (35.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:30) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (38.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:42) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (35.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:02') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.7ms)
Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:03') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (11.8ms)
Completed in 75ms (View: 69, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:06) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (undefined method `each' for #<Post:0xb6f2d3b4>) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (43.7ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:57:59) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (13.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:57:59') ORDER BY created_at DESC[0m
Rendered posts/_posts (61.1ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.2ms)
Completed in 85ms (View: 66, DB: 14) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:38) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:38') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.1ms)
Completed in 27ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:40) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:40') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.8ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 28ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:59:44) [GET]
Parameters: {"action"=>"show", "id"=>"6", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 6) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 6) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:44') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.1ms)
Completed in 35ms (View: 25, DB: 1) | 200 OK [http://localhost/posts/6]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:49) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:49') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:52) [GET]
Parameters: {"action"=>"index", "category_id"=>"10", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '10') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:52') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.0ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=10]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:54) [GET]
Parameters: {"action"=>"index", "category_id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '1') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:54') ORDER BY created_at DESC[0m
Rendered posts/_posts (4.0ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.5ms)
Completed in 28ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:56) [GET]
Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 26ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:30) [GET]
Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:30') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:32') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.6ms)
Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:14:58) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:14:58') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 27ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:22) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:22') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.7ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.1ms)
Completed in 101ms (View: 87, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:24) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:24') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.4ms)
[4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.0ms)
Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 17:27:26) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.9ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 32ms (View: 22, DB: 1) | 200 OK [http://localhost/login]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-15 17:27:35) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "login_count" = 20, "updated_at" = '2010-09-15 20:27:35', "perishable_token" = 'qqS49rycTUycYkgf2tWJ', "last_request_at" = '2010-09-15 20:27:35', "last_login_at" = '2010-09-15 18:53:07', "current_login_at" = '2010-09-15 20:27:35' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 244ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 20:27:35', "perishable_token" = 'F1lkrqflfbkOOpAstUGC', "last_request_at" = '2010-09-15 20:27:35' WHERE "id" = 2[0m
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:35') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.9ms)
Completed in 189ms (View: 182, DB: 3) | 200 OK [http://localhost/posts]
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:27:36) [GET]
ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:31:31) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:31:39) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:31:46) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:09) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:10) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:10) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:10) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:11) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:11) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:32:11) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:32:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 20:32:17', "perishable_token" = 'n0GA6mVdCIqe2McmmBRp', "last_request_at" = '2010-09-15 20:32:17' WHERE "id" = 2[0m
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:32:17') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (7.4ms)
+Completed in 219ms (View: 205, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:32:18) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.8ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 20:32:18', "perishable_token" = '5wuJKnbPCVBHq0yoSQMt', "last_request_at" = '2010-09-15 20:32:18' WHERE "id" = 2[0m
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:32:18') ORDER BY created_at DESC[0m
+Rendered posts/_posts (5.4ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.8ms)
+Completed in 135ms (View: 126, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing CategoriesController#new (for 127.0.0.1 at 2010-09-15 17:32:20) [GET]
+ Parameters: {"action"=>"new", "controller"=>"categories"}
+ [4;36;1mUser Load (2.7ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 20:32:21', "perishable_token" = 'oRU8HFM1gce9TmdeO16w', "last_request_at" = '2010-09-15 20:32:21' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering categories/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:32:21') ORDER BY created_at DESC[0m
+Rendered posts/_posts (58.4ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (2.9ms)
+Completed in 178ms (View: 73, DB: 4) | 200 OK [http://localhost/categories/new]
|
pablodv/blogajax
|
5bbe22fa5d4161e70ce841f3c19be78544b48aeb
|
Mejoras varias
|
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 75067e0..7774195 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,99 +1,99 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
<title>Ruby on Rails 2010</title>
</head>
<body>
<div class="main">
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
<div id="user">
<% if current_user %>
<%= 'Welcome ' + current_user.full_name %> <br/>
<%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
<% end %>
<%# form_tag '', :method => 'GET', :class => 'locale' do %>
<%#= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
:onchange => 'this.form.submit()' %>
<%#= submit_tag 'submit' %>
<%#= javascript_tag "$$('.locale input').each(Element.hide)" %>
<%# end %>
</div>
</div>
<div class="link_menu">
<%= link_to 'Home', :controller => 'posts', :action => 'index' %>
<%= link_to 'Login', login_path %>
<%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
- <%= link_to 'Add Category', :controller => 'cotegories', :action => 'new' %>
+ <%= link_to 'Add Category', :controller => 'categories', :action => 'new' %>
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
<div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
<a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
</div>
<div class="link_updates">
<div class="lbl">recent posts </div>
<%= render :partial => 'posts/posts' %>
<div class="lbl">categories </div>
<%= render :partial => 'categories/categories' %>
<%#*<a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>%>
<%#*<a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>%>
<%#*<a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>%>
<%#*<a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>%>
<%#*<a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>%>
<%#*<a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>%>
<%#*<a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>%>
<%#*<a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>%>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
<div class="left">© <a href="index.html">Website</a> 2009.</div>
<div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 5c8e2f6..c398564 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index e9adfba..674fabd 100644
--- a/log/development.log
+++ b/log/development.log
@@ -14076,512 +14076,577 @@ Rendering posts/index
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (45.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:37:35) [GET]
Parameters: {"action"=>"index", "category_id"=>"9", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '9') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (42.2ms)
Rendered rescues/_request_and_response (19.5ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:37:38) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (undefined method `each' for #<Post:0xb6f2ba50>) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (44.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:39:04) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:39:04') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.6ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.3ms)
Completed in 101ms (View: 87, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:39:08) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (undefined method `each' for #<Post:0xb6f0c128>) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (45.2ms)
Rendered rescues/_request_and_response (1.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:45:46) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:45:46') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.7ms)
Completed in 93ms (View: 87, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:05) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (91.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:52) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:57) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (37.9ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:19) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (93.0ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:23) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.4ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:49) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:51) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (94.1ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:54) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (36.4ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:20) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (37.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:21) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:30:in `show'
Rendered rescues/_trace (35.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:50:27) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:50:27') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.7ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.2ms)
Completed in 32ms (View: 26, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:32) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:32') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.7ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:55) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:55') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 29ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.6ms)
Completed in 31ms (View: 25, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:53:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:53:03') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.1ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.4ms)
Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:07) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (37.8ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:27) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (35.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:30) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (38.7ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:42) [GET]
Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
app/controllers/posts_controller.rb:35:in `show'
Rendered rescues/_trace (35.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (not_found)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:02') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.7ms)
Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:03') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (11.8ms)
Completed in 75ms (View: 69, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:06) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
Rendering template within layouts/application
Rendering posts/index
ActionView::TemplateError (undefined method `each' for #<Post:0xb6f2d3b4>) on line #1 of app/views/posts/index.html.erb:
1: <% @posts.each do |p| %>
2: <h1><%= link_to p.title, p %></h1>
3: <div class="descr"><%= p.author %></div>
4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
app/views/posts/index.html.erb:1
Rendered rescues/_trace (43.7ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:57:59) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (13.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:57:59') ORDER BY created_at DESC[0m
Rendered posts/_posts (61.1ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (6.2ms)
Completed in 85ms (View: 66, DB: 14) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:38) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:38') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.1ms)
Completed in 27ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:40) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:40') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.8ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 28ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:59:44) [GET]
Parameters: {"action"=>"show", "id"=>"6", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 6) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 6) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:44') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.0ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.1ms)
Completed in 35ms (View: 25, DB: 1) | 200 OK [http://localhost/posts/6]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:49) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:49') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.3ms)
Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:52) [GET]
Parameters: {"action"=>"index", "category_id"=>"10", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '10') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:52') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.0ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=10]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:54) [GET]
Parameters: {"action"=>"index", "category_id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '1') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:54') ORDER BY created_at DESC[0m
Rendered posts/_posts (4.0ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.5ms)
Completed in 28ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:56) [GET]
Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:56') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 26ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:30) [GET]
Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:30') ORDER BY created_at DESC[0m
Rendered posts/_posts (3.4ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:32') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.5ms)
[4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.6ms)
Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:14:58) [GET]
Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:14:58') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.6ms)
[4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
Rendered categories/_categories (5.2ms)
Completed in 27ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:22) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:22') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.1ms)
+Completed in 101ms (View: 87, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:24) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:24') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.4ms)
+ [4;35;1mCategory Load (0.3ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.0ms)
+Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 17:27:26) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:26') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.9ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.3ms)
+Completed in 32ms (View: 22, DB: 1) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-15 17:27:35) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "login_count" = 20, "updated_at" = '2010-09-15 20:27:35', "perishable_token" = 'qqS49rycTUycYkgf2tWJ', "last_request_at" = '2010-09-15 20:27:35', "last_login_at" = '2010-09-15 18:53:07', "current_login_at" = '2010-09-15 20:27:35' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 244ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:27:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 20:27:35', "perishable_token" = 'F1lkrqflfbkOOpAstUGC', "last_request_at" = '2010-09-15 20:27:35' WHERE "id" = 2[0m
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:27:35') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.0ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.9ms)
+Completed in 189ms (View: 182, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 17:27:36) [GET]
+
+ActionController::RoutingError (No route matches "/cotegories/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
|
pablodv/blogajax
|
493bbb5b9c1dd7844974e541f14d950e41c1aaaa
|
Mejoras varias
|
diff --git a/config/routes.rb b/config/routes.rb
index 04ee4a3..c5bb269 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,58 +1,59 @@
ActionController::Routing::Routes.draw do |map|
map.resources :posts, :has_many => :comments
map.resources :comments
map.resources :password_resets
-
+ map.resources :categories
+
map.resource :user_session
map.resource :account, :controller => "users"
map.login '/login', :controller => "user_sessions", :action => "new"
map.logout '/logout', :controller => "user_sessions", :action => "destroy"
map.signup 'signup', :controller => "users", :action => "new"
map.root :controller => "user_sessions", :action => "new"
map.register '/register/:activation_code', :controller => 'activations', :action => 'new'
map.activate '/activate/:id', :controller => 'activations', :action => 'create'
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# map.resources :products
# Sample resource route with options:
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
# Sample resource route with more complex sub-resources
# map.resources :products do |products|
# products.resources :comments
# products.resources :sales, :collection => { :recent => :get }
# end
# Sample resource route within a namespace:
# map.namespace :admin do |admin|
# # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
# admin.resources :products
# end
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing or commenting them out if you're using named routes and resources.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
|
pablodv/blogajax
|
dec27f2e41a15ec1079fc031756f6101fdd77cdc
|
Mejoras varias
|
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
new file mode 100644
index 0000000..ce501da
--- /dev/null
+++ b/app/controllers/categories_controller.rb
@@ -0,0 +1,19 @@
+class CategoriesController < ApplicationController
+
+ before_filter :require_user, :only => [:new, :create]
+
+ def categories
+ @categories = nil
+ end
+
+ def new
+ @category = Category.new()
+ end
+
+ def create
+ @category = Category.new(params[:name])
+ if @category.save
+ posts_path
+ end
+ end
+end
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index 522b20d..f0784df 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -1,37 +1,42 @@
class PostsController < ApplicationController
before_filter :require_user, :only => [:new, :create]
- def index
- @posts = Post.find(:all, :order => 'title')
+ def index
+ if params[:category_id]
+ @posts = Post.find_all_by_category_id params[:category_id]
+ else
+ @posts = Post.find(:all, :order => 'title')
+ end
end
def new
@post = Post.new
end
def create
@post = Post.new( :title => params[:post][:title],
:body => params[:post][:body],
- :author => current_user.full_name
+ :author => current_user.full_name,
+ :category_id => params[:post][:category_id]
)
if @post.save
flash[:notice] = 'Post was successfully created.'
redirect_to :action => 'index'
else
render :action => 'new'
end
end
def show
@post = Post.find(params[:id])
@comments = @post.comments.collect
end
def posts
@posts2 = nil
end
-
+
end
diff --git a/app/helpers/categories_helper.rb b/app/helpers/categories_helper.rb
new file mode 100644
index 0000000..e06f315
--- /dev/null
+++ b/app/helpers/categories_helper.rb
@@ -0,0 +1,2 @@
+module CategoriesHelper
+end
diff --git a/app/models/category.rb b/app/models/category.rb
new file mode 100644
index 0000000..910a009
--- /dev/null
+++ b/app/models/category.rb
@@ -0,0 +1,2 @@
+class Category < ActiveRecord::Base
+end
diff --git a/app/models/post.rb b/app/models/post.rb
index 6bc07ca..542c622 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -1,7 +1,7 @@
class Post < ActiveRecord::Base
has_many :comments
- validates_presence_of :title, :body
+ validates_presence_of :title, :body, :category_id
named_scope :recent, :conditions => ["created_at > ?", 2.day.ago], :order => 'created_at DESC'
end
diff --git a/app/views/categories/_categories.html.erb b/app/views/categories/_categories.html.erb
new file mode 100644
index 0000000..b6f26f4
--- /dev/null
+++ b/app/views/categories/_categories.html.erb
@@ -0,0 +1,6 @@
+<% unless @categories%>
+ <% @categories = Category.find(:all, :order => 'name ASC') %>
+ <% @categories.each do |c| %>
+ <%= link_to c.name, :controller => 'posts', :category_id => c.id %>
+ <% end %>
+<% end %>
diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erb
new file mode 100644
index 0000000..e00c847
--- /dev/null
+++ b/app/views/categories/new.html.erb
@@ -0,0 +1,8 @@
+<h1>New Category</h1>
+<% form_tag :action => 'create' do %>
+ <label for="category_name">Name</label>
+ <%= text_field 'category', 'name' %>
+ <%= submit_tag "Create" %>
+<% end %>
+<br/>
+<%= link_to 'Back', :action => 'index' %>
\ No newline at end of file
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index a617964..75067e0 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,96 +1,99 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
<title>Ruby on Rails 2010</title>
</head>
<body>
<div class="main">
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
<div id="user">
<% if current_user %>
<%= 'Welcome ' + current_user.full_name %> <br/>
<%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
<% end %>
<%# form_tag '', :method => 'GET', :class => 'locale' do %>
<%#= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
:onchange => 'this.form.submit()' %>
<%#= submit_tag 'submit' %>
<%#= javascript_tag "$$('.locale input').each(Element.hide)" %>
<%# end %>
</div>
</div>
<div class="link_menu">
<%= link_to 'Home', :controller => 'posts', :action => 'index' %>
<%= link_to 'Login', login_path %>
<%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
+ <%= link_to 'Add Category', :controller => 'cotegories', :action => 'new' %>
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
<div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
<a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
</div>
<div class="link_updates">
<div class="lbl">recent posts </div>
<%= render :partial => 'posts/posts' %>
+ <div class="lbl">categories </div>
+ <%= render :partial => 'categories/categories' %>
<%#*<a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>%>
<%#*<a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>%>
<%#*<a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>%>
<%#*<a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>%>
<%#*<a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>%>
<%#*<a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>%>
<%#*<a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>%>
<%#*<a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>%>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
<div class="left">© <a href="index.html">Website</a> 2009.</div>
<div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
diff --git a/app/views/posts/_form.html.erb b/app/views/posts/_form.html.erb
index 27246e9..83e9b9a 100644
--- a/app/views/posts/_form.html.erb
+++ b/app/views/posts/_form.html.erb
@@ -1,10 +1,14 @@
<%= error_messages_for 'post' %>
<p><label for="post_title">Title</label><br/>
<%= text_field 'post', 'title' %></p>
<p><label for="post_body">Body</label><br/>
<%= text_area 'post', 'body' %></p>
+<p><label for="post_category">Category</label><br/>
+<%= select 'post', 'category_id', Category.find(:all, :order => 'name ASC').collect {|c| [c.name, c.id]}, {:include_blank => 'Select a category'}%></p>
+
+<p>
<%#*<p><label for="post_author">Author</label><br/>%>
<%#= text_field 'post', 'author' %></p>
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index d57b2f1..5c8e2f6 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/db/migrate/20100902183958_create_users.rb b/db/migrate/20100902183958_create_users.rb
index 8e5d064..613af5d 100644
--- a/db/migrate/20100902183958_create_users.rb
+++ b/db/migrate/20100902183958_create_users.rb
@@ -1,29 +1,29 @@
class CreateUsers < ActiveRecord::Migration
def self.up
- create_table :users do |t|
-
- t.string :full_name
- t.string :login, :null => false
- t.string :email, :null => false
- t.string :crypted_password, :null => false
- t.string :password_salt, :null => false
- t.string :persistence_token, :null => false
- t.string :single_access_token, :null => false
- t.string :perishable_token, :null => false
- t.integer :login_count, :null => false, :default => 0
- t.integer :failed_login_count, :null => false, :default => 0
- t.datetime :last_request_at
- t.datetime :current_login_at
- t.datetime :last_login_at
- t.string :current_login_ip
- t.string :last_login_ip
-
- t.timestamps
- end
+# create_table :users do |t|
+#
+# t.string :full_name
+# t.string :login, :null => false
+# t.string :email, :null => false
+# t.string :crypted_password, :null => false
+# t.string :password_salt, :null => false
+# t.string :persistence_token, :null => false
+# t.string :single_access_token, :null => false
+# t.string :perishable_token, :null => false
+# t.integer :login_count, :null => false, :default => 0
+# t.integer :failed_login_count, :null => false, :default => 0
+# t.datetime :last_request_at
+# t.datetime :current_login_at
+# t.datetime :last_login_at
+# t.string :current_login_ip
+# t.string :last_login_ip
+#
+# t.timestamps
+ #end
end
def self.down
drop_table :users
end
end
diff --git a/db/migrate/20100914191104_acitve_by_users.rb b/db/migrate/20100914191104_acitve_by_users.rb
index 61bd111..1350f51 100644
--- a/db/migrate/20100914191104_acitve_by_users.rb
+++ b/db/migrate/20100914191104_acitve_by_users.rb
@@ -1,9 +1,9 @@
class AcitveByUsers < ActiveRecord::Migration
def self.up
- add_column :users, :active, :boolean, :default => false
+ #add_column :users, :active, :boolean, :default => false
end
def self.down
remove_column :users, :active
end
end
diff --git a/db/migrate/20100915183945_create_categories.rb b/db/migrate/20100915183945_create_categories.rb
new file mode 100644
index 0000000..7aac11a
--- /dev/null
+++ b/db/migrate/20100915183945_create_categories.rb
@@ -0,0 +1,13 @@
+class CreateCategories < ActiveRecord::Migration
+ def self.up
+ create_table :categories do |t|
+ t.string :name
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :categories
+ end
+end
diff --git a/db/migrate/20100915184510_category_by_posts.rb b/db/migrate/20100915184510_category_by_posts.rb
new file mode 100644
index 0000000..a6aa438
--- /dev/null
+++ b/db/migrate/20100915184510_category_by_posts.rb
@@ -0,0 +1,9 @@
+class CategoryByPosts < ActiveRecord::Migration
+ def self.up
+ add_column :posts, :category_id, :integer
+ end
+
+ def self.down
+ remove_column :posts, :category_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index c1239c0..230ec5f 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1,65 +1,72 @@
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20100914143933) do
+ActiveRecord::Schema.define(:version => 20100915184510) do
+
+ create_table "categories", :force => true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
create_table "comments", :force => true do |t|
t.integer "post_id"
t.date "created_at"
t.text "comment"
t.datetime "updated_at"
t.string "author"
end
create_table "notifiers", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "posts", :force => true do |t|
t.string "title"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.string "author"
+ t.integer "category_id"
end
create_table "user_sessions", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "users", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
t.string "full_name"
t.string "login"
t.string "email"
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token"
t.string "single_access_token"
t.string "perishable_token"
t.integer "login_count", :default => 0
t.integer "failed_login_count", :default => 0
t.datetime "last_request_at"
t.datetime "current_login_at"
t.datetime "last_login_at"
t.string "current_login_ip"
t.string "last_login_ip"
t.boolean "active", :default => false
t.string "password"
end
add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
end
diff --git a/log/development.log b/log/development.log
index b26bbca..e9adfba 100644
--- a/log/development.log
+++ b/log/development.log
@@ -11830,512 +11830,2758 @@ Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:03:03) [GET]
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:03:08) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:03:08') [0m
Rendered posts/_posts (1.7ms)
Completed in 26ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:05:30) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.7ms)
Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:06:35') [0m
Rendered posts/_posts (2.3ms)
Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:59) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.8ms)
Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:16) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:18) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.9ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 70ms (View: 65, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:39) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:32') [0m
Rendered posts/_posts (2.7ms)
Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
Rendered posts/_posts (1.7ms)
Completed in 26ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
Rendered posts/_posts (1.8ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:35) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:35') [0m
Rendered posts/_posts (1.9ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:40') [0m
Rendered posts/_posts (1.6ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:41) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:41') [0m
Rendered posts/_posts (1.6ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:57) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:57') [0m
Rendered posts/_posts (2.3ms)
Completed in 78ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:58) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:58') [0m
Rendered posts/_posts (1.6ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:59) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:59') [0m
Rendered posts/_posts (1.6ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:09:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:09:02') [0m
Rendered posts/_posts (1.7ms)
Completed in 73ms (View: 68, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:38') [0m
Rendered posts/_posts (2.3ms)
Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:40) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:40') [0m
Rendered posts/_posts (1.9ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:42) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:42') [0m
Rendered posts/_posts (53.0ms)
Completed in 74ms (View: 66, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:44) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:44') [0m
Rendered posts/_posts (2.0ms)
Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:12:55) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:12:55') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.1ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:26) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:42) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:42') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:44) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:44') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.9ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:46) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:46') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.7ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:15:21) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:21') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.4ms)
Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-15 12:15:38) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 12:15:38) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:38') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.1ms)
Completed in 26ms (View: 15, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UsersController#new (for 127.0.0.1 at 2010-09-15 12:15:41) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
Rendering template within layouts/application
Rendering users/new
Rendered users/_form (6.4ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:41') ORDER BY created_at DESC[0m
Rendered posts/_posts (7.4ms)
Completed in 101ms (View: 41, DB: 0) | 200 OK [http://localhost/signup]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 12:15:42) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:42') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.0ms)
Completed in 22ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:15:43) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:43') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:40:26) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.8ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.5ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:40:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.2ms)
Completed in 87ms (View: 78, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:40:35) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:40:35') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 35ms (View: 24, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:28:47) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:28:47') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.9ms)
Completed in 27ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:28:49) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (2.0ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:28:49') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 30ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:09) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:09') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 28ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 14:31:15) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:15') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:19) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:19') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.4ms)
Completed in 26ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 14:31:21) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:21') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:22) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:22') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.9ms)
Completed in 27ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 14:31:24) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:24') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.2ms)
Completed in 23ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:26) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.5ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.9ms)
Completed in 32ms (View: 23, DB: 1) | 200 OK [http://localhost/posts/2]
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.0ms)[0m [0mSQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "full_name" varchar(255), "login" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "password_salt" varchar(255) NOT NULL, "persistence_token" varchar(255) NOT NULL, "single_access_token" varchar(255) NOT NULL, "perishable_token" varchar(255) NOT NULL, "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100902183958')[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+ [4;36;1mSQL (0.0ms)[0m [0;1mSQLite3::SQLException: duplicate column name: active: ALTER TABLE "users" ADD "active" boolean DEFAULT 'f'[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.3ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100914191104')[0m
+Migrating to CreateCategories (20100915183945)
+ [4;36;1mSQL (0.5ms)[0m [0;1mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [4;35;1mSQL (0.2ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('20100915183945')[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.4ms)[0m [0mSELECT version FROM schema_migrations[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("categories")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;36;1mCategory Create (0.6ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:34', '2010-09-15 18:43:34')[0m
+ [4;35;1mCategory Create (0.3ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:36', '2010-09-15 18:43:36')[0m
+ [4;36;1mCategory Create (0.3ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:37', '2010-09-15 18:43:37')[0m
+ [4;35;1mCategory Create (0.3ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:37', '2010-09-15 18:43:37')[0m
+ [4;36;1mCategory Create (0.3ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:38', '2010-09-15 18:43:38')[0m
+ [4;35;1mCategory Create (0.3ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:39', '2010-09-15 18:43:39')[0m
+ [4;36;1mCategory Create (0.6ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:39', '2010-09-15 18:43:39')[0m
+ [4;35;1mCategory Create (0.5ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:40', '2010-09-15 18:43:40')[0m
+ [4;36;1mCategory Create (0.3ms)[0m [0;1mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:41', '2010-09-15 18:43:41')[0m
+ [4;35;1mCategory Create (0.3ms)[0m [0mINSERT INTO "categories" ("name", "created_at", "updated_at") VALUES('Lorem Ipsum', '2010-09-15 18:43:42', '2010-09-15 18:43:42')[0m
+ [4;36;1mSQL (0.6ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+Migrating to AcitveByUsers (20100914191104)
+Migrating to CreateCategories (20100915183945)
+Migrating to CategoryByPosts (20100915184510)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "posts" ADD "category_id" integer[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100915184510')[0m
+ [4;35;1mSQL (0.4ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("categories")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("comments")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("notifiers")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("posts")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("user_sessions")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_info('index_users_on_email')[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 15:53:00) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:53:00') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.8ms)
+Completed in 23ms (View: 12, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-15 15:53:07) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "login_count" = 19, "updated_at" = '2010-09-15 18:53:07', "perishable_token" = '5lzKG8Ouyz1PT1EjvsZm', "last_request_at" = '2010-09-15 18:53:07', "last_login_at" = '2010-09-15 14:32:36', "current_login_at" = '2010-09-15 18:53:07' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts/new
+Completed in 241ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 15:53:07) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:53:07', "perishable_token" = 'skVc1qIbES1HF15G7zg', "last_request_at" = '2010-09-15 18:53:07' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (61.9ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:53:08') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.3ms)
+Completed in 188ms (View: 77, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-15 15:53:45) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"prueba de category", "title"=>"category", "category_id"=>"1"}, "action"=>"create", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:53:45', "perishable_token" = 'KaSvWWJpvp0UgTRrbl', "last_request_at" = '2010-09-15 18:53:45' WHERE "id" = 2[0m
+ [4;36;1mPost Create (0.4ms)[0m [0;1mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at", "category_id") VALUES('2010-09-15 18:53:46', 'category', 'prueba de category', 'Pablo Moreira Mora', '2010-09-15 18:53:46', NULL)[0m
+Redirected to http://localhost:3000/posts
+Completed in 222ms (DB: 1) | 302 Found [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 15:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:53:46', "perishable_token" = 'FfAszbFq67ifnIW4XH5', "last_request_at" = '2010-09-15 18:53:46' WHERE "id" = 2[0m
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:53:46') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.1ms)
+Completed in 108ms (View: 102, DB: 1) | 200 OK [http://localhost/posts]
+ [4;36;1mPost Load (1.2ms)[0m [0;1mSELECT * FROM "posts" [0m
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 15:55:24) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 18:55:24', "perishable_token" = 'c3j5X4UqYrSsTBx0J1B', "last_request_at" = '2010-09-15 18:55:24' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (6.7ms)
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:55:25') ORDER BY created_at DESC[0m
+Rendered posts/_posts (4.9ms)
+Completed in 190ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-15 15:55:41) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"preuba de category", "title"=>"category", "category_id"=>"8"}, "action"=>"create", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 18:55:41', "perishable_token" = 'Ju0O4vQen5hLUnu4yU9', "last_request_at" = '2010-09-15 18:55:41' WHERE "id" = 2[0m
+ [4;35;1mPost Create (0.2ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at", "category_id") VALUES('2010-09-15 18:55:41', 'category', 'preuba de category', 'Pablo Moreira Mora', '2010-09-15 18:55:41', 8)[0m
+Redirected to http://localhost:3000/posts
+Completed in 220ms (DB: 1) | 302 Found [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 15:55:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.9ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 18:55:41', "perishable_token" = 'zvbFPMQGZYzj2eKVn2r', "last_request_at" = '2010-09-15 18:55:41' WHERE "id" = 2[0m
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:55:41') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.7ms)
+Completed in 122ms (View: 116, DB: 2) | 200 OK [http://localhost/posts]
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" [0m
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 15:56:13) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.4ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:56:13', "perishable_token" = 'HuWDgSUD0ke7uxhYKcl1', "last_request_at" = '2010-09-15 18:56:13' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;36;1mCategory Load (3.0ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (9.9ms)
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:56:13') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.3ms)
+Completed in 194ms (View: 16, DB: 4) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-15 15:56:15) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"", "title"=>"", "category_id"=>""}, "action"=>"create", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:56:15', "perishable_token" = '8wDWZ9iphaCGhVSCS9Rk', "last_request_at" = '2010-09-15 18:56:15' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (13.0ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:56:15') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+Completed in 145ms (View: 21, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-15 15:56:22) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"", "title"=>"", "category_id"=>"8"}, "action"=>"create", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:56:22', "perishable_token" = 'ramGVA9hCNCyS2KrN0K', "last_request_at" = '2010-09-15 18:56:22' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered posts/_form (9.7ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:56:22') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+Completed in 118ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 15:56:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 18:56:28', "perishable_token" = 'V2IhTtctxIREQOPVBaSc', "last_request_at" = '2010-09-15 18:56:28' WHERE "id" = 2[0m
+ [4;35;1mPost Load (1.6ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:56:28') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.8ms)
+Completed in 197ms (View: 190, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-15 15:56:32) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-15 18:56:32', "perishable_token" = 'qgvETk4TYswD7MlEHzvK', "last_request_at" = '2010-09-15 18:56:32' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 100ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 15:56:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:56:32') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.4ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 15:57:29) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 18:57:29') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.9ms)
+Completed in 92ms (View: 86, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:01:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:01:41') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.9ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @cagories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (146.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:05) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:05') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (52.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:06') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (50.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:06') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.4ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (54.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:06') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.0ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (142.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:07') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (122.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:07') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (117.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:02:24) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:02:24') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/categories/_categories.html.erb:
+1: <% @categories.each do |c| %>
+2: <%= link_to c.name, :controller => 'categories', :actions => 'list', :id => c.id %>
+3: <% end %>
+
+ app/views/categories/_categories.html.erb:1
+ app/views/layouts/application.html.erb:67
+
+Rendered rescues/_trace (50.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:04:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:04:06') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.8ms)
+ [4;36;1mCategory Load (0.3ms)[0m [0;1mSELECT * FROM "categories" [0m
+Rendered categories/_categories (6.4ms)
+Completed in 37ms (View: 29, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:07:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:07:04') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.2ms)
+Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 16:07:11) [GET]
+ Parameters: {"actions"=>"list"}
+
+ActionController::RoutingError (No route matches "/categories/index/8" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:12:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.9ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:12:55') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.9ms)
+Completed in 34ms (View: 27, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:12:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:12:56') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.0ms)
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.6ms)
+Completed in 90ms (View: 84, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:12:59) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:13:35) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:13:39) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:07) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:07) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:07) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:07) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:08) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:08) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CategoriesController#index (for 127.0.0.1 at 2010-09-15 16:14:08) [GET]
+ Parameters: {"actions"=>"listing", "action"=>"index", "id"=>"8", "controller"=>"categories"}
+
+ActionController::UnknownAction (No action responded to index. Actions: categories):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:10') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.5ms)
+ [4;36;1mCategory Load (0.5ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (7.2ms)
+Completed in 97ms (View: 90, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:11') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.6ms)
+Completed in 29ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:11') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.5ms)
+Completed in 31ms (View: 24, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:17) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:17') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.5ms)
+Completed in 32ms (View: 25, DB: 1) | 200 OK [http://localhost/posts?actions=list&id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:44) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:44') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.5ms)
+Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts?actions=list&id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:45) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:45') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.4ms)
+Completed in 91ms (View: 85, DB: 1) | 200 OK [http://localhost/posts?actions=list&id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:14:48) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:14:48') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.2ms)
+Completed in 29ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?actions=list&id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:17) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (110.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:33) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (41.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:58) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (116.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:59) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (43.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:59) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (43.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:59) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (114.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:16:59) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:00) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (115.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:00) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (41.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:01) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (43.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:01) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (120.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:02) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.6ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:02) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (115.7ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:27) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:28) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (44.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:33) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (112.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:17:39) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.6ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (107.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (43.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (46.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (115.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (41.9ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '--- :id
+') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (119.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:18:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:18:46') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.4ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (7.3ms)
+Completed in 44ms (View: 36, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:19:24) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:19:24') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.7ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (7.2ms)
+Completed in 102ms (View: 96, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:19:29) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:19:29') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.7ms)
+Completed in 28ms (View: 22, DB: 2) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:20:17) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:20:17') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.4ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.0ms)
+Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:20:18) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:20:18') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.9ms)
+Completed in 33ms (View: 26, DB: 2) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:20:19) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:20:19') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.8ms)
+Completed in 28ms (View: 23, DB: 1) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:20:25) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:20:25') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.8ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.1ms)
+Completed in 90ms (View: 26, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:20:29) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.9ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:20:29') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.8ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.5ms)
+Completed in 29ms (View: 22, DB: 2) | 200 OK [http://localhost/posts?actions=list&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:21:33) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:21:33') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.8ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?actions=list&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:21:36) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:21:36') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.9ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.7ms)
+Completed in 33ms (View: 26, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:21:40) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:21:40') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.4ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?actions=list&category_id=8]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:22:07) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:22:07') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.8ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.8ms)
+Completed in 30ms (View: 22, DB: 1) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:22:09) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:22:09') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.8ms)
+Completed in 32ms (View: 26, DB: 1) | 200 OK [http://localhost/posts?actions=list&category_id=1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:23:11) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:23:11') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.6ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?actions=list&category_id=1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:23:14) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:23:14') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.4ms)
+ [4;35;1mCategory Load (0.6ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.9ms)
+Completed in 28ms (View: 22, DB: 2) | 200 OK [http://localhost/posts?actions=list&category_id=2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:23:52) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"2", "controller"=>"posts"}
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (43.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:23:57) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"2", "controller"=>"posts"}
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (114.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:31:53) [GET]
+ Parameters: {"actions"=>"list", "action"=>"index", "category_id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '1') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:32:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:32:04') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (70.1ms)
+Completed in 95ms (View: 89, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:32:10) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `each' for #<Post:0xb6e6c7e0>) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:34:16) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:34:16') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;35;1mCategory Load (0.5ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.2ms)
+Completed in 29ms (View: 23, DB: 2) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:34:50) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:34:50') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.9ms)
+Completed in 35ms (View: 28, DB: 1) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:34:51) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:34:51') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.1ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.1ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?actions=index&category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:00) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" IS NULL) LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `each' for #<Post:0xb6f30ac8>) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.9ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:25) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (33.9ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:26) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (36.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (33.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (102.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (33.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (103.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (34.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (33.8ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:29) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.[]):
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (35.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:35:50') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.0ms)
+Completed in 28ms (View: 22, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:35:58) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"9", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '9') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (44.6ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:37:34) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"9", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '9') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (45.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:37:35) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"9", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '9') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (42.2ms)
+Rendered rescues/_request_and_response (19.5ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:37:38) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `each' for #<Post:0xb6f2ba50>) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (44.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:39:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:39:04') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.6ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.3ms)
+Completed in 101ms (View: 87, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:39:08) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `each' for #<Post:0xb6f0c128>) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (45.2ms)
+Rendered rescues/_request_and_response (1.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:45:46) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:45:46') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.4ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.7ms)
+Completed in 93ms (View: 87, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:05) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (91.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:52) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (36.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:47:57) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (37.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:19) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (93.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:23) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (36.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:48:49) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (36.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:51) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (94.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:49:54) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (36.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:20) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (37.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:50:21) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:30:in `show'
+
+Rendered rescues/_trace (35.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:50:27) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:50:27') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.2ms)
+Completed in 32ms (View: 26, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:32) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:32') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.7ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.3ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:55') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.3ms)
+Completed in 29ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.0ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.6ms)
+Completed in 31ms (View: 25, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:51:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:51:56') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.3ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:53:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:53:03') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.1ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.4ms)
+Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:07) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:35:in `show'
+
+Rendered rescues/_trace (37.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:27) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:35:in `show'
+
+Rendered rescues/_trace (35.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:30) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:35:in `show'
+
+Rendered rescues/_trace (38.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:53:42) [GET]
+ Parameters: {"action"=>"show", "id"=>"list", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=list):
+ app/controllers/posts_controller.rb:35:in `show'
+
+Rendered rescues/_trace (35.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:02) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:02') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.7ms)
+Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:54:03') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (11.8ms)
+Completed in 75ms (View: 69, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:54:06) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `each' for #<Post:0xb6f2d3b4>) on line #1 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <h1><%= link_to p.title, p %></h1>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (43.7ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:57:59) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (13.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:57:59') ORDER BY created_at DESC[0m
+Rendered posts/_posts (61.1ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (6.2ms)
+Completed in 85ms (View: 66, DB: 14) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:38) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:38') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.1ms)
+Completed in 27ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:40) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:40') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.8ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.2ms)
+Completed in 28ms (View: 20, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 16:59:44) [GET]
+ Parameters: {"action"=>"show", "id"=>"6", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 6) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 6) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:44') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.0ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.1ms)
+Completed in 35ms (View: 25, DB: 1) | 200 OK [http://localhost/posts/6]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:49') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.3ms)
+Completed in 28ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:52) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"10", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '10') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:52') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.0ms)
+Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=10]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:54) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '1') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:54') ORDER BY created_at DESC[0m
+Rendered posts/_posts (4.0ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.5ms)
+Completed in 28ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 16:59:56) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 19:59:56') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.4ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.2ms)
+Completed in 26ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:30) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '2') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:30') ORDER BY created_at DESC[0m
+Rendered posts/_posts (3.4ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.2ms)
+Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts?category_id=2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:09:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:09:32') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.5ms)
+ [4;36;1mCategory Load (0.4ms)[0m [0;1mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.6ms)
+Completed in 30ms (View: 24, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 17:14:58) [GET]
+ Parameters: {"action"=>"index", "category_id"=>"8", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."category_id" = '8') [0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 20:14:58') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.6ms)
+ [4;35;1mCategory Load (0.4ms)[0m [0mSELECT * FROM "categories" ORDER BY name ASC[0m
+Rendered categories/_categories (5.2ms)
+Completed in 27ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?category_id=8]
diff --git a/test/fixtures/categories.yml b/test/fixtures/categories.yml
new file mode 100644
index 0000000..157d747
--- /dev/null
+++ b/test/fixtures/categories.yml
@@ -0,0 +1,7 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+one:
+ name: MyString
+
+two:
+ name: MyString
diff --git a/test/functional/categories_controller_test.rb b/test/functional/categories_controller_test.rb
new file mode 100644
index 0000000..82cb9dc
--- /dev/null
+++ b/test/functional/categories_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class CategoriesControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/category_test.rb b/test/unit/category_test.rb
new file mode 100644
index 0000000..233dacb
--- /dev/null
+++ b/test/unit/category_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class CategoryTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/helpers/categories_helper_test.rb b/test/unit/helpers/categories_helper_test.rb
new file mode 100644
index 0000000..0b03c47
--- /dev/null
+++ b/test/unit/helpers/categories_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class CategoriesHelperTest < ActionView::TestCase
+end
|
pablodv/blogajax
|
e5c745b476134788cb5f99a6d8995d70a2cbaab4
|
align text
|
diff --git a/log/development.log b/log/development.log
index 508ac05..b26bbca 100644
--- a/log/development.log
+++ b/log/development.log
@@ -11707,512 +11707,635 @@ Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=sho
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:00:44) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
1: <% @posts.each do |p|%>
2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
3: <% end %>
app/views/posts/_posts.html.erb:1
app/views/layouts/application.html.erb:65
Rendered rescues/_trace (104.1ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:03) [GET]
Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (2.1ms)
Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:06) [GET]
Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 77ms (View: 71, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:11) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:13) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:16) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:17) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"1", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:18) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=4]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:01:20) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
1: <% @posts.each do |p|%>
2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :controller => 'posts', :actions => 'show', :id => p.id %>
3: <% end %>
app/views/posts/_posts.html.erb:1
app/views/layouts/application.html.erb:65
Rendered rescues/_trace (106.9ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:02:57) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:02:57') [0m
Rendered posts/_posts (2.5ms)
Completed in 27ms (View: 18, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:03:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:03:08) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:03:08') [0m
Rendered posts/_posts (1.7ms)
Completed in 26ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:05:30) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.7ms)
Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:06:35') [0m
Rendered posts/_posts (2.3ms)
Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:59) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.8ms)
Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:16) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:18) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.9ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 70ms (View: 65, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:39) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:32') [0m
Rendered posts/_posts (2.7ms)
Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
Rendered posts/_posts (1.7ms)
Completed in 26ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
Rendered posts/_posts (1.8ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:35) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:35') [0m
Rendered posts/_posts (1.9ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:40') [0m
Rendered posts/_posts (1.6ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:41) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:41') [0m
Rendered posts/_posts (1.6ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:57) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:57') [0m
Rendered posts/_posts (2.3ms)
Completed in 78ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:58) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:58') [0m
Rendered posts/_posts (1.6ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:59) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:59') [0m
Rendered posts/_posts (1.6ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:09:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:09:02') [0m
Rendered posts/_posts (1.7ms)
Completed in 73ms (View: 68, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:38') [0m
Rendered posts/_posts (2.3ms)
Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:40) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:40') [0m
Rendered posts/_posts (1.9ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:42) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:42') [0m
Rendered posts/_posts (53.0ms)
Completed in 74ms (View: 66, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:44) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:44') [0m
Rendered posts/_posts (2.0ms)
Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:12:55) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:12:55') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.1ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:26) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:42) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:42') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:44) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:44') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.9ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:46) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:46') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.7ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:15:21) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:21') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.4ms)
Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-15 12:15:38) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 12:15:38) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:38') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.1ms)
Completed in 26ms (View: 15, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UsersController#new (for 127.0.0.1 at 2010-09-15 12:15:41) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
Rendering template within layouts/application
Rendering users/new
Rendered users/_form (6.4ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:41') ORDER BY created_at DESC[0m
Rendered posts/_posts (7.4ms)
Completed in 101ms (View: 41, DB: 0) | 200 OK [http://localhost/signup]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 12:15:42) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:42') ORDER BY created_at DESC[0m
Rendered posts/_posts (6.0ms)
Completed in 22ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:15:43) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:43') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:40:26) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.8ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.5ms)
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:40:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.2ms)
Completed in 87ms (View: 78, DB: 1) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:40:35) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:40:35') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 35ms (View: 24, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:28:47) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:28:47') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.9ms)
+Completed in 27ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:28:49) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.0ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:28:49') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+Completed in 30ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:09) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:09') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+Completed in 28ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 14:31:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:15') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.8ms)
+Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:19) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:19') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.4ms)
+Completed in 26ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 14:31:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:21') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.8ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:22) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.5ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:22') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.9ms)
+Completed in 27ms (View: 19, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 14:31:24) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:24') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.2ms)
+Completed in 23ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 14:31:26) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.5ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 17:31:26') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.9ms)
+Completed in 32ms (View: 23, DB: 1) | 200 OK [http://localhost/posts/2]
diff --git a/public/stylesheets/default.css b/public/stylesheets/default.css
index 2deb00b..ea7083c 100644
--- a/public/stylesheets/default.css
+++ b/public/stylesheets/default.css
@@ -1,221 +1,222 @@
*{margin:0;padding:0}
body{
background:#6C1400 url(/images/bgbody.gif) repeat-y center top;
font:normal 0.7em Tahoma,Verdana,sans-serif
}
div a{
color:#FFF;
cursor:pointer;
text-decoration:none
}
h1{
color:#444;
font:normal 2em sans-serif;
margin:18px 0 0 0
}
code{
background:url(/images/bgcode.gif);
border:1px solid #F0F0F0;
border-left:6px solid #D91623;
color:#555;display:block;
font:normal 1em "Lucida Sans Unicode",serif;
margin-bottom:12px;
padding:8px 10px;
white-space:pre
}
blockquote{
background:url(/images/quote.gif) no-repeat lavender;
border-top: darkgrey solid 1px;
color:#555;
display:block;
font:bold 1.2em "Trebuchet MS",serif;
margin:6px 0;
padding-left:28px
}
.main{
width:680px;
margin:0 auto
}
.main_left{
float:left;
padding-top:6px;
width:420px
}
.main_right{
border-top:6px solid #FFF;
float:right;
width:254px
}
.footer{clear:both}
.left{float:left}
.right{float:right}
.header,.link_projects,.lbl,.link_updates a{border-bottom:6px solid #FFF}
div.link_projects a:hover,div.link_updates a:hover, .content a:hover, div.footer div.left a:hover{
background:#D7162C;
color:#FFF
}
.header{
background:#D91623 url(/images/bgheader.gif) repeat-x;
height:180px;
}
.header h1{
margin:0;
padding:124px 0 0 24px;
font:normal 2.2em Verdana,sans-serif
}
.header #user{ padding-left: 25px; }
.link_menu{background:#CC2224 url(/images/grdnt_red.png) repeat-x}
.link_menu a{
border-bottom:1px solid #FFF;
display:block;
font:bold 0.9em Verdana,sans-serif;
height:18px;
padding:6px 0 0 10px;
text-decoration:none
}
.link_menu a:hover{background:#444}
.lbl{
background:#222 url(/images/bglbl.gif) repeat-x;
clear:both;
color:#FFF;
font:normal 2em "Lucida Sans Unicode",sans-serif;
height:50px;
line-height:50px;
overflow:hidden;
text-align:center
}
.link_projects a{
display:block;
height:100px;
text-align:center;
color:#FFF;
padding-top:24px;
width:124px;
font-size:0.9em;
font-family:sans-serif
}
.link_projects a span{font:normal 5em sans-serif}
a.g1{background:#888}
a.g2{
background:#666;
border-left:6px solid #FFF
}
.link_updates{background:#222 url(/images/grdnt_gray.gif) repeat-x}
.link_updates .lbl{
border-top:6px solid #FFF;
height:100px;
line-height:100px
}
.link_updates a{
clear:right;
display:block;
font:normal 1.2em "Trebuchet MS",sans-serif;
height:55px;
padding:10px 0;
text-align:center
}
.link_updates a span{
float:left;
font:normal 3em Verdana,sans-serif;
letter-spacing: -2px;margin-left:10px;
margin-top:3px
}
.content{
color:#444;
font-family:Verdana,sans-serif;
line-height:1.3em;
- padding:0 10px 10px
+ padding:0 10px 10px;
+ text-align: justify;
}
.content a{color:#FD1C24}
.content p{margin:4px 0 10px 0}
.content .descr{
color:#666;
margin-bottom:6px
}
.content li{
list-style:url(/images/li.gif);
margin-left:18px
}
.footer{color:#666;clear:both}
.footer .right a{
background:#2A2A2A;
color:#555;
padding:1px 3px
}
.footer .right a:hover{
background:#383838;
color:#999
}
.footer .left a{color:#777}
.footer .left{
border-top:1px solid #F0F0F0;
padding:9px 0 9px 9px;
width:407px
}
.footer .right{
margin-right:8px;
padding:9px 0;
text-align:right;
width:220px
}
.notice{
background:#383838;
color:#FFF;
font-family:Verdana,sans-serif;
font-size: 14px;
text-align: center;
}
.text:focus{ background: antiquewhite; }
form .text { width: 200px;}
#login { background-color: #888;
padding-left: 5px;
}
#login form {
background-color: #888;
color: #fff;
}
#login a:hover { background:#383838; }
|
pablodv/blogajax
|
318b91c133413c069d66877709b310891f0ea469
|
correct title
|
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index e560559..8fa9a90 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -1,22 +1,22 @@
-<%= @post.title %><br />
+<h1><%= @post.title %></h1>
<br/>
<%= @post.body %><br/>
<br/>
<h4>Comments</h4>
<ul>
<div id="comments">
<%# @comments.each do |comment| %>
<%= render @comments %> <%#= render :partial=>"comment", :object => comment %>
<%# end %>
</div>
</ul>
<%= error_messages_for 'comment' %>
<% form_remote_for :comment, @comment, :url => post_comments_path(@post, @comment) do |f|%>
<p>
<%= f.label 'Comment' %><br/>
<%= f.text_area :comment %></p>
<%= f.submit "Post" %>
<% end %>
diff --git a/log/development.log b/log/development.log
index 3aa11ff..508ac05 100644
--- a/log/development.log
+++ b/log/development.log
@@ -11622,512 +11622,597 @@ Rendered comments/_comment (0.5ms)
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
1: <% @posts.each do |p|%>
2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
3: <% end %>
app/views/posts/_posts.html.erb:1
app/views/layouts/application.html.erb:65
Rendered rescues/_trace (50.2ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:34) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.6ms)
Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:36) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.4ms)
Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.8ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:39) [GET]
Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 23ms (View: 17, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:43) [GET]
Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:00:44) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
1: <% @posts.each do |p|%>
2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
3: <% end %>
app/views/posts/_posts.html.erb:1
app/views/layouts/application.html.erb:65
Rendered rescues/_trace (104.1ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:03) [GET]
Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (2.1ms)
Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:06) [GET]
Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.3ms)
Completed in 77ms (View: 71, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:11) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:13) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:16) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:17) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"1", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:18) [GET]
Parameters: {"actions"=>"show", "action"=>"index", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=4]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:01:20) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
1: <% @posts.each do |p|%>
2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :controller => 'posts', :actions => 'show', :id => p.id %>
3: <% end %>
app/views/posts/_posts.html.erb:1
app/views/layouts/application.html.erb:65
Rendered rescues/_trace (106.9ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:02:57) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:02:57') [0m
Rendered posts/_posts (2.5ms)
Completed in 27ms (View: 18, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:03:03) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (1.2ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:03:08) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:03:08') [0m
Rendered posts/_posts (1.7ms)
Completed in 26ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:05:30) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.7ms)
Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:06:35') [0m
Rendered posts/_posts (2.3ms)
Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:59) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.8ms)
Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:16) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:18) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.9ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 70ms (View: 65, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:39) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered posts/_posts (0.1ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:32') [0m
Rendered posts/_posts (2.7ms)
Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
Rendered posts/_posts (1.7ms)
Completed in 26ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
Rendered posts/_posts (1.8ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:35) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:35') [0m
Rendered posts/_posts (1.9ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:40') [0m
Rendered posts/_posts (1.6ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:41) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:41') [0m
Rendered posts/_posts (1.6ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:57) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:57') [0m
Rendered posts/_posts (2.3ms)
Completed in 78ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:58) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:58') [0m
Rendered posts/_posts (1.6ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:59) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:59') [0m
Rendered posts/_posts (1.6ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:09:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:09:02') [0m
Rendered posts/_posts (1.7ms)
Completed in 73ms (View: 68, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:38) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:38') [0m
Rendered posts/_posts (2.3ms)
Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:40) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:40') [0m
Rendered posts/_posts (1.9ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:42) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:42') [0m
Rendered posts/_posts (53.0ms)
Completed in 74ms (View: 66, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:44) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:44') [0m
Rendered posts/_posts (2.0ms)
Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:12:55) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:12:55') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.1ms)
Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:26) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:26') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.8ms)
Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:42) [GET]
Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:42') ORDER BY created_at DESC[0m
Rendered posts/_posts (2.0ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:44) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:44') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.9ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:46) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:46') ORDER BY created_at DESC[0m
Rendered posts/_posts (1.7ms)
Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:15:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:21') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.4ms)
+Completed in 29ms (View: 23, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 12:15:38) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 12:15:38) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:38') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.1ms)
+Completed in 26ms (View: 15, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-15 12:15:41) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (6.4ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:41') ORDER BY created_at DESC[0m
+Rendered posts/_posts (7.4ms)
+Completed in 101ms (View: 41, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 12:15:42) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:42') ORDER BY created_at DESC[0m
+Rendered posts/_posts (6.0ms)
+Completed in 22ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:15:43) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:15:43') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.8ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:40:26) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.8ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:40:26') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.2ms)
+Completed in 87ms (View: 78, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:40:35) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:40:35') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+Completed in 35ms (View: 24, DB: 1) | 200 OK [http://localhost/posts/1]
|
pablodv/blogajax
|
d9ce74f2e9abaa0792d7f3bf61163f7eed958148
|
recent posts
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 334f55f..57d394e 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,46 +1,70 @@
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
helper :all
helper_method :current_user_session, :current_user
filter_parameter_logging :password, :password_confirmation
+ before_filter :set_locale
+
+ protected
+ def set_locale
+ session[:locale] = params[:locale] if params[:locale]
+ I18n.locale = session[:locale] || I18n.default_locale
+
+ locale_path = "#{LOCALES_DIRECTORY}#{I18n.locale}.yml"
+
+ unless I18n.load_path.include? locale_path
+ I18n.load_path << locale_path
+ I18n.backend.send(:init_translations)
+ end
+
+ rescue Exception => err
+ logger.error err
+ flash.now[:notice] = "#{I18n.locale} translation not available"
+
+ I18n.load_path -= [locale_path]
+ I18n.locale = session[:locale] = I18n.default_locale
+ end
+
+
+
private
def current_user_session
return @current_user_session if defined?(@current_user_session)
@current_user_session = UserSession.find
end
def current_user
return @current_user if defined?(@current_user)
@current_user = current_user_session && current_user_session.record
end
def require_user
unless current_user
store_location
flash[:notice] = "You must be logged in to access this page"
redirect_to new_user_session_url
return false
end
end
def require_no_user
if current_user
store_location
flash[:notice] = "You must be logged out to access this page"
redirect_to posts_path
return false
end
end
def store_location
session[:return_to] = request.request_uri
end
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
end
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index ad013ef..522b20d 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -1,32 +1,37 @@
class PostsController < ApplicationController
+
before_filter :require_user, :only => [:new, :create]
def index
- @posts = Post.find(:all, :order => 'created_at DESC')
+ @posts = Post.find(:all, :order => 'title')
end
def new
@post = Post.new
end
def create
@post = Post.new( :title => params[:post][:title],
:body => params[:post][:body],
:author => current_user.full_name
)
if @post.save
flash[:notice] = 'Post was successfully created.'
redirect_to :action => 'index'
else
render :action => 'new'
end
end
def show
@post = Post.find(params[:id])
@comments = @post.comments.collect
end
+ def posts
+ @posts2 = nil
+ end
+
end
diff --git a/app/models/post.rb b/app/models/post.rb
index 61f80dc..6bc07ca 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -1,5 +1,7 @@
class Post < ActiveRecord::Base
has_many :comments
validates_presence_of :title, :body
+
+ named_scope :recent, :conditions => ["created_at > ?", 2.day.ago], :order => 'created_at DESC'
end
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index baea43d..a617964 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,88 +1,96 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
<title>Ruby on Rails 2010</title>
</head>
<body>
<div class="main">
+
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
- <% if current_user %>
- <div id="user">
- <%= 'Welcome ' + current_user.full_name %> <br/>
- <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
- </div>
- <% end %>
+ <div id="user">
+ <% if current_user %>
+ <%= 'Welcome ' + current_user.full_name %> <br/>
+ <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
+ <% end %>
+ <%# form_tag '', :method => 'GET', :class => 'locale' do %>
+ <%#= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+ :onchange => 'this.form.submit()' %>
+ <%#= submit_tag 'submit' %>
+ <%#= javascript_tag "$$('.locale input').each(Element.hide)" %>
+ <%# end %>
+ </div>
</div>
<div class="link_menu">
<%= link_to 'Home', :controller => 'posts', :action => 'index' %>
<%= link_to 'Login', login_path %>
<%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
<div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
<a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
</div>
<div class="link_updates">
- <div class="lbl">update </div>
- <a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>
- <a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>
- <a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>
- <a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>
- <a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>
- <a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>
- <a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>
- <a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>
+ <div class="lbl">recent posts </div>
+ <%= render :partial => 'posts/posts' %>
+ <%#*<a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>%>
+ <%#*<a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>%>
+ <%#*<a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>%>
+ <%#*<a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>%>
+ <%#*<a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>%>
+ <%#*<a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>%>
+ <%#*<a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>%>
+ <%#*<a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>%>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
<div class="left">© <a href="index.html">Website</a> 2009.</div>
<div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
diff --git a/app/views/layouts/post.html.erb b/app/views/layouts/post.html.erb
new file mode 100644
index 0000000..2d9d6a0
--- /dev/null
+++ b/app/views/layouts/post.html.erb
@@ -0,0 +1,96 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+
+<%= stylesheet_link_tag "default" , :media => "all" %>
+<%= javascript_include_tag :defaults %>
+
+<title>Ruby on Rails 2010</title>
+</head>
+
+<body>
+
+<div class="main">
+
+
+ <div class="main_left">
+
+ <div class="header">
+ <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+ <div id="user">
+ <% if current_user %>
+ <%= 'Welcome ' + current_user.full_name %> <br/>
+ <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
+ <% end %>
+ <%# form_tag '', :method => 'GET', :class => 'locale' do %>
+ <%#= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+ :onchange => 'this.form.submit()' %>
+ <%#= submit_tag 'submit' %>
+ <%#= javascript_tag "$$('.locale input').each(Element.hide)" %>
+ <%# end %>
+ </div>
+ </div>
+
+ <div class="link_menu">
+ <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
+ <%= link_to 'Login', login_path %>
+ <%= link_to 'Registrer', signup_path %>
+ <%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
+
+ </div>
+
+ <div class="content">
+ <br/>
+ <div class="notice"><%= notice %></div>
+ <%= yield %>
+
+ </div>
+
+ </div>
+
+ <div class="main_right">
+
+ <div class="link_projects">
+ <div class="lbl">projects</div>
+ <span class="left">
+ <a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
+ </span>
+ <span class="right">
+ <a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
+ </span>
+ </div>
+
+ <div class="link_updates">
+
+ <div class="lbl">update</div>
+
+ <a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>
+ <a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>
+ <a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>
+ <a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>
+ <a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>
+ <a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>
+ <a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>
+ <a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>
+
+ <div class="clearer"><span></span></div>
+
+ </div>
+
+ </div>
+
+ <div class="footer">
+
+ <div class="left">© <a href="index.html">Website</a> 2009.</div>
+
+ <div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
+
+ <div class="clearer"><span></span></div>
+
+ </div>
+
+</div>
+
+
+
+</body></html>
diff --git a/app/views/posts/_posts.html.erb b/app/views/posts/_posts.html.erb
new file mode 100644
index 0000000..66160bb
--- /dev/null
+++ b/app/views/posts/_posts.html.erb
@@ -0,0 +1,7 @@
+<% unless @posts2 %>
+ <% @posts2 = Post.recent %>
+ <% @posts2.each do |p|%>
+ <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, p %>
+ <% end %>
+<% end %>
+
diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb
new file mode 100644
index 0000000..e066ab1
--- /dev/null
+++ b/config/initializers/i18n.rb
@@ -0,0 +1,9 @@
+I18n.default_locale = 'en'
+
+LOCALES_DIRECTORY = "#{RAILS_ROOT}/config/locales/"
+
+LANGUAGES = {
+ 'English' => 'en',
+ "Espa\xc3\xb1ol" => 'es'
+}
+
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 818b162..d57b2f1 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/db/test.sqlite3 b/db/test.sqlite3
new file mode 100644
index 0000000..e69de29
diff --git a/log/development.log b/log/development.log
index 56b3f22..3aa11ff 100644
--- a/log/development.log
+++ b/log/development.log
@@ -9276,512 +9276,2858 @@ Completed in 166ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.6ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:44) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.3ms)
Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:37:55) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered user_sessions/_new (4.3ms)
Completed in 21ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:38:03) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 15, "updated_at" = '2010-09-14 18:38:03', "perishable_token" = '9d5fKbohvqWgynf6UMy', "last_request_at" = '2010-09-14 18:38:03', "last_login_at" = '2010-09-14 18:37:34', "current_login_at" = '2010-09-14 18:38:03' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 160ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:04) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:04', "perishable_token" = 'iNaDVVNbhyq9upOKfNLT', "last_request_at" = '2010-09-14 18:38:04' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.7ms)
Completed in 122ms (View: 115, DB: 2) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:35) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:35', "perishable_token" = 'fLGKjYehr56fEJKvcTS0', "last_request_at" = '2010-09-14 18:38:35' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 127ms (DB: 0) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:35', "perishable_token" = 'VfLvrAEVnRlPE6NVFO', "last_request_at" = '2010-09-14 18:38:35' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.6ms)
Completed in 110ms (View: 104, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:37) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:37', "perishable_token" = 'nXElfJccutXF7H5mBN', "last_request_at" = '2010-09-14 18:38:37' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 83ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (1.0ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:37', "perishable_token" = 'Qih5O13VaChHe61nMhr', "last_request_at" = '2010-09-14 18:38:37' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.4ms)
Completed in 124ms (View: 117, DB: 2) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:39) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:39', "perishable_token" = 'AqEW171H7xr70FoM12', "last_request_at" = '2010-09-14 18:38:39' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 86ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (6.0ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:40', "perishable_token" = '9L2RNDQ1338FQNDStaJo', "last_request_at" = '2010-09-14 18:38:40' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.9ms)
Completed in 113ms (View: 102, DB: 7) | 200 OK [http://localhost/posts]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:40:05) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:40:05', "perishable_token" = 'hQZZvQDmtyPKTnHzdcha', "last_request_at" = '2010-09-14 18:40:05' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 136ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:40:05) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.4ms)
Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:40:07) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered user_sessions/_new (4.2ms)
Completed in 19ms (View: 10, DB: 0) | 200 OK [http://localhost/login]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:40:15) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 16, "updated_at" = '2010-09-14 18:40:15', "perishable_token" = 'FiHPugGPP6j5LQOtBTRp', "last_request_at" = '2010-09-14 18:40:15', "last_login_at" = '2010-09-14 18:38:03', "current_login_at" = '2010-09-14 18:40:15' WHERE "id" = 2[0m
ActionView::MissingTemplate (Missing template user_sessions/create.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:44:20) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:44:20', "perishable_token" = 'fWbQsvtHxuPg31wIHXF8', "last_request_at" = '2010-09-14 18:44:20' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 124ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:44:20) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (1.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:44:20', "perishable_token" = 'HtFdWz3CIgv4JIw4hN0', "last_request_at" = '2010-09-14 18:44:20' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.8ms)
Completed in 131ms (View: 123, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:45:46) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:45:46', "perishable_token" = 'aWAhnhj8zhVGOmtpiol', "last_request_at" = '2010-09-14 18:45:46' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.5ms)
Rendered user_sessions/_new (5.8ms)
Completed in 149ms (View: 16, DB: 0) | 200 OK [http://localhost/posts/new]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:45:49) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:45:49', "perishable_token" = 'rBpfE7Yx7GvKrgqXv30C', "last_request_at" = '2010-09-14 18:45:49' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 192ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:45:50) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.9ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.7ms)
Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:45:53) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:45:53) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered user_sessions/_new (4.4ms)
Completed in 21ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:48:31) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 85ms (View: 11, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:48:52) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 21ms (View: 9, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:49:24) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:51:18) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.4ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "login_count" = 17, "updated_at" = '2010-09-14 18:51:18', "perishable_token" = 'DFPM9T5bUsIrElVme2Q', "last_request_at" = '2010-09-14 18:51:18', "last_login_at" = '2010-09-14 18:40:15', "current_login_at" = '2010-09-14 18:51:18' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts/new
Completed in 179ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:51:18) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:18', "perishable_token" = 'pYHdoR0sFVNMwdAZstg', "last_request_at" = '2010-09-14 18:51:18' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.7ms)
Completed in 131ms (View: 9, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:26) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:26', "perishable_token" = 'c1I9spBSbri0WSqhFObA', "last_request_at" = '2010-09-14 18:51:26' WHERE "id" = 2[0m
Completed in 114ms (View: 109, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 15:51:29) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (13.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:29', "perishable_token" = 'Wk47kkI0Ix3zj3ZWRRX5', "last_request_at" = '2010-09-14 18:51:29' WHERE "id" = 2[0m
Completed in 179ms (View: 156, DB: 14) | 200 OK [http://localhost/posts/3]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:51:32) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:32', "perishable_token" = 'dYC0qWxcq114NXP2f115', "last_request_at" = '2010-09-14 18:51:32' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 106ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (4.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:32', "perishable_token" = 'dY2XqofWUGXWqQaupelH', "last_request_at" = '2010-09-14 18:51:32' WHERE "id" = 2[0m
Completed in 110ms (View: 101, DB: 5) | 200 OK [http://localhost/posts]
Processing UsersController#new (for 127.0.0.1 at 2010-09-14 15:51:35) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:35', "perishable_token" = 'y84YjGslE5nm2H2xT5cM', "last_request_at" = '2010-09-14 18:51:35' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 106ms (DB: 1) | 302 Found [http://localhost/signup]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (1.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:35', "perishable_token" = 'qDHsDN6aWNJix8QPP7D', "last_request_at" = '2010-09-14 18:51:35' WHERE "id" = 2[0m
Completed in 182ms (View: 174, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:51:37) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:37', "perishable_token" = 'UFxXfdGTBJ5m8sksC7V', "last_request_at" = '2010-09-14 18:51:37' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.9ms)
Completed in 111ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:52:59) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:52:59', "perishable_token" = 'mQuVCA6Vmwz4hszkb4', "last_request_at" = '2010-09-14 18:52:59' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.4ms)
ActionView::TemplateError (undefined local variable or method `loguot_path' for #<ActionView::Base:0xb6d205bc>) on line #22 of app/views/layouts/application.html.erb:
19: <% if current_user %>
20: <div id="user">
21: <%= 'Welcome ' + current_user.full_name %> <br/>
22: <%= link_to 'Loguot', loguot_path %>
23: </div>
24: <% end %>
25: </div>
app/views/layouts/application.html.erb:22
Rendered rescues/_trace (114.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:53:53) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:53:53', "perishable_token" = 'ALfghobuQvIVQ9ATvZI', "last_request_at" = '2010-09-14 18:53:53' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.6ms)
Completed in 158ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/new]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:54:02) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:54:02', "perishable_token" = 'VHQdRw4NJdAabxz5VhN', "last_request_at" = '2010-09-14 18:54:02' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 111ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:54:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:55:10) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 12ms (DB: 0) | 302 Found [http://localhost/posts/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:10) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 18ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:55:12) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 15:55:13) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 20ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/3]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 69ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 19ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 77ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:16) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 11ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:16) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:16) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:16) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:23:36) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 83ms (View: 78, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:30:44) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 18ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 16:30:46) [GET]
ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
Rendering rescues/layout (not_found)
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:31:38) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 17ms (View: 6, DB: 0) | 200 OK [http://localhost/login]
Processing PasswordResetsController#new (for 127.0.0.1 at 2010-09-14 16:31:40) [GET]
Parameters: {"action"=>"new", "controller"=>"password_resets"}
Rendering template within layouts/application
Rendering password_resets/new
Completed in 19ms (View: 7, DB: 0) | 200 OK [http://localhost/password_resets/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:31:43) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 17ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
Processing PasswordResetsController#new (for 127.0.0.1 at 2010-09-14 16:31:44) [GET]
Parameters: {"action"=>"new", "controller"=>"password_resets"}
Rendering template within layouts/application
Rendering password_resets/new
Completed in 13ms (View: 3, DB: 0) | 200 OK [http://localhost/password_resets/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:38:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 18ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 16:38:51) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 24ms (View: 15, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 16:38:55) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.4ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 29ms (View: 20, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 16:38:57) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:38:57) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 78ms (View: 68, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:39:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:55:45) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #16 of app/views/layouts/application.html.erb:
+13: <div class="main">
+14: <!-- START:i18n -->
+15: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+16: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+17: :onchange => 'this.form.submit()' %>
+18: <%= submit_tag 'submit' %>
+19: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:16
+ app/views/layouts/application.html.erb:15
+
+Rendered rescues/_trace (48.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:59:05) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (49.0ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:59:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (124.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:59:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (49.1ms)
+Rendered rescues/_request_and_response (4.7ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:59:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (53.0ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:59:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (120.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:59:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (48.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:01:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (49.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:01:38) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::LANGUAGES) on line #15 of app/views/layouts/application.html.erb:
+12:
+13: <div class="main">
+14: <% form_tag '', :method => 'GET', :class => 'locale' do %>
+15: <%= select_tag 'locale', options_for_select(LANGUAGES, I18n.locale),
+16: :onchange => 'this.form.submit()' %>
+17: <%= submit_tag 'submit' %>
+18: <%= javascript_tag "$$('.locale input').each(Element.hide)" %>
+
+ app/views/layouts/application.html.erb:15
+ app/views/layouts/application.html.erb:14
+
+Rendered rescues/_trace (127.5ms)
+Rendered rescues/_request_and_response (2.0ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:01:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 34ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:01:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:02:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:02:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:02:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 73ms (View: 21, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 23ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 65ms (View: 61, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 18ms (View: 14, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 67ms (View: 63, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:03:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:05:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:15:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 24ms (View: 17, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:15:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:15:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (1.3ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:21:51) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 75ms (View: 69, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:21:53) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 14, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 17:21:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts", "locale"=>"en"}
+ [4;36;1mPost Load (1.2ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 22ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?locale=en]
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreateUsers (20100902183958)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.0ms)[0m [0mSQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "full_name" varchar(255), "login" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "password_salt" varchar(255) NOT NULL, "persistence_token" varchar(255) NOT NULL, "single_access_token" varchar(255) NOT NULL, "perishable_token" varchar(255) NOT NULL, "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-15 10:14:39) [GET]
+
+ActionController::RoutingError (No route matches "/articles" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:14:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (34.2ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 209ms (View: 142, DB: 34) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:15:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 22ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 10:22:51) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 30ms (View: 20, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:22:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 67ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 10:22:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 10:23:00) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 10:23:00) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 17ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 10:31:59) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered posts/_list (0.5ms)
+Completed in 74ms (View: 63, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:32:01) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:32:34) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:32:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 67ms (View: 63, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:32:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:32:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:40:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 73ms (View: 68, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:40:42) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.5ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:45:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.4ms)
+Completed in 26ms (View: 21, DB: 1) | 200 OK [http://localhost/posts]
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-08 13:47:10') LIMIT 1[0m
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-08 13:47:40') LIMIT 1[0m
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" [0m
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:51:43) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.4ms)
+Completed in 26ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:51:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 18ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:51:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 67ms (View: 62, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:51:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:51:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 10:51:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-22 13:53:12') LIMIT 1[0m
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-22 14:00:05') [0m
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-08 14:00:17') [0m
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-14 14:00:27') [0m
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-13 14:00:37') [0m
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:02:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:07:30) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:07:51) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:08:20) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:08:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:09:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:09:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.1ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:11:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (1.3ms)
+Completed in 71ms (View: 66, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:13:13) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.8ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:13:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.8ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:13:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.9ms)
+Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:13:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (0.8ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:13:44) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (1.6ms)
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:14:01) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (1.3ms)
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:14:43) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_list.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title, p %>
+3: <% end %>
+
+ app/views/posts/_list.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (103.8ms)
+Rendered rescues/_request_and_response (1.1ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:15:39) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (can't convert ActiveSupport::TimeWithZone into String) on line #2 of app/views/posts/_list.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title + p.created_at, p %>
+3: <% end %>
+
+ app/views/posts/_list.html.erb:2:in `+'
+ app/views/posts/_list.html.erb:2
+ app/views/posts/_list.html.erb:1:in `each'
+ app/views/posts/_list.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (111.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:16:45) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (wrong number of arguments (2 for 0)) on line #2 of app/views/posts/_list.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title p.created_at, p %>
+3: <% end %>
+
+ app/views/posts/_list.html.erb:2:in `title'
+ app/views/posts/_list.html.erb:2
+ app/views/posts/_list.html.erb:1:in `each'
+ app/views/posts/_list.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (50.7ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:17:44) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (1.8ms)
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:20:00) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_list (1.7ms)
+Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:22:43) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_list.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br />' + p.created_at.strftime("%B %d, %Y at %I:%M %p").to_s, p %>
+3: <% end %>
+
+ app/views/posts/_list.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (51.0ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:24:55) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br />' + p.created_at.strftime("%B %d, %Y at %I:%M %p").to_s, p %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (52.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:25:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br />' + p.created_at.strftime("%B %d, %Y at %I:%M %p").to_s, p %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (114.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#show (for 127.0.0.1 at 2010-09-15 11:28:01) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+
+NoMethodError (undefined method `layuot' for PostsController:Class):
+ app/controllers/posts_controller.rb:3
+
+Rendered rescues/_trace (31.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:28:18) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/post
+Rendering posts/show
+Completed in 26ms (View: 18, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:28:25) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/post
+Rendering posts/index
+Completed in 20ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:28:27) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.5ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/post
+Rendering posts/show
+Rendered comments/_comment (2.4ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 33ms (View: 24, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:29:42) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.4ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/post
+Rendering posts/show
+Rendered comments/_comment (1.8ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 84ms (View: 75, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:29:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/post
+Rendering posts/index
+Completed in 20ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:29:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/post
+Rendering posts/index
+Completed in 19ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:30:31) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.1ms)
+Completed in 19ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:30:53) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:31:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 11:32:11) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 56ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 11:32:11) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to '<span>' + p.title.to_s + '</span><br />' + p.created_at.strftime("%B %d, %Y").to_s, p %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (49.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-15 11:32:26) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 76ms (View: 66, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-15 11:32:32) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.6ms)[0m [0;1mUPDATE "users" SET "failed_login_count" = 1, "updated_at" = '2010-09-15 14:32:32', "perishable_token" = 'hq5Qr2F7PI2DKUtYFpK' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 247ms (View: 14, DB: 1) | 200 OK [http://localhost/user_session]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-15 11:32:36) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "login_count" = 18, "failed_login_count" = 0, "updated_at" = '2010-09-15 14:32:36', "perishable_token" = 'Bozz9of3kQxuRtTkDVdg', "last_request_at" = '2010-09-15 14:32:36', "last_login_at" = '2010-09-14 18:51:18', "current_login_at" = '2010-09-15 14:32:36' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts/new
+Completed in 104ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-15 11:32:36) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (2.9ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 14:32:36', "perishable_token" = 'nscZgz8YohyRm4NdNr', "last_request_at" = '2010-09-15 14:32:36' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (61.9ms)
+Completed in 218ms (View: 91, DB: 3) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-15 11:33:03) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"ruby on rails ", "title"=>"texto mas largo que pasa"}, "action"=>"create", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 14:33:03', "perishable_token" = 'dfUpZHjRW9F8UDuaP2Mi', "last_request_at" = '2010-09-15 14:33:03' WHERE "id" = 2[0m
+ [4;35;1mPost Create (0.2ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at") VALUES('2010-09-15 14:33:03', 'texto mas largo que pasa', 'ruby on rails ', 'Pablo Moreira Mora', '2010-09-15 14:33:03')[0m
+Redirected to http://localhost:3000/posts
+Completed in 236ms (DB: 1) | 302 Found [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:33:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 14:33:03', "perishable_token" = '5vkdwFUF396evMrvpae', "last_request_at" = '2010-09-15 14:33:03' WHERE "id" = 2[0m
+Completed in 189ms (View: 183, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-15 11:33:08) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.4ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.7ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-15 14:33:08', "perishable_token" = '3jpbcKKog2E9xSTzuqSf', "last_request_at" = '2010-09-15 14:33:08' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 103ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:33:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:33:18) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 90ms (View: 85, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:33:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.8ms)
+Completed in 26ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:34:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.8ms)
+Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:41:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 25ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:41:14) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:41:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (15.6ms)
+Completed in 82ms (View: 77, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:41:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 25ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:41:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:42:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+
+NoMethodError (undefined method `>=' for :created_at:Symbol):
+ app/models/post.rb:6
+ app/controllers/posts_controller.rb:7:in `index'
+
+Rendered rescues/_trace (42.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:43:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:51) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 26ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:53) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.7ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:53) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 82ms (View: 77, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 25ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:44:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.7ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.7ms)
+Completed in 81ms (View: 76, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:45:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:46:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 83ms (View: 78, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:46:57) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 23ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:46:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:46:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 27ms (View: 21, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:46:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:46:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (2.0ms)
+Completed in 86ms (View: 74, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.7ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.5ms)
+Completed in 68ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 22ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:29) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:29) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:29) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:29) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:30) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 20ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:47:30) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 66ms (View: 61, DB: 1) | 200 OK [http://localhost/posts]
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-13 14:51:06') [0m
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."created_at" = '2010-09-13 14:51:09') [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 11:52:14) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 26ms (View: 21, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:55:06) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, p %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (54.6ms)
+Rendered rescues/_request_and_response (1.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:56:57) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (113.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:56:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (112.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:56:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (50.4ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:56:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (50.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:56:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (55.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:56:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (124.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:57:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (117.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:57:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (50.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:57:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (51.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:57:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (54.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:57:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (118.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:57:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (107.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:59:51) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.4ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (50.0ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 11:59:54) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.0ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (50.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:34) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.6ms)
+Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:36) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.4ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.8ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:38) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:39) [GET]
+ Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 23ms (View: 17, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:00:43) [GET]
+ Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:00:44) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :contrller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (104.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:03) [GET]
+ Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (2.1ms)
+Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:06) [GET]
+ Parameters: {"actions"=>"show", "contrller"=>"posts", "action"=>"index", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.3ms)
+Completed in 77ms (View: 71, DB: 1) | 200 OK [http://localhost/posts?actions=show&contrller=posts&id=4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:11) [GET]
+ Parameters: {"actions"=>"show", "action"=>"index", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.2ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:13) [GET]
+ Parameters: {"actions"=>"show", "action"=>"index", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.2ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:16) [GET]
+ Parameters: {"actions"=>"show", "action"=>"index", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.1ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:17) [GET]
+ Parameters: {"actions"=>"show", "action"=>"index", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.2ms)
+Completed in 22ms (View: 16, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:01:18) [GET]
+ Parameters: {"actions"=>"show", "action"=>"index", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.2ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts?actions=show&id=4]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:01:20) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (You have a nil object when you didn't expect it!
+You might have expected an instance of Array.
+The error occurred while evaluating nil.each) on line #1 of app/views/posts/_posts.html.erb:
+1: <% @posts.each do |p|%>
+2: <%= link_to p.title.to_s + '<br /> -- <br />' + p.created_at.strftime("%B %d, %Y").to_s, :controller => 'posts', :actions => 'show', :id => p.id %>
+3: <% end %>
+
+ app/views/posts/_posts.html.erb:1
+ app/views/layouts/application.html.erb:65
+
+Rendered rescues/_trace (106.9ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:02:57) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:02:57') [0m
+Rendered posts/_posts (2.5ms)
+Completed in 27ms (View: 18, DB: 1) | 200 OK [http://localhost/posts/4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:03:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (1.2ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:03:08) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:03:08') [0m
+Rendered posts/_posts (1.7ms)
+Completed in 26ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:05:30) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.7ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:06:35') [0m
+Rendered posts/_posts (2.3ms)
+Completed in 23ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:06:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.8ms)
+Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:16) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:18) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.9ms)
+Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:38) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.1ms)
+Completed in 70ms (View: 65, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:39) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.1ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:07:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered posts/_posts (0.1ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:32') [0m
+Rendered posts/_posts (2.7ms)
+Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
+Rendered posts/_posts (1.7ms)
+Completed in 26ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:33) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:33') [0m
+Rendered posts/_posts (1.8ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:35) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:35') [0m
+Rendered posts/_posts (1.9ms)
+Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:40') [0m
+Rendered posts/_posts (1.6ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:41) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:41') [0m
+Rendered posts/_posts (1.6ms)
+Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:57) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:57') [0m
+Rendered posts/_posts (2.3ms)
+Completed in 78ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:08:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:58') [0m
+Rendered posts/_posts (1.6ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:08:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:08:59') [0m
+Rendered posts/_posts (1.6ms)
+Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:09:02) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:09:02') [0m
+Rendered posts/_posts (1.7ms)
+Completed in 73ms (View: 68, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:38) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:38') [0m
+Rendered posts/_posts (2.3ms)
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:40) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:40') [0m
+Rendered posts/_posts (1.9ms)
+Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:10:42) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:42') [0m
+Rendered posts/_posts (53.0ms)
+Completed in 74ms (View: 66, DB: 1) | 200 OK [http://localhost/posts/4]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:10:44) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:10:44') [0m
+Rendered posts/_posts (2.0ms)
+Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:12:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:12:55') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.1ms)
+Completed in 21ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:26) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:26') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.8ms)
+Completed in 21ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:42) [GET]
+ Parameters: {"action"=>"show", "id"=>"4", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 4) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 4) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:42') ORDER BY created_at DESC[0m
+Rendered posts/_posts (2.0ms)
+Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/4]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-15 12:13:44) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:44') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.9ms)
+Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-15 12:13:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY title[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE (created_at > '2010-09-13 15:13:46') ORDER BY created_at DESC[0m
+Rendered posts/_posts (1.7ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
diff --git a/test/unit/post_test.rb b/test/unit/post_test.rb
index 8afe8cc..21677cc 100644
--- a/test/unit/post_test.rb
+++ b/test/unit/post_test.rb
@@ -1,8 +1,12 @@
require 'test_helper'
class PostTest < ActiveSupport::TestCase
# Replace this with your real tests.
- test "the truth" do
- assert true
+ test "invalid with empty attributes" do
+ posts = Post.new
+ assert !posts.valid?
+ assert posts.errors.invalid?(:title)
+ assert posts.errors.invalid?(:body)
end
+
end
|
pablodv/blogajax
|
bba2f5d2b23ad92fe67466f72d37b5e971778536
|
Reset Password
|
diff --git a/app/controllers/password_resets_controller.rb b/app/controllers/password_resets_controller.rb
new file mode 100644
index 0000000..30f5f81
--- /dev/null
+++ b/app/controllers/password_resets_controller.rb
@@ -0,0 +1,50 @@
+class PasswordResetsController < ApplicationController
+
+ before_filter :load_user_using_perishable_token, :only => [:edit, :update]
+ before_filter :require_no_user
+
+ def new
+ render
+ end
+
+ def create
+ @user = User.find_by_email(params[:email])
+ if @user
+ @user.deliver_password_reset_instructions!
+ flash[:notice] = "Instructions to reset your password have been emailed to you. " +
+ "Please check your email."
+ redirect_to login_path
+ else
+ flash[:notice] = "No user was found with that email address #{params[:email]}"
+ render :action => :new
+ end
+ end
+
+ def edit
+ #@user = current_user
+ end
+
+ def update
+ @user.password = params[:user][:password]
+ @user.password_confirmation = params[:user][:password_confirmation]
+ if @user.save
+ flash[:notice] = "Password successfully updated"
+ redirect_to login_path
+ else
+ render :action => :edit
+ end
+end
+
+ private
+ def load_user_using_perishable_token
+ @user = User.find_using_perishable_token(params[:id])
+ unless @user
+ flash[:notice] = "We're sorry, but we could not locate your account. " +
+ "If you are having issues try copying and pasting the URL " +
+ "from your email into your browser or restarting the " +
+ "reset password process."
+ redirect_to login_path
+ end
+ end
+
+end
diff --git a/app/helpers/password_resets_helper.rb b/app/helpers/password_resets_helper.rb
new file mode 100644
index 0000000..0c9d96e
--- /dev/null
+++ b/app/helpers/password_resets_helper.rb
@@ -0,0 +1,2 @@
+module PasswordResetsHelper
+end
diff --git a/app/models/notifier.rb b/app/models/notifier.rb
index 1d5a607..abb0cf6 100644
--- a/app/models/notifier.rb
+++ b/app/models/notifier.rb
@@ -1,36 +1,36 @@
class Notifier < ActionMailer::Base
def password_reset_instructions(user)
subject "Password Reset Instructions"
- from "Holiday Reminder <[email protected]>"
+ from "Blog <[email protected]>"
recipients user.email
sent_on Time.now
body :edit_password_reset_url => edit_password_reset_url(user.perishable_token)
end
def activation_instructions(user)
subject "Activation Instructions"
- from "Holiday Reminder <[email protected]>"
+ from "Blog <[email protected]>"
recipients user.email
sent_on Time.now
body :account_activation_url => register_url(user.perishable_token)
end
def activation_confirmation(user)
subject "Activation Complete"
- from "Holiday Reminder <[email protected]>"
+ from "Blog <[email protected]>"
recipients user.email
sent_on Time.now
body :root_url => login_url
end
def holiday_reminder(client, holiday)
subject "Holiday Reminder"
from "Holiday Reminder <[email protected]>"
recipients client.email
sent_on Time.now
body :holiday_reminder_url => holiday, :exception_mailer =>
edit_exception_url(client.id)
end
end
diff --git a/app/views/password_resets/edit.erb b/app/views/password_resets/edit.erb
new file mode 100644
index 0000000..7c9020e
--- /dev/null
+++ b/app/views/password_resets/edit.erb
@@ -0,0 +1,14 @@
+<h1>Change My Password</h1>
+<br/>
+<% form_for @user, :url => password_reset_path, :method => :put do |f| %>
+ <%= f.error_messages %>
+ <%= f.label :password %><br />
+ <%= f.password_field :password %><br />
+ <br />
+ <%= f.label :password_confirmation %><br />
+ <%= f.password_field :password_confirmation %><br />
+ <br />
+ <%= f.submit "Update Password" %>
+<% end %>
+
+
diff --git a/app/views/password_resets/new.erb b/app/views/password_resets/new.erb
new file mode 100644
index 0000000..c4ad9af
--- /dev/null
+++ b/app/views/password_resets/new.erb
@@ -0,0 +1,9 @@
+<h1>Reset Password</h1>
+<br/>
+<p>Please enter your email address below and then press "Reset Password".</p>
+
+<% form_tag password_resets_path do %>
+ <%= text_field_tag :email %>
+ <%= submit_tag "Reset Password" %>
+<% end %>
+
diff --git a/app/views/password_resets/new.html.erb b/app/views/password_resets/new.html.erb
new file mode 100644
index 0000000..ecd79b3
--- /dev/null
+++ b/app/views/password_resets/new.html.erb
@@ -0,0 +1,14 @@
+<h1>Forgot Password</h1>
+<br />
+Fill out the form below and instructions to reset your password will be emailed
+to you:<br />
+<br />
+
+<% form_tag password_resets_path do %>
+ <label>Email:</label><br />
+ <%= text_field_tag "email" %><br />
+ <br />
+ <%= submit_tag "Reset my password" %>
+<% end %>
+
+ <%= link_to "Back", login_path %>
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 8e6d311..04ee4a3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,57 +1,58 @@
ActionController::Routing::Routes.draw do |map|
map.resources :posts, :has_many => :comments
map.resources :comments
+ map.resources :password_resets
map.resource :user_session
map.resource :account, :controller => "users"
map.login '/login', :controller => "user_sessions", :action => "new"
map.logout '/logout', :controller => "user_sessions", :action => "destroy"
map.signup 'signup', :controller => "users", :action => "new"
map.root :controller => "user_sessions", :action => "new"
map.register '/register/:activation_code', :controller => 'activations', :action => 'new'
map.activate '/activate/:id', :controller => 'activations', :action => 'create'
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# map.resources :products
# Sample resource route with options:
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
# Sample resource route with more complex sub-resources
# map.resources :products do |products|
# products.resources :comments
# products.resources :sales, :collection => { :recent => :get }
# end
# Sample resource route within a namespace:
# map.namespace :admin do |admin|
# # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
# admin.resources :products
# end
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing or commenting them out if you're using named routes and resources.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
diff --git a/log/development.log b/log/development.log
index d50c5a9..56b3f22 100644
--- a/log/development.log
+++ b/log/development.log
@@ -9225,512 +9225,563 @@ Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:36:40', "perishable_token" = '9geGZYauxgyrAKr5FJkX', "last_request_at" = '2010-09-14 18:36:40' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.5ms)
Completed in 117ms (View: 110, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:21) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:37:21', "perishable_token" = 'dPhO7sWsA4mQXu65KmDR', "last_request_at" = '2010-09-14 18:37:21' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.0ms)
Completed in 111ms (View: 106, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:37:26) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.9ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:37:26', "perishable_token" = '5fu7s5oKhwFeOrYxvcs', "last_request_at" = '2010-09-14 18:37:26' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 140ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:26) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.7ms)
Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:37:34) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 14, "updated_at" = '2010-09-14 18:37:34', "perishable_token" = 'wK2CMbrS6sly0nP9CdSs', "last_request_at" = '2010-09-14 18:37:34', "last_login_at" = '2010-09-14 18:36:36', "current_login_at" = '2010-09-14 18:37:34' WHERE "id" = 2[0m
Redirected to http://localhost:3000/logout
Completed in 110ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:37:34) [GET]
Parameters: {"action"=>"destroy", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:37:34', "perishable_token" = 'Iytd0pNJo2qUa7Nv0', "last_request_at" = '2010-09-14 18:37:34' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 166ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.6ms)
Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:44) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.3ms)
Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:37:55) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered user_sessions/_new (4.3ms)
Completed in 21ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:38:03) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 15, "updated_at" = '2010-09-14 18:38:03', "perishable_token" = '9d5fKbohvqWgynf6UMy', "last_request_at" = '2010-09-14 18:38:03', "last_login_at" = '2010-09-14 18:37:34', "current_login_at" = '2010-09-14 18:38:03' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 160ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:04) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:04', "perishable_token" = 'iNaDVVNbhyq9upOKfNLT', "last_request_at" = '2010-09-14 18:38:04' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.7ms)
Completed in 122ms (View: 115, DB: 2) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:35) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:35', "perishable_token" = 'fLGKjYehr56fEJKvcTS0', "last_request_at" = '2010-09-14 18:38:35' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 127ms (DB: 0) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:35', "perishable_token" = 'VfLvrAEVnRlPE6NVFO', "last_request_at" = '2010-09-14 18:38:35' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.6ms)
Completed in 110ms (View: 104, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:37) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:37', "perishable_token" = 'nXElfJccutXF7H5mBN', "last_request_at" = '2010-09-14 18:38:37' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 83ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:37) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (1.0ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:37', "perishable_token" = 'Qih5O13VaChHe61nMhr', "last_request_at" = '2010-09-14 18:38:37' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.4ms)
Completed in 124ms (View: 117, DB: 2) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:39) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:39', "perishable_token" = 'AqEW171H7xr70FoM12', "last_request_at" = '2010-09-14 18:38:39' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 86ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:40) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (6.0ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:40', "perishable_token" = '9L2RNDQ1338FQNDStaJo', "last_request_at" = '2010-09-14 18:38:40' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.9ms)
Completed in 113ms (View: 102, DB: 7) | 200 OK [http://localhost/posts]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:40:05) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:40:05', "perishable_token" = 'hQZZvQDmtyPKTnHzdcha', "last_request_at" = '2010-09-14 18:40:05' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 136ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:40:05) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.4ms)
Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:40:07) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered user_sessions/_new (4.2ms)
Completed in 19ms (View: 10, DB: 0) | 200 OK [http://localhost/login]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:40:15) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 16, "updated_at" = '2010-09-14 18:40:15', "perishable_token" = 'FiHPugGPP6j5LQOtBTRp', "last_request_at" = '2010-09-14 18:40:15', "last_login_at" = '2010-09-14 18:38:03', "current_login_at" = '2010-09-14 18:40:15' WHERE "id" = 2[0m
ActionView::MissingTemplate (Missing template user_sessions/create.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:44:20) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:44:20', "perishable_token" = 'fWbQsvtHxuPg31wIHXF8', "last_request_at" = '2010-09-14 18:44:20' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 124ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:44:20) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (1.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:44:20', "perishable_token" = 'HtFdWz3CIgv4JIw4hN0', "last_request_at" = '2010-09-14 18:44:20' WHERE "id" = 2[0m
Rendered user_sessions/_new (7.8ms)
Completed in 131ms (View: 123, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:45:46) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:45:46', "perishable_token" = 'aWAhnhj8zhVGOmtpiol', "last_request_at" = '2010-09-14 18:45:46' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.5ms)
Rendered user_sessions/_new (5.8ms)
Completed in 149ms (View: 16, DB: 0) | 200 OK [http://localhost/posts/new]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:45:49) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:45:49', "perishable_token" = 'rBpfE7Yx7GvKrgqXv30C', "last_request_at" = '2010-09-14 18:45:49' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 192ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:45:50) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.9ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Rendered user_sessions/_new (3.7ms)
Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:45:53) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:45:53) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Rendered user_sessions/_new (4.4ms)
Completed in 21ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:48:31) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 85ms (View: 11, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:48:52) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 21ms (View: 9, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:49:24) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:51:18) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.4ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "login_count" = 17, "updated_at" = '2010-09-14 18:51:18', "perishable_token" = 'DFPM9T5bUsIrElVme2Q', "last_request_at" = '2010-09-14 18:51:18', "last_login_at" = '2010-09-14 18:40:15', "current_login_at" = '2010-09-14 18:51:18' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts/new
Completed in 179ms (DB: 1) | 302 Found [http://localhost/user_session]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:51:18) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:18', "perishable_token" = 'pYHdoR0sFVNMwdAZstg', "last_request_at" = '2010-09-14 18:51:18' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.7ms)
Completed in 131ms (View: 9, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:26) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:26', "perishable_token" = 'c1I9spBSbri0WSqhFObA', "last_request_at" = '2010-09-14 18:51:26' WHERE "id" = 2[0m
Completed in 114ms (View: 109, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 15:51:29) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (13.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:29', "perishable_token" = 'Wk47kkI0Ix3zj3ZWRRX5', "last_request_at" = '2010-09-14 18:51:29' WHERE "id" = 2[0m
Completed in 179ms (View: 156, DB: 14) | 200 OK [http://localhost/posts/3]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:51:32) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:32', "perishable_token" = 'dYC0qWxcq114NXP2f115', "last_request_at" = '2010-09-14 18:51:32' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 106ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:32) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (4.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:32', "perishable_token" = 'dY2XqofWUGXWqQaupelH', "last_request_at" = '2010-09-14 18:51:32' WHERE "id" = 2[0m
Completed in 110ms (View: 101, DB: 5) | 200 OK [http://localhost/posts]
Processing UsersController#new (for 127.0.0.1 at 2010-09-14 15:51:35) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:35', "perishable_token" = 'y84YjGslE5nm2H2xT5cM', "last_request_at" = '2010-09-14 18:51:35' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 106ms (DB: 1) | 302 Found [http://localhost/signup]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:35) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (1.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
[4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:35', "perishable_token" = 'qDHsDN6aWNJix8QPP7D', "last_request_at" = '2010-09-14 18:51:35' WHERE "id" = 2[0m
Completed in 182ms (View: 174, DB: 2) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:51:37) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:37', "perishable_token" = 'UFxXfdGTBJ5m8sksC7V', "last_request_at" = '2010-09-14 18:51:37' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.9ms)
Completed in 111ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:52:59) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:52:59', "perishable_token" = 'mQuVCA6Vmwz4hszkb4', "last_request_at" = '2010-09-14 18:52:59' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.4ms)
ActionView::TemplateError (undefined local variable or method `loguot_path' for #<ActionView::Base:0xb6d205bc>) on line #22 of app/views/layouts/application.html.erb:
19: <% if current_user %>
20: <div id="user">
21: <%= 'Welcome ' + current_user.full_name %> <br/>
22: <%= link_to 'Loguot', loguot_path %>
23: </div>
24: <% end %>
25: </div>
app/views/layouts/application.html.erb:22
Rendered rescues/_trace (114.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:53:53) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:53:53', "perishable_token" = 'ALfghobuQvIVQ9ATvZI', "last_request_at" = '2010-09-14 18:53:53' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.6ms)
Completed in 158ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/new]
Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:54:02) [DELETE]
Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:54:02', "perishable_token" = 'VHQdRw4NJdAabxz5VhN', "last_request_at" = '2010-09-14 18:54:02' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Completed in 111ms (DB: 1) | 302 Found [http://localhost/logout]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:54:02) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:55:10) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 12ms (DB: 0) | 302 Found [http://localhost/posts/new]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:10) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 18ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:55:12) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 15:55:13) [GET]
Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 20ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/3]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 69ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 19ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 77ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:16) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 11ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:16) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:16) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
Redirected to http://localhost:3000/user_session/new
Filter chain halted as [:require_user] rendered_or_redirected.
Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:16) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/application
Rendering user_sessions/new
Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 16:23:36) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 83ms (View: 78, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:30:44) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 18ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 16:30:46) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:31:38) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 17ms (View: 6, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PasswordResetsController#new (for 127.0.0.1 at 2010-09-14 16:31:40) [GET]
+ Parameters: {"action"=>"new", "controller"=>"password_resets"}
+Rendering template within layouts/application
+Rendering password_resets/new
+Completed in 19ms (View: 7, DB: 0) | 200 OK [http://localhost/password_resets/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 16:31:43) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 17ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PasswordResetsController#new (for 127.0.0.1 at 2010-09-14 16:31:44) [GET]
+ Parameters: {"action"=>"new", "controller"=>"password_resets"}
+Rendering template within layouts/application
+Rendering password_resets/new
+Completed in 13ms (View: 3, DB: 0) | 200 OK [http://localhost/password_resets/new]
diff --git a/test/functional/password_resets_controller_test.rb b/test/functional/password_resets_controller_test.rb
new file mode 100644
index 0000000..817ec61
--- /dev/null
+++ b/test/functional/password_resets_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class PasswordResetsControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/helpers/password_resets_helper_test.rb b/test/unit/helpers/password_resets_helper_test.rb
new file mode 100644
index 0000000..1a5257c
--- /dev/null
+++ b/test/unit/helpers/password_resets_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class PasswordResetsHelperTest < ActionView::TestCase
+end
|
pablodv/blogajax
|
2432eab2b87327600c58b9ba901af4bb3449d8e9
|
Correcion
|
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 0700838..25cfd3f 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,49 +1,49 @@
<p>
<b>Login:</b>
<%=h @user.login %>
</p>
<p>
<b>Login count:</b>
<%=h @user.login_count %>
</p>
-<p>
- <b>State:</b>
- <%=h @user.state %>
-</p>
+<%#*<p>%>
+ <%#*<b>State:</b>%>
+ <%#=h @user.state %>
+<%#*</p>%>
-<p>
- <b>Country:</b>
- <%=h @user.country %>
-</p>
+<%#*<p>%>
+ <%#*<b>Country:</b>%>
+ <%#=h @user.country %>
+<%#*</p>%>
<%#*<p>%>
<%#*<b>Last request at:</b>%>
<%#=h @user.last_request_at %>
<%#*</p>%>
<p>
<b>Last login at:</b>
<%=h @user.last_login_at %>
</p>
<p>
<b>Current login at:</b>
<%=h @user.current_login_at %>
</p>
<%#*<p>%>
<%#*<b>Last login ip:</b>%>
<%#=h @user.last_login_ip %>
<%#*</p>%>
<%#*<p>%>
<%#*<b>Current login ip:</b>%>
<%#=h @user.current_login_ip %>
<%#*</p>%>
<%= link_to 'Edit', edit_account_path %><br/><br/>
<%= link_to 'Change Password', :controller => "password_resets" %><br/><br/>
<%= link_to 'Go to Holiday Reminder', admin_clients_path %>
\ No newline at end of file
|
pablodv/blogajax
|
238f0d6e3804dbcf058fe26c92e2a393fb77465b
|
add active by users
|
diff --git a/db/migrate/20100914191104_acitve_by_users.rb b/db/migrate/20100914191104_acitve_by_users.rb
new file mode 100644
index 0000000..61bd111
--- /dev/null
+++ b/db/migrate/20100914191104_acitve_by_users.rb
@@ -0,0 +1,9 @@
+class AcitveByUsers < ActiveRecord::Migration
+ def self.up
+ add_column :users, :active, :boolean, :default => false
+ end
+
+ def self.down
+ remove_column :users, :active
+ end
+end
|
pablodv/blogajax
|
8e1b9dd465a1eb5edc1056b2435f25ef7260bada
|
Correccion migration
|
diff --git a/db/migrate/20100914133546_create_user.rb b/db/migrate/20100914133546_create_user.rb
index 4e5ef91..b533d18 100644
--- a/db/migrate/20100914133546_create_user.rb
+++ b/db/migrate/20100914133546_create_user.rb
@@ -1,44 +1,44 @@
class CreateUser < ActiveRecord::Migration
def self.up
- add_column :users, :full_name, :string
- add_column :users, :login, :string
- add_column :users, :email, :string
- add_column :users, :crypted_password, :string
- add_column :users, :password_salt, :string
- add_column :users, :persistence_token, :string
- add_column :users, :single_access_token, :string
- add_column :users, :perishable_token, :string
- add_column :users, :login_count, :integer, :default => 0
- add_column :users, :failed_login_count, :integer, :default => 0
- add_column :users, :last_request_at, :datetime
- add_column :users, :current_login_at, :datetime
- add_column :users, :last_login_at, :datetime
- add_column :users, :current_login_ip, :string
- add_column :users, :last_login_ip, :string
- add_column :users, :active, :boolean, :default => false
-
+# add_column :users, :full_name, :string
+# add_column :users, :login, :string
+# add_column :users, :email, :string
+# add_column :users, :crypted_password, :string
+# add_column :users, :password_salt, :string
+# add_column :users, :persistence_token, :string
+# add_column :users, :single_access_token, :string
+# add_column :users, :perishable_token, :string
+# add_column :users, :login_count, :integer, :default => 0
+# add_column :users, :failed_login_count, :integer, :default => 0
+# add_column :users, :last_request_at, :datetime
+# add_column :users, :current_login_at, :datetime
+# add_column :users, :last_login_at, :datetime
+# add_column :users, :current_login_ip, :string
+# add_column :users, :last_login_ip, :string
+# add_column :users, :active, :boolean, :default => false
+#
add_index :users, :perishable_token
add_index :users, :email
end
def self.down
- remove_column :users, :full_name
- remove_column :users, :login
- remove_column :users, :email
- remove_column :users, :crypted_password
- remove_column :users, :password_salt
- remove_column :users, :persistence_token
- remove_column :users, :single_access_token
- remove_column :users, :perishable_token
- remove_column :users, :login_count
- remove_column :users, :failed_login_count
- remove_column :users, :last_request_at
- remove_column :users, :current_login_at
- remove_column :users, :last_login_at
- remove_column :users, :current_login_ip
- remove_column :users, :last_login_ip
- remove_column :users, :active
+# remove_column :users, :full_name
+# remove_column :users, :login
+# remove_column :users, :email
+# remove_column :users, :crypted_password
+# remove_column :users, :password_salt
+# remove_column :users, :persistence_token
+# remove_column :users, :single_access_token
+# remove_column :users, :perishable_token
+# remove_column :users, :login_count
+# remove_column :users, :failed_login_count
+# remove_column :users, :last_request_at
+# remove_column :users, :current_login_at
+# remove_column :users, :last_login_at
+# remove_column :users, :current_login_ip
+# remove_column :users, :last_login_ip
+# remove_column :users, :active
end
end
|
pablodv/blogajax
|
6fa84af20fbf139c0c6877a2f929a19495d6b161
|
Version Final
|
diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user_sessions_controller.rb
index 5328d29..55bde79 100644
--- a/app/controllers/user_sessions_controller.rb
+++ b/app/controllers/user_sessions_controller.rb
@@ -1,26 +1,34 @@
class UserSessionsController < ApplicationController
before_filter :require_no_user, :only => [:new, :create]
before_filter :require_user, :only => :destroy
def new
@user_session = UserSession.new
end
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
flash[:notice] = "Login successful!"
- redirect_to posts_path #redirect_back_or_default admin_clients_path
+ unless request.xhr?
+ redirect_back_or_default posts_path
+ else
+# render :update do |page|
+# page.replace_html 'posts', :partial => 'comment'
+# page[:user_sessions_new].clear
+# page["comment_#commentsp"].visual_effect :highlight, :duration => 3.5
+# end
+ end
else
render :action => :new
end
end
def destroy
current_user_session.destroy
flash[:notice] = "Logout successful!"
- redirect_back_or_default login_path
+ redirect_to posts_path
end
end
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index c999191..baea43d 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,85 +1,88 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
<title>Ruby on Rails 2010</title>
</head>
<body>
<div class="main">
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+ <% if current_user %>
+ <div id="user">
+ <%= 'Welcome ' + current_user.full_name %> <br/>
+ <%= link_to 'Loguot', logout_path, :method => :delete, :confirm => "Are you sure you want to logout?" %>
+ </div>
+ <% end %>
</div>
<div class="link_menu">
<%= link_to 'Home', :controller => 'posts', :action => 'index' %>
<%= link_to 'Login', login_path %>
<%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
-
- <div class="link_projects">
-
+
+ <div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
- <a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
-
+ <a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
-
</div>
<div class="link_updates">
- <%#= render :partial => 'user_sessions/new' %>
+
<div class="lbl">update </div>
<a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>
<a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>
<a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>
<a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>
<a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>
<a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>
<a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>
<a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
<div class="left">© <a href="index.html">Website</a> 2009.</div>
<div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
diff --git a/app/views/user_sessions/_new.html.erb b/app/views/user_sessions/_new.html.erb
index 28c85ec..9b6b074 100644
--- a/app/views/user_sessions/_new.html.erb
+++ b/app/views/user_sessions/_new.html.erb
@@ -1,21 +1,24 @@
-<h1>Login</h1>
-<br />
-<% form_for @user_session, :url => user_session_path do |f| %>
+<%#*<h1>Login</h1>%>
+<%#*<br />%>
+<div id="login">
+<% form_remote_for :user_session, @user_session, :url => user_session_path(@user_session) do |f| %>
<%= f.error_messages %>
<%= f.label :login %><br />
- <%= f.text_field :login %><br />
+ <%= f.text_field :login, :class => 'text' %><br />
<br />
<%= f.label :password %><br />
- <%= f.password_field :password %><br />
+ <%= f.password_field :password, :class => 'text' %><br />
<br />
<%= f.check_box :remember_me %><%= f.label :remember_me %><br />
<br />
<%= f.submit "Login" %>
<% end %>
-<br/>
+
+ <%= link_to 'Loguot', logout_path, :method => :delete,
+ :confirm => "Are you sure you want to logout?"%><br/>
<%= link_to 'Signup', signup_path %> <br/>
<%= link_to 'Forgot Password', :controller => "password_resets",
:action => "new"%> <br/>
- <br />
+</div>
\ No newline at end of file
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index 666db99..818b162 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index d13ac8a..d50c5a9 100644
--- a/log/development.log
+++ b/log/development.log
@@ -6412,512 +6412,3325 @@ Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 11:30:51)
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:30:51', "perishable_token" = '6hS3EkXY1rG5jx8OrSt', "last_request_at" = '2010-09-14 14:30:51' WHERE "id" = 2[0m
NameError (undefined local variable or method `admin_clients_path' for #<UserSessionsController:0xb6d90358>):
app/controllers/application_controller.rb:33:in `require_no_user'
Rendered rescues/_trace (96.6ms)
Rendered rescues/_request_and_response (1.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:31:41) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 25ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:31:43) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (2.3ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 76ms (View: 67, DB: 1) | 200 OK [http://localhost/posts/2]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:31:45) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:31:45', "perishable_token" = 'pSrD1yEzIWXXmEvqSQ', "last_request_at" = '2010-09-14 14:31:45' WHERE "id" = 2[0m
NameError (undefined local variable or method `admin_clients_path' for #<UserSessionsController:0xb6ee33a4>):
app/controllers/application_controller.rb:33:in `require_no_user'
Rendered rescues/_trace (39.0ms)
Rendered rescues/_request_and_response (1.1ms)
Rendering rescues/layout (internal_server_error)
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:32:43) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:32:43', "perishable_token" = 'PwLjUIWn6gizSrZNk861', "last_request_at" = '2010-09-14 14:32:43' WHERE "id" = 2[0m
ActionController::RoutingError (post_url failed to generate from {:controller=>"posts", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["posts", :id] - are they all satisfied?):
(eval):17:in `post_path'
app/controllers/application_controller.rb:33:in `require_no_user'
Rendering rescues/layout (not_found)
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:32:56) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:32:56', "perishable_token" = 'aik3m06Ov2O95ga2g3', "last_request_at" = '2010-09-14 14:32:56' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 98ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:32:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:33:28) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:28', "perishable_token" = 'l44YKUb52OTdcSuIkIsm', "last_request_at" = '2010-09-14 14:33:28' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.8ms)
Completed in 111ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:33:31) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:33:33) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.6ms)
Completed in 72ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:33:40) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:40', "perishable_token" = 'ohUeEQAzqwlFQF1r20p', "last_request_at" = '2010-09-14 14:33:40' WHERE "id" = 2[0m
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 14:33:40', '2010-09-14 14:33:40', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
Rendered comments/_comment (1.7ms)
Completed in 194ms (View: 4, DB: 1) | 200 OK [http://localhost/posts/2/comments]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:33:59) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:59', "perishable_token" = 'we1Tuiq2AhlJsVqHlsBy', "last_request_at" = '2010-09-14 14:33:59' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.3ms)
Completed in 112ms (View: 5, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:37:16) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:37:16', "perishable_token" = 'RdSbcsX7NcFMH9SCIp3t', "last_request_at" = '2010-09-14 14:37:16' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (3.4ms)
Completed in 137ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#create (for 127.0.0.1 at 2010-09-14 11:38:01) [POST]
Parameters: {"commit"=>"Create", "post"=>{"body"=>"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.", "title"=>"post de prueba"}, "action"=>"create", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:38:01', "perishable_token" = 'gReG8TGGCOGIUNUpz20D', "last_request_at" = '2010-09-14 14:38:01' WHERE "id" = 2[0m
[4;35;1mPost Create (0.4ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at") VALUES('2010-09-14 14:38:01', 'post de prueba', 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don''t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn''t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.', 'Pablo Moreira Mora', '2010-09-14 14:38:01')[0m
Redirected to http://localhost:3000/posts
Completed in 173ms (DB: 1) | 302 Found [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:38:01) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:38:37) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
[4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
Migrating to CreatePosts (20100913141458)
Migrating to CreateComments (20100913141627)
Migrating to AddAuthorPost (20100913142339)
Migrating to CreateNotifiers (20100914125209)
Migrating to CreateUserSessions (20100914125225)
Migrating to CreateUser (20100914133546)
Migrating to PasswordByUser (20100914141313)
Migrating to AuthorByComment (20100914143933)
[4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
[4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "comments" ADD "author" varchar(255)[0m
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914143933')[0m
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("users")[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:45:42) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:46:54) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.5ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:46:54', "perishable_token" = 'WjJABqdJ96ziVlQCclXQ', "last_request_at" = '2010-09-14 14:46:54' WHERE "id" = 2[0m
Rendered comments/_comment (125.8ms)
Rendered comments/_comment (1.3ms)
Rendered comments/_comment (1.2ms)
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (1.5ms)
Rendered comments/_comment (1.1ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Completed in 154ms (View: 145, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:03) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:03', "perishable_token" = '6D4fjAgNoxhK032uZ4', "last_request_at" = '2010-09-14 14:47:03' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (91.8ms)
Rendered rescues/_request_and_response (0.4ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = 'pI5b9zQi099qYWWi3x9S', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (34.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = '8FAYopIOyORX7INESll5', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (102.2ms)
Rendered rescues/_request_and_response (0.4ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = 'jgJYDCNvdO3MDHDBIFF', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (35.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:06) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:06', "perishable_token" = 'X9ajhpACm7V2YXXosQu', "last_request_at" = '2010-09-14 14:47:06' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (101.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:06) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:06', "perishable_token" = 'HaEMKHgXOuuWRSG4weQy', "last_request_at" = '2010-09-14 14:47:06' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (34.0ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:10) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:10', "perishable_token" = 'z1LK37l4XkYSH6ns8Lt', "last_request_at" = '2010-09-14 14:47:10' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (91.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:49:04) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (2.2ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.7ms)
Completed in 25ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:49:54) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:50:00) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (40.4ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:00', "perishable_token" = 'h3lQUzgnQsAjuzVlHoLf', "last_request_at" = '2010-09-14 14:50:00' WHERE "id" = 2[0m
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "author", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 14:50:00', 'Pablo Moreira Mora', '2010-09-14 14:50:00', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
Rendered comments/_comment (2.1ms)
Completed in 249ms (View: 4, DB: 41) | 200 OK [http://localhost/posts/2/comments]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:50:08) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:08', "perishable_token" = '3pAn3egxgIfGJzhEIWW', "last_request_at" = '2010-09-14 14:50:08' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.5ms)
Completed in 108ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/new]
Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:50:10) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:10', "perishable_token" = 'mmPsutb6kqp4059d1OPC', "last_request_at" = '2010-09-14 14:50:10' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 101ms (DB: 0) | 302 Found [http://localhost/signup]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:10) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (3.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 13ms (View: 5, DB: 3) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:50:12) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:12', "perishable_token" = 'YxRY2Nwa9WVWM2VBsk60', "last_request_at" = '2010-09-14 14:50:12' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 106ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:12) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 68ms (View: 6, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:13) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:50:14) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:14', "perishable_token" = 'UmDnfSYVognxPEXD35O', "last_request_at" = '2010-09-14 14:50:14' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 98ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:14) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (2.3ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 13ms (View: 6, DB: 2) | 200 OK [http://localhost/posts]
Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:50:19) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:19', "perishable_token" = 'egR2xG6N4qo7yxq9bnnA', "last_request_at" = '2010-09-14 14:50:19' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 101ms (DB: 1) | 302 Found [http://localhost/signup]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:19) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (4.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 14ms (View: 5, DB: 5) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:50:21) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:21', "perishable_token" = 'KxJfxY8HmOpmZuxc8eu', "last_request_at" = '2010-09-14 14:50:21' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.9ms)
Completed in 103ms (View: 6, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:23) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:02:20) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 17ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:08:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 12:09:37) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:09:37', "perishable_token" = 'GsDceXUlo5VlMxwDzofC', "last_request_at" = '2010-09-14 15:09:37' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (3.7ms)
+Completed in 139ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:12:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (57.2ms)
+Rendered rescues/_request_and_response (1.0ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:13:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (116.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 12:14:00) [GET]
+
+ActionController::RoutingError (No route matches "/articles" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:14:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (56.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:14:15) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (53.6ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:17:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.9ms)
+Completed in 17ms (View: 12, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:17:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.2ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:18:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.4ms)
+Completed in 18ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:18:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.7ms)
+Completed in 13ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:18:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.2ms)
+Completed in 66ms (View: 62, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:18:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.1ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.5ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:18:59) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 15:18:59', "perishable_token" = 'rWfc2SF3PuNwmqW7tsA', "last_request_at" = '2010-09-14 15:18:59' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 117ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:18:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (2.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.8ms)
+Completed in 18ms (View: 11, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 12:19:02) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:19:07) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:19:07', "perishable_token" = 'NhfadlHKGAeQF9d8vVfN', "last_request_at" = '2010-09-14 15:19:07' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 113ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:19:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.7ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:19:12) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 15:19:12', "perishable_token" = 'x37IMA2F8V9SCwDegyI', "last_request_at" = '2010-09-14 15:19:12' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 105ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:19:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.2ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.9ms)
+Completed in 16ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:19:14) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:19:14', "perishable_token" = 'YCagdcWOZPwsSLyN6vO', "last_request_at" = '2010-09-14 15:19:14' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 104ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:19:14) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.0ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.6ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:19:16) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.5ms)
+Completed in 14ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:19:17) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;35;1mUser Load (1.0ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:19:17', "perishable_token" = 'dD3OtWnlBChJKIdbguOp', "last_request_at" = '2010-09-14 15:19:17' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 105ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:19:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.3ms)
+Completed in 14ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:22:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.8ms)
+Completed in 13ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:22:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.2ms)
+Completed in 20ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:23:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.7ms)
+Completed in 17ms (View: 12, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:24:02) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.8ms)
+Completed in 13ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:25:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.8ms)
+Completed in 14ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:26:19) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.1ms)
+Completed in 15ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:26:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.2ms)
+Completed in 18ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:27:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.0ms)
+Completed in 17ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:27:36) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.9ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.3ms)
+Completed in 61ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:27:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.0ms)
+Completed in 14ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:29:22) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.7ms)
+Completed in 17ms (View: 12, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:29:23) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.0ms)
+Completed in 14ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:29:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.1ms)
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:30:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.9ms)
+Completed in 14ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 12:30:17) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:30:21) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.4ms)
+Completed in 19ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:30:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.5ms)
+Completed in 64ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:30:58) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.0ms)
+Completed in 14ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:30:59) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.5ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:31:35) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (3.3ms)
+Completed in 19ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:31:36) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.6ms)
+Completed in 18ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:32:00) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (3.5ms)
+Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:32:01) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.4ms)
+Completed in 15ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:32:02) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.4ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:32:02) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.7ms)
+Completed in 24ms (View: 14, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:33:15) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (3.3ms)
+Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:33:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.9ms)
+Completed in 13ms (View: 9, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:33:22) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.6ms)
+Completed in 15ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:34:14) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (2.5ms)
+Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:36:23) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (4.5ms)
+Completed in 20ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:36:57) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (4.6ms)
+Completed in 25ms (View: 16, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:37:13) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;35;1mPost Load (9.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered user_sessions/_new (4.6ms)
+Completed in 68ms (View: 14, DB: 10) | 200 OK [http://localhost/posts/3]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:37:16) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:37:16', "perishable_token" = 'V4sZNPQdllKQD7Ph3H3K', "last_request_at" = '2010-09-14 15:37:16' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/signup
+Completed in 118ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:37:16) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (3.6ms)
+Rendered user_sessions/_new (3.6ms)
+Completed in 31ms (View: 20, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 12:37:25) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 12:37:28) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (3.1ms)
+Rendered user_sessions/_new (3.6ms)
+Completed in 80ms (View: 13, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:37:32) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 11ms (DB: 0) | 302 Found [http://localhost/logout]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 12:37:32) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.5ms)
+Completed in 25ms (View: 14, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 12:38:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.3ms)
+Completed in 19ms (View: 9, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6cd3474> (for 127.0.0.1 at 2010-09-14 12:39:05) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6cd3474>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 2, "updated_at" = '2010-09-14 15:39:05', "perishable_token" = 'L3ZITkHVzW872ciyjj', "last_request_at" = '2010-09-14 15:39:05', "last_login_at" = '2010-09-14 14:29:12', "last_login_ip" = '127.0.0.1', "current_login_at" = '2010-09-14 15:39:05' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 192ms (DB: 1) | 302 Found [http://localhost/user_session.%23%3Cusersession:0xb6cd3474%3E]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:39:05) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (5.3ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.0ms)
+Completed in 21ms (View: 11, DB: 5) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6cd3474> (for 127.0.0.1 at 2010-09-14 12:39:08) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6cd3474>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 15:39:08', "perishable_token" = 'lQwHLCCSCh9vGJeACVnx', "last_request_at" = '2010-09-14 15:39:08' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 96ms (DB: 1) | 302 Found [http://localhost/user_session.%23%3Cusersession:0xb6cd3474%3E]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:39:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.2ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6cd3474> (for 127.0.0.1 at 2010-09-14 12:39:09) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6cd3474>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:39:09', "perishable_token" = 'olfXQYoaN8EEUrSXXj03', "last_request_at" = '2010-09-14 15:39:09' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 88ms (DB: 0) | 302 Found [http://localhost/user_session.%23%3Cusersession:0xb6cd3474%3E]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:39:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.0ms)
+Completed in 15ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:39:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.9ms)
+Completed in 15ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 12:39:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:39:52', "perishable_token" = 'u7hKhBi9MuaX7Qtk6pav', "last_request_at" = '2010-09-14 15:39:52' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.8ms)
+Rendered user_sessions/_new (3.6ms)
+Completed in 152ms (View: 21, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:39:59) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (7.8ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:39:59', "perishable_token" = '0B8VebncxJW5kz7apPT', "last_request_at" = '2010-09-14 15:39:59' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 124ms (DB: 8) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:39:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (4.2ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.2ms)
+Completed in 19ms (View: 11, DB: 4) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:41:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.7ms)
+Completed in 14ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:42:09) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.4ms)
+Completed in 17ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:42:18) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 12ms (DB: 0) | 302 Found [http://localhost/logout]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 12:42:18) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.4ms)
+Completed in 20ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6cad88c> (for 127.0.0.1 at 2010-09-14 12:42:55) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6cad88c>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 3, "updated_at" = '2010-09-14 15:42:55', "perishable_token" = 'bOzahh91WVCOv5Hz4UK', "last_request_at" = '2010-09-14 15:42:55', "last_login_at" = '2010-09-14 15:39:05', "current_login_at" = '2010-09-14 15:42:55' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 118ms (DB: 1) | 302 Found [http://localhost/user_session.%23%3Cusersession:0xb6cad88c%3E]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:42:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (6.3ms)
+Completed in 20ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 12:43:01) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:43:01', "perishable_token" = 'SQkOhgtQw5O8QGf01hIg', "last_request_at" = '2010-09-14 15:43:01' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (2.6ms)
+Rendered user_sessions/_new (4.5ms)
+Completed in 135ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:43:04) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:43:04', "perishable_token" = 'XUkdnNXw5JCCT22Lp6yI', "last_request_at" = '2010-09-14 15:43:04' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 123ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:43:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.0ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 12:43:05) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 12ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 12:43:05) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.5ms)
+Completed in 24ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:43:27) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 11ms (DB: 0) | 302 Found [http://localhost/logout]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 12:43:27) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.4ms)
+Completed in 21ms (View: 11, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6c77480> (for 127.0.0.1 at 2010-09-14 12:43:33) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6c77480>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 4, "updated_at" = '2010-09-14 15:43:33', "perishable_token" = 'E33EKl2MO5PUPWK8S', "last_request_at" = '2010-09-14 15:43:33', "last_login_at" = '2010-09-14 15:42:55', "current_login_at" = '2010-09-14 15:43:33' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 179ms (DB: 1) | 302 Found [http://localhost/user_session.%23%3Cusersession:0xb6c77480%3E]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:43:33) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.9ms)
+Completed in 19ms (View: 12, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6c77480> (for 127.0.0.1 at 2010-09-14 12:52:10) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6c77480>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 15:52:10', "perishable_token" = 'cPzhVlkoH7WxmPXY3nO', "last_request_at" = '2010-09-14 15:52:10' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 111ms (DB: 1) | 302 Found [http://localhost/user_session.%23%3Cusersession:0xb6c77480%3E]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:52:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.7ms)
+Completed in 15ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 12:52:12) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 15:52:12', "perishable_token" = 'xgA9lpxgnqM7SX9SCymt', "last_request_at" = '2010-09-14 15:52:12' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 124ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:52:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.0ms)
+Completed in 15ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 12:52:20) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 5, "updated_at" = '2010-09-14 15:52:20', "perishable_token" = '3MLRWDyH42k67Z8NfHhi', "last_request_at" = '2010-09-14 15:52:20', "last_login_at" = '2010-09-14 15:43:33', "current_login_at" = '2010-09-14 15:52:20' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts?actions=index
+Completed in 98ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 12:52:20) [GET]
+ Parameters: {"actions"=>"index", "action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.1ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts?actions=index]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:00:24) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 16:00:24', "perishable_token" = 'VPdc2hVFRxPCWDfo4PlY', "last_request_at" = '2010-09-14 16:00:24' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 115ms (DB: 0) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:00:24) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.7ms)
+Completed in 17ms (View: 12, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:00:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.6ms)
+Completed in 76ms (View: 71, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:00:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.5ms)
+Completed in 17ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:00:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.1ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:00:51) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.1ms)
+Completed in 15ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:00:56) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 16:00:56', "perishable_token" = 'wQIz8jQXa6X79aLiyALt', "last_request_at" = '2010-09-14 16:00:56' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 102ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:00:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (6.2ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.5ms)
+Completed in 24ms (View: 12, DB: 6) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:03:20) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (4.7ms)
+Completed in 36ms (View: 26, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:03:26) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 16:03:26', "perishable_token" = 'YlAj0bJay50ZC8LG4', "last_request_at" = '2010-09-14 16:03:26' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 123ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:03:27) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.2ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.2ms)
+Completed in 17ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 13:03:39) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 16:03:39', "perishable_token" = 'bg0LYLcT4XTKB5mZq9', "last_request_at" = '2010-09-14 16:03:39' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 105ms (DB: 0) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:03:39) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.1ms)
+Completed in 15ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 13:03:41) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 16:03:41', "perishable_token" = 'QaQRUWxuVCNLmLc461sG', "last_request_at" = '2010-09-14 16:03:41' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 114ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:03:42) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.2ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 13:03:45) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 16:03:45', "perishable_token" = 'Jj88ubZ8iRth7SFE1ytZ', "last_request_at" = '2010-09-14 16:03:45' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 125ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:03:45) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.2ms)
+Completed in 18ms (View: 11, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 13:03:47) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.1ms)
+Completed in 22ms (View: 13, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:03:53) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 6, "updated_at" = '2010-09-14 16:03:54', "perishable_token" = 'FP6fmc6kHqiLNA8iu5bJ', "last_request_at" = '2010-09-14 16:03:54', "last_login_at" = '2010-09-14 15:52:20', "current_login_at" = '2010-09-14 16:03:54' WHERE "id" = 2[0m
+
+ActionView::MissingTemplate (Missing template user_sessions/_comment.erb in view path app/views):
+ app/controllers/user_sessions_controller.rb:18:in `create'
+ app/controllers/user_sessions_controller.rb:17:in `create'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:05:13) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 16:05:13', "perishable_token" = '9vai2qDObvraUHplKR', "last_request_at" = '2010-09-14 16:05:13' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 128ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:05:13) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.5ms)
+Completed in 17ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 13:05:17) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 16:05:17', "perishable_token" = '1xvqpOp8oMiebEQ3xAGH', "last_request_at" = '2010-09-14 16:05:17' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 106ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:05:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.1ms)
+Completed in 16ms (View: 11, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 13:05:18) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.1ms)
+Completed in 20ms (View: 9, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:05:25) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.4ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 7, "updated_at" = '2010-09-14 16:05:25', "perishable_token" = 'FmQiRw9IOaow47Luj8I', "last_request_at" = '2010-09-14 16:05:25', "last_login_at" = '2010-09-14 16:03:54', "current_login_at" = '2010-09-14 16:05:25' WHERE "id" = 2[0m
+
+ActionView::MissingTemplate (Missing template user_sessions/_comment.erb in view path app/views):
+ app/controllers/user_sessions_controller.rb:18:in `create'
+ app/controllers/user_sessions_controller.rb:17:in `create'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 13:06:08) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 16:06:08', "perishable_token" = 'e2GG6yvrlcI1FrjbsZTh', "last_request_at" = '2010-09-14 16:06:08' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.7ms)
+Rendered user_sessions/_new (3.3ms)
+Completed in 127ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 13:06:12) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 16:06:12', "perishable_token" = 'iJvku8sKKJdLHNzSAgI', "last_request_at" = '2010-09-14 16:06:12' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 125ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 13:06:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (6.5ms)
+Completed in 17ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 13:06:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.5ms)
+Completed in 24ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 13:06:36) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.1ms)
+Completed in 20ms (View: 10, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 13:06:41) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 8, "updated_at" = '2010-09-14 16:06:41', "perishable_token" = 'HF1QC4tCJuoJXgF8QH', "last_request_at" = '2010-09-14 16:06:41', "last_login_at" = '2010-09-14 16:05:25', "current_login_at" = '2010-09-14 16:06:41' WHERE "id" = 2[0m
+Completed in 158ms (View: 1, DB: 1) | 200 OK [http://localhost/user_session]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 14:48:54) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 17:48:54', "perishable_token" = 'h37XC2NJyp7MGHM1Y7dY', "last_request_at" = '2010-09-14 17:48:54' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 121ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:48:54) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:48:54', "perishable_token" = 'LRHeHG5Fco7XGlp0eTX', "last_request_at" = '2010-09-14 17:48:54' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.8ms)
+Completed in 131ms (View: 125, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:49:25) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.9ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 17:49:25', "perishable_token" = 'qDbVduJ4Xettx5f864SK', "last_request_at" = '2010-09-14 17:49:25' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.8ms)
+Completed in 146ms (View: 141, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 14:50:03) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 17:50:03', "perishable_token" = '0V0MUCURkCKJpR3T73Kv', "last_request_at" = '2010-09-14 17:50:03' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 176ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:50:03) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: Welcome <%= current_user.full_name %>
+20: </div>
+21:
+22: <div class="link_menu">
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (44.4ms)
+Rendered rescues/_request_and_response (1.1ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:51:22) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (44.6ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:51:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (118.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:06) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (45.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (115.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (44.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:52:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != nil %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (120.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:44) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:45) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (44.0ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (112.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (112.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (47.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (123.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:46) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (45.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (119.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (44.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (2.2ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (115.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (113.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.8ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (44.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (117.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.4ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:48) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.9ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (113.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:53:49) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `full_name' for nil:NilClass) on line #19 of app/views/layouts/application.html.erb:
+16:
+17: <div class="header">
+18: <h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
+19: <% if current_user.full_name != '' %>
+20: <%='Welcome' + current_user.full_name %>
+21: <% end %>
+22: </div>
+
+ app/views/layouts/application.html.erb:19
+
+Rendered rescues/_trace (43.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:54:01) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.7ms)
+Completed in 31ms (View: 25, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 14:55:19) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 9, "updated_at" = '2010-09-14 17:55:19', "perishable_token" = 'c2pNsKSDx4nXM89eqmo', "last_request_at" = '2010-09-14 17:55:19', "last_login_at" = '2010-09-14 16:06:41', "current_login_at" = '2010-09-14 17:55:19' WHERE "id" = 2[0m
+Completed in 119ms (View: 1, DB: 1) | 200 OK [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:55:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.4ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:55:59', "perishable_token" = 'DaWHwHCxCErSX9wveWAO', "last_request_at" = '2010-09-14 17:55:59' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.9ms)
+Completed in 144ms (View: 139, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 14:56:17) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:56:17', "perishable_token" = 'GsB3WKa4SW9Ok5TNwr5z', "last_request_at" = '2010-09-14 17:56:17' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 118ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:56:17) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.5ms)
+Completed in 24ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 14:56:31) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 10, "updated_at" = '2010-09-14 17:56:31', "perishable_token" = 'jDBlNdBMlLZJ9b5Pdi', "last_request_at" = '2010-09-14 17:56:31', "last_login_at" = '2010-09-14 17:55:19', "current_login_at" = '2010-09-14 17:56:31' WHERE "id" = 2[0m
+
+ActionView::MissingTemplate (Missing template user_sessions/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:56:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:56:37', "perishable_token" = 'pA6T68Nt4BLnNw9g', "last_request_at" = '2010-09-14 17:56:37' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.2ms)
+Completed in 180ms (View: 174, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 14:56:41) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:56:41', "perishable_token" = '5IIF6rkPl9gftw3rgai', "last_request_at" = '2010-09-14 17:56:41' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (3.0ms)
+Rendered user_sessions/_new (4.0ms)
+Completed in 136ms (View: 12, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:56:43) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 17:56:43', "perishable_token" = 'CKVP5E7bxvkm8MwzZwG', "last_request_at" = '2010-09-14 17:56:43' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.6ms)
+Completed in 108ms (View: 103, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:58:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:58:05', "perishable_token" = 'AbjPbFzX2uKKj0PlPe0M', "last_request_at" = '2010-09-14 17:58:04' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.3ms)
+Completed in 136ms (View: 131, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:58:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 17:58:55', "perishable_token" = 'mzjuFpvC1wgAh5PWzSmj', "last_request_at" = '2010-09-14 17:58:55' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.7ms)
+Completed in 139ms (View: 133, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:59:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:59:10', "perishable_token" = 'CcMQZBeINJoEIvQqs7K', "last_request_at" = '2010-09-14 17:59:10' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.7ms)
+Completed in 118ms (View: 113, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:59:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 17:59:28', "perishable_token" = '7fHR0PAqVbkiICpLvwQ', "last_request_at" = '2010-09-14 17:59:28' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.2ms)
+Completed in 184ms (View: 179, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 14:59:52) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 17:59:52', "perishable_token" = 'xPcXyWsyNBdLKYC5wkm', "last_request_at" = '2010-09-14 17:59:52' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.9ms)
+Completed in 120ms (View: 114, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:02:25) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:02:25', "perishable_token" = 'Go2NtyyemJeDvgh6HL28', "last_request_at" = '2010-09-14 18:02:25' WHERE "id" = 2[0m
+Rendered user_sessions/_new (77.4ms)
+Completed in 212ms (View: 207, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:02:55) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:02:55', "perishable_token" = 'cTfEFOpVEjmFGErulQ', "last_request_at" = '2010-09-14 18:02:55' WHERE "id" = 2[0m
+Rendered user_sessions/_new (6.7ms)
+Completed in 147ms (View: 141, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:03:19) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:03:19', "perishable_token" = 'ixE0KyLy2dZlfR1xfg1i', "last_request_at" = '2010-09-14 18:03:19' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.0ms)
+Completed in 116ms (View: 111, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:04:11) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:11', "perishable_token" = 'H10e5xvZtu2A40nLoIM', "last_request_at" = '2010-09-14 18:04:11' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 236ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:11) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.6ms)
+Completed in 27ms (View: 21, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:04:18) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 11, "updated_at" = '2010-09-14 18:04:18', "perishable_token" = 'bHKCbsGFYzuKu08vZVt', "last_request_at" = '2010-09-14 18:04:18', "last_login_at" = '2010-09-14 17:56:31', "current_login_at" = '2010-09-14 18:04:18' WHERE "id" = 2[0m
+
+ActionView::MissingTemplate (Missing template user_sessions/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:04:20) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:20', "perishable_token" = 't1mor41D7dVAd9LezN', "last_request_at" = '2010-09-14 18:04:20' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 93ms (DB: 0) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:20) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:20', "perishable_token" = '4aIsfSrUFOxReRhKeJt', "last_request_at" = '2010-09-14 18:04:20' WHERE "id" = 2[0m
+Rendered user_sessions/_new (5.0ms)
+Completed in 107ms (View: 102, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:04:20) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:20', "perishable_token" = 'sahq0NRzVzEOSD8j4pvj', "last_request_at" = '2010-09-14 18:04:20' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 87ms (DB: 0) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:20) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:20', "perishable_token" = 'Gj8pmoWVUrRSQ04BJje', "last_request_at" = '2010-09-14 18:04:20' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.0ms)
+Completed in 104ms (View: 99, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:04:20) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:20', "perishable_token" = '5VOwWCAeHl2wbYTjQvMp', "last_request_at" = '2010-09-14 18:04:20' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 83ms (DB: 0) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:21', "perishable_token" = 'uCTVZJx8Nc2IJvteK2Iz', "last_request_at" = '2010-09-14 18:04:21' WHERE "id" = 2[0m
+Rendered user_sessions/_new (8.4ms)
+Completed in 116ms (View: 111, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:04:21) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:21', "perishable_token" = 'lq8Kx1ZjVLMg7Tgcl7M', "last_request_at" = '2010-09-14 18:04:21' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 78ms (DB: 0) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:21', "perishable_token" = 'eorH9tOagGNLV0zXi6a', "last_request_at" = '2010-09-14 18:04:21' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.7ms)
+Completed in 105ms (View: 100, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:24) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:24', "perishable_token" = 'DKljM4IVI2bm1huolEuE', "last_request_at" = '2010-09-14 18:04:24' WHERE "id" = 2[0m
+Rendered user_sessions/_new (9.0ms)
+Completed in 174ms (View: 169, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:04:28) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (4.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:04:28', "perishable_token" = 'jBYnIkuMAfprX5qFrCet', "last_request_at" = '2010-09-14 18:04:28' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 117ms (DB: 5) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:04:28) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (5.3ms)
+Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:04:29) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.4ms)
+Completed in 20ms (View: 10, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:04:34) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 12, "updated_at" = '2010-09-14 18:04:34', "perishable_token" = '30XJ4i8LPAo5LF1ZuVgK', "last_request_at" = '2010-09-14 18:04:34', "last_login_at" = '2010-09-14 18:04:18', "current_login_at" = '2010-09-14 18:04:34' WHERE "id" = 2[0m
+
+ActionView::MissingTemplate (Missing template user_sessions/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:05:07) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:05:07', "perishable_token" = 'OzDb8MYF02PvAtOdMAlm', "last_request_at" = '2010-09-14 18:05:07' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 94ms (DB: 0) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:05:07) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.3ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:05:07', "perishable_token" = 'mNyNtTPHNf1dJ6PkbbnV', "last_request_at" = '2010-09-14 18:05:07' WHERE "id" = 2[0m
+Rendered user_sessions/_new (5.2ms)
+Completed in 128ms (View: 116, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:09:08) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:09:08', "perishable_token" = 'Q63vsfb7PDEoTrim1kl5', "last_request_at" = '2010-09-14 18:09:08' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 149ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:09:08) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.7ms)
+Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:36:27) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 18ms (DB: 0) | 302 Found [http://localhost/logout]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:36:27) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.7ms)
+Completed in 23ms (View: 11, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create to #<usersession:0xb6ca9bc4> (for 127.0.0.1 at 2010-09-14 15:36:36) [POST]
+ Parameters: {"format"=>"#<usersession:0xb6ca9bc4>", "commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 13, "updated_at" = '2010-09-14 18:36:36', "perishable_token" = '6yYxjwEe154cI0jPk5', "last_request_at" = '2010-09-14 18:36:36', "last_login_at" = '2010-09-14 18:04:34', "current_login_at" = '2010-09-14 18:36:36' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `redirect_ot' for #<UserSessionsController:0xb6c3aa08>):
+ app/controllers/user_sessions_controller.rb:15:in `create'
+
+Rendered rescues/_trace (37.0ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:36:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:36:40', "perishable_token" = '9geGZYauxgyrAKr5FJkX', "last_request_at" = '2010-09-14 18:36:40' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.5ms)
+Completed in 117ms (View: 110, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:21) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:37:21', "perishable_token" = 'dPhO7sWsA4mQXu65KmDR', "last_request_at" = '2010-09-14 18:37:21' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.0ms)
+Completed in 111ms (View: 106, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:37:26) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.9ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:37:26', "perishable_token" = '5fu7s5oKhwFeOrYxvcs', "last_request_at" = '2010-09-14 18:37:26' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 140ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:26) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.8ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.7ms)
+Completed in 27ms (View: 22, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:37:34) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions", "_"=>""}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 14, "updated_at" = '2010-09-14 18:37:34', "perishable_token" = 'wK2CMbrS6sly0nP9CdSs', "last_request_at" = '2010-09-14 18:37:34', "last_login_at" = '2010-09-14 18:36:36', "current_login_at" = '2010-09-14 18:37:34' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/logout
+Completed in 110ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:37:34) [GET]
+ Parameters: {"action"=>"destroy", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:37:34', "perishable_token" = 'Iytd0pNJo2qUa7Nv0', "last_request_at" = '2010-09-14 18:37:34' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 166ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.6ms)
+Completed in 25ms (View: 19, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:37:44) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.3ms)
+Completed in 22ms (View: 17, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:37:55) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.3ms)
+Completed in 21ms (View: 11, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:38:03) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "login_count" = 15, "updated_at" = '2010-09-14 18:38:03', "perishable_token" = '9d5fKbohvqWgynf6UMy', "last_request_at" = '2010-09-14 18:38:03', "last_login_at" = '2010-09-14 18:37:34', "current_login_at" = '2010-09-14 18:38:03' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 160ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:04) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (1.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:04', "perishable_token" = 'iNaDVVNbhyq9upOKfNLT', "last_request_at" = '2010-09-14 18:38:04' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.7ms)
+Completed in 122ms (View: 115, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:35) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:35', "perishable_token" = 'fLGKjYehr56fEJKvcTS0', "last_request_at" = '2010-09-14 18:38:35' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 127ms (DB: 0) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:35', "perishable_token" = 'VfLvrAEVnRlPE6NVFO', "last_request_at" = '2010-09-14 18:38:35' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.6ms)
+Completed in 110ms (View: 104, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:37) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:37', "perishable_token" = 'nXElfJccutXF7H5mBN', "last_request_at" = '2010-09-14 18:38:37' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 83ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:37) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (1.0ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:37', "perishable_token" = 'Qih5O13VaChHe61nMhr', "last_request_at" = '2010-09-14 18:38:37' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.4ms)
+Completed in 124ms (View: 117, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:38:39) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:39', "perishable_token" = 'AqEW171H7xr70FoM12', "last_request_at" = '2010-09-14 18:38:39' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 86ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:38:40) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (6.0ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.4ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:38:40', "perishable_token" = '9L2RNDQ1338FQNDStaJo', "last_request_at" = '2010-09-14 18:38:40' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.9ms)
+Completed in 113ms (View: 102, DB: 7) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:40:05) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:40:05', "perishable_token" = 'hQZZvQDmtyPKTnHzdcha', "last_request_at" = '2010-09-14 18:40:05' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 136ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:40:05) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.4ms)
+Completed in 24ms (View: 18, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:40:07) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.2ms)
+Completed in 19ms (View: 10, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:40:15) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "login_count" = 16, "updated_at" = '2010-09-14 18:40:15', "perishable_token" = 'FiHPugGPP6j5LQOtBTRp', "last_request_at" = '2010-09-14 18:40:15', "last_login_at" = '2010-09-14 18:38:03', "current_login_at" = '2010-09-14 18:40:15' WHERE "id" = 2[0m
+
+ActionView::MissingTemplate (Missing template user_sessions/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:44:20) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:44:20', "perishable_token" = 'fWbQsvtHxuPg31wIHXF8', "last_request_at" = '2010-09-14 18:44:20' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 124ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:44:20) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.5ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:44:20', "perishable_token" = 'HtFdWz3CIgv4JIw4hN0', "last_request_at" = '2010-09-14 18:44:20' WHERE "id" = 2[0m
+Rendered user_sessions/_new (7.8ms)
+Completed in 131ms (View: 123, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:45:46) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:45:46', "perishable_token" = 'aWAhnhj8zhVGOmtpiol', "last_request_at" = '2010-09-14 18:45:46' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (2.5ms)
+Rendered user_sessions/_new (5.8ms)
+Completed in 149ms (View: 16, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:45:49) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:45:49', "perishable_token" = 'rBpfE7Yx7GvKrgqXv30C', "last_request_at" = '2010-09-14 18:45:49' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 192ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:45:50) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.9ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Rendered user_sessions/_new (3.7ms)
+Completed in 25ms (View: 20, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:45:53) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:45:53) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (4.4ms)
+Completed in 21ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:48:31) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 85ms (View: 11, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:48:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 21ms (View: 9, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:49:24) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 15:51:18) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.4ms)[0m [0mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Update (0.4ms)[0m [0;1mUPDATE "users" SET "login_count" = 17, "updated_at" = '2010-09-14 18:51:18', "perishable_token" = 'DFPM9T5bUsIrElVme2Q', "last_request_at" = '2010-09-14 18:51:18', "last_login_at" = '2010-09-14 18:40:15', "current_login_at" = '2010-09-14 18:51:18' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts/new
+Completed in 179ms (DB: 1) | 302 Found [http://localhost/user_session]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:51:18) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:18', "perishable_token" = 'pYHdoR0sFVNMwdAZstg', "last_request_at" = '2010-09-14 18:51:18' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (2.7ms)
+Completed in 131ms (View: 9, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:26) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:26', "perishable_token" = 'c1I9spBSbri0WSqhFObA', "last_request_at" = '2010-09-14 18:51:26' WHERE "id" = 2[0m
+Completed in 114ms (View: 109, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 15:51:29) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (13.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:29', "perishable_token" = 'Wk47kkI0Ix3zj3ZWRRX5', "last_request_at" = '2010-09-14 18:51:29' WHERE "id" = 2[0m
+Completed in 179ms (View: 156, DB: 14) | 200 OK [http://localhost/posts/3]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:51:32) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.7ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:32', "perishable_token" = 'dYC0qWxcq114NXP2f115', "last_request_at" = '2010-09-14 18:51:32' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 106ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:32) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (4.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:32', "perishable_token" = 'dY2XqofWUGXWqQaupelH', "last_request_at" = '2010-09-14 18:51:32' WHERE "id" = 2[0m
+Completed in 110ms (View: 101, DB: 5) | 200 OK [http://localhost/posts]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 15:51:35) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:35', "perishable_token" = 'y84YjGslE5nm2H2xT5cM', "last_request_at" = '2010-09-14 18:51:35' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 106ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:51:35) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (1.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+ [4;36;1mUser Load (0.5ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:35', "perishable_token" = 'qDHsDN6aWNJix8QPP7D', "last_request_at" = '2010-09-14 18:51:35' WHERE "id" = 2[0m
+Completed in 182ms (View: 174, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:51:37) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:51:37', "perishable_token" = 'UFxXfdGTBJ5m8sksC7V', "last_request_at" = '2010-09-14 18:51:37' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.9ms)
+Completed in 111ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:52:59) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:52:59', "perishable_token" = 'mQuVCA6Vmwz4hszkb4', "last_request_at" = '2010-09-14 18:52:59' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.4ms)
+
+ActionView::TemplateError (undefined local variable or method `loguot_path' for #<ActionView::Base:0xb6d205bc>) on line #22 of app/views/layouts/application.html.erb:
+19: <% if current_user %>
+20: <div id="user">
+21: <%= 'Welcome ' + current_user.full_name %> <br/>
+22: <%= link_to 'Loguot', loguot_path %>
+23: </div>
+24: <% end %>
+25: </div>
+
+ app/views/layouts/application.html.erb:22
+
+Rendered rescues/_trace (114.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:53:53) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:53:53', "perishable_token" = 'ALfghobuQvIVQ9ATvZI', "last_request_at" = '2010-09-14 18:53:53' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (2.6ms)
+Completed in 158ms (View: 20, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing UserSessionsController#destroy (for 127.0.0.1 at 2010-09-14 15:54:02) [DELETE]
+ Parameters: {"action"=>"destroy", "_method"=>"delete", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 18:54:02', "perishable_token" = 'VHQdRw4NJdAabxz5VhN', "last_request_at" = '2010-09-14 18:54:02' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Completed in 111ms (DB: 1) | 302 Found [http://localhost/logout]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:54:02) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 19ms (View: 14, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 15:55:10) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 12ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:10) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 18ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 15:55:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 18ms (View: 13, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 15:55:13) [GET]
+ Parameters: {"action"=>"show", "id"=>"3", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 3) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 3) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 20ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/3]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 69ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 19ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:15) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 77ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:16) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 11ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:16) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 15:55:16) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"3", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/3/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 15:55:16) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
diff --git a/public/stylesheets/default.css b/public/stylesheets/default.css
index 7416b93..2deb00b 100644
--- a/public/stylesheets/default.css
+++ b/public/stylesheets/default.css
@@ -1,209 +1,221 @@
*{margin:0;padding:0}
body{
background:#6C1400 url(/images/bgbody.gif) repeat-y center top;
font:normal 0.7em Tahoma,Verdana,sans-serif
}
div a{
color:#FFF;
cursor:pointer;
text-decoration:none
}
h1{
color:#444;
font:normal 2em sans-serif;
margin:18px 0 0 0
}
code{
background:url(/images/bgcode.gif);
border:1px solid #F0F0F0;
border-left:6px solid #D91623;
color:#555;display:block;
font:normal 1em "Lucida Sans Unicode",serif;
margin-bottom:12px;
padding:8px 10px;
white-space:pre
}
blockquote{
background:url(/images/quote.gif) no-repeat lavender;
border-top: darkgrey solid 1px;
color:#555;
display:block;
font:bold 1.2em "Trebuchet MS",serif;
margin:6px 0;
padding-left:28px
}
.main{
width:680px;
margin:0 auto
}
.main_left{
float:left;
padding-top:6px;
width:420px
}
.main_right{
border-top:6px solid #FFF;
float:right;
width:254px
}
.footer{clear:both}
.left{float:left}
.right{float:right}
.header,.link_projects,.lbl,.link_updates a{border-bottom:6px solid #FFF}
div.link_projects a:hover,div.link_updates a:hover, .content a:hover, div.footer div.left a:hover{
background:#D7162C;
color:#FFF
}
.header{
background:#D91623 url(/images/bgheader.gif) repeat-x;
- height:180px
+ height:180px;
}
.header h1{
margin:0;
padding:124px 0 0 24px;
font:normal 2.2em Verdana,sans-serif
}
+.header #user{ padding-left: 25px; }
+
.link_menu{background:#CC2224 url(/images/grdnt_red.png) repeat-x}
.link_menu a{
border-bottom:1px solid #FFF;
display:block;
font:bold 0.9em Verdana,sans-serif;
height:18px;
padding:6px 0 0 10px;
text-decoration:none
}
.link_menu a:hover{background:#444}
.lbl{
background:#222 url(/images/bglbl.gif) repeat-x;
clear:both;
color:#FFF;
font:normal 2em "Lucida Sans Unicode",sans-serif;
height:50px;
line-height:50px;
overflow:hidden;
text-align:center
}
.link_projects a{
display:block;
height:100px;
text-align:center;
color:#FFF;
padding-top:24px;
width:124px;
font-size:0.9em;
font-family:sans-serif
}
.link_projects a span{font:normal 5em sans-serif}
a.g1{background:#888}
a.g2{
background:#666;
border-left:6px solid #FFF
}
.link_updates{background:#222 url(/images/grdnt_gray.gif) repeat-x}
.link_updates .lbl{
border-top:6px solid #FFF;
height:100px;
line-height:100px
}
.link_updates a{
clear:right;
display:block;
font:normal 1.2em "Trebuchet MS",sans-serif;
height:55px;
padding:10px 0;
text-align:center
}
.link_updates a span{
float:left;
font:normal 3em Verdana,sans-serif;
letter-spacing: -2px;margin-left:10px;
margin-top:3px
}
.content{
color:#444;
font-family:Verdana,sans-serif;
line-height:1.3em;
padding:0 10px 10px
}
.content a{color:#FD1C24}
.content p{margin:4px 0 10px 0}
.content .descr{
color:#666;
margin-bottom:6px
}
.content li{
list-style:url(/images/li.gif);
margin-left:18px
}
.footer{color:#666;clear:both}
.footer .right a{
background:#2A2A2A;
color:#555;
padding:1px 3px
}
.footer .right a:hover{
background:#383838;
color:#999
}
.footer .left a{color:#777}
.footer .left{
border-top:1px solid #F0F0F0;
padding:9px 0 9px 9px;
width:407px
}
.footer .right{
margin-right:8px;
padding:9px 0;
text-align:right;
width:220px
}
.notice{
background:#383838;
color:#FFF;
font-family:Verdana,sans-serif;
font-size: 14px;
text-align: center;
}
-.text:focus{
- background: antiquewhite;
-
-}
\ No newline at end of file
+.text:focus{ background: antiquewhite; }
+
+form .text { width: 200px;}
+
+#login { background-color: #888;
+ padding-left: 5px;
+ }
+
+#login form {
+ background-color: #888;
+ color: #fff;
+ }
+
+#login a:hover { background:#383838; }
|
pablodv/blogajax
|
caa25cce09a90432273770f8bba22ab6a73290a0
|
Add users table
|
diff --git a/db/migrate/20100902183958_create_users.rb b/db/migrate/20100902183958_create_users.rb
new file mode 100644
index 0000000..8e5d064
--- /dev/null
+++ b/db/migrate/20100902183958_create_users.rb
@@ -0,0 +1,29 @@
+class CreateUsers < ActiveRecord::Migration
+ def self.up
+ create_table :users do |t|
+
+ t.string :full_name
+ t.string :login, :null => false
+ t.string :email, :null => false
+ t.string :crypted_password, :null => false
+ t.string :password_salt, :null => false
+ t.string :persistence_token, :null => false
+ t.string :single_access_token, :null => false
+ t.string :perishable_token, :null => false
+ t.integer :login_count, :null => false, :default => 0
+ t.integer :failed_login_count, :null => false, :default => 0
+ t.datetime :last_request_at
+ t.datetime :current_login_at
+ t.datetime :last_login_at
+ t.string :current_login_ip
+ t.string :last_login_ip
+
+ t.timestamps
+ end
+
+ end
+
+ def self.down
+ drop_table :users
+ end
+end
diff --git a/log/development.log b/log/development.log
index 61037ef..d13ac8a 100644
--- a/log/development.log
+++ b/log/development.log
@@ -6399,512 +6399,525 @@ Completed in 20ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 11:29:12) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "login_count" = 1, "current_login_ip" = '127.0.0.1', "updated_at" = '2010-09-14 14:29:12', "perishable_token" = 'f2EtcX0KmbbvVEmZar', "last_request_at" = '2010-09-14 14:29:12', "current_login_at" = '2010-09-14 14:29:12' WHERE "id" = 2[0m
ActionController::RoutingError (post_url failed to generate from {:controller=>"posts", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["posts", :id] - are they all satisfied?):
(eval):17:in `post_path'
app/controllers/user_sessions_controller.rb:14:in `create'
Rendering rescues/layout (not_found)
Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 11:30:51) [POST]
Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:30:51', "perishable_token" = '6hS3EkXY1rG5jx8OrSt', "last_request_at" = '2010-09-14 14:30:51' WHERE "id" = 2[0m
NameError (undefined local variable or method `admin_clients_path' for #<UserSessionsController:0xb6d90358>):
app/controllers/application_controller.rb:33:in `require_no_user'
Rendered rescues/_trace (96.6ms)
Rendered rescues/_request_and_response (1.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:31:41) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 25ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:31:43) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (2.3ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 76ms (View: 67, DB: 1) | 200 OK [http://localhost/posts/2]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:31:45) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:31:45', "perishable_token" = 'pSrD1yEzIWXXmEvqSQ', "last_request_at" = '2010-09-14 14:31:45' WHERE "id" = 2[0m
NameError (undefined local variable or method `admin_clients_path' for #<UserSessionsController:0xb6ee33a4>):
app/controllers/application_controller.rb:33:in `require_no_user'
Rendered rescues/_trace (39.0ms)
Rendered rescues/_request_and_response (1.1ms)
Rendering rescues/layout (internal_server_error)
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:32:43) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:32:43', "perishable_token" = 'PwLjUIWn6gizSrZNk861', "last_request_at" = '2010-09-14 14:32:43' WHERE "id" = 2[0m
ActionController::RoutingError (post_url failed to generate from {:controller=>"posts", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["posts", :id] - are they all satisfied?):
(eval):17:in `post_path'
app/controllers/application_controller.rb:33:in `require_no_user'
Rendering rescues/layout (not_found)
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:32:56) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:32:56', "perishable_token" = 'aik3m06Ov2O95ga2g3', "last_request_at" = '2010-09-14 14:32:56' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 98ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:32:56) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:33:28) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:28', "perishable_token" = 'l44YKUb52OTdcSuIkIsm', "last_request_at" = '2010-09-14 14:33:28' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.8ms)
Completed in 111ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:33:31) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:33:33) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.6ms)
Completed in 72ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:33:40) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:40', "perishable_token" = 'ohUeEQAzqwlFQF1r20p', "last_request_at" = '2010-09-14 14:33:40' WHERE "id" = 2[0m
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 14:33:40', '2010-09-14 14:33:40', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
Rendered comments/_comment (1.7ms)
Completed in 194ms (View: 4, DB: 1) | 200 OK [http://localhost/posts/2/comments]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:33:59) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:59', "perishable_token" = 'we1Tuiq2AhlJsVqHlsBy', "last_request_at" = '2010-09-14 14:33:59' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.3ms)
Completed in 112ms (View: 5, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:37:16) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:37:16', "perishable_token" = 'RdSbcsX7NcFMH9SCIp3t', "last_request_at" = '2010-09-14 14:37:16' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (3.4ms)
Completed in 137ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#create (for 127.0.0.1 at 2010-09-14 11:38:01) [POST]
Parameters: {"commit"=>"Create", "post"=>{"body"=>"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.", "title"=>"post de prueba"}, "action"=>"create", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:38:01', "perishable_token" = 'gReG8TGGCOGIUNUpz20D', "last_request_at" = '2010-09-14 14:38:01' WHERE "id" = 2[0m
[4;35;1mPost Create (0.4ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at") VALUES('2010-09-14 14:38:01', 'post de prueba', 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don''t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn''t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.', 'Pablo Moreira Mora', '2010-09-14 14:38:01')[0m
Redirected to http://localhost:3000/posts
Completed in 173ms (DB: 1) | 302 Found [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:38:01) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:38:37) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
[4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
Migrating to CreatePosts (20100913141458)
Migrating to CreateComments (20100913141627)
Migrating to AddAuthorPost (20100913142339)
Migrating to CreateNotifiers (20100914125209)
Migrating to CreateUserSessions (20100914125225)
Migrating to CreateUser (20100914133546)
Migrating to PasswordByUser (20100914141313)
Migrating to AuthorByComment (20100914143933)
[4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
[4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "comments" ADD "author" varchar(255)[0m
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914143933')[0m
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
[4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
[4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("users")[0m
[4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
[4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:45:42) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:46:54) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.5ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:46:54', "perishable_token" = 'WjJABqdJ96ziVlQCclXQ', "last_request_at" = '2010-09-14 14:46:54' WHERE "id" = 2[0m
Rendered comments/_comment (125.8ms)
Rendered comments/_comment (1.3ms)
Rendered comments/_comment (1.2ms)
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (1.5ms)
Rendered comments/_comment (1.1ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Completed in 154ms (View: 145, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:03) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:03', "perishable_token" = '6D4fjAgNoxhK032uZ4', "last_request_at" = '2010-09-14 14:47:03' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (91.8ms)
Rendered rescues/_request_and_response (0.4ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = 'pI5b9zQi099qYWWi3x9S', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (34.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = '8FAYopIOyORX7INESll5', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (102.2ms)
Rendered rescues/_request_and_response (0.4ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = 'jgJYDCNvdO3MDHDBIFF', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (35.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:06) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:06', "perishable_token" = 'X9ajhpACm7V2YXXosQu', "last_request_at" = '2010-09-14 14:47:06' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (101.3ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:06) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:06', "perishable_token" = 'HaEMKHgXOuuWRSG4weQy', "last_request_at" = '2010-09-14 14:47:06' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (34.0ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:10) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:10', "perishable_token" = 'z1LK37l4XkYSH6ns8Lt', "last_request_at" = '2010-09-14 14:47:10' WHERE "id" = 2[0m
NoMethodError (undefined method `comments' for nil:NilClass):
app/controllers/comments_controller.rb:7:in `create'
Rendered rescues/_trace (91.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:49:04) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (2.2ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.7ms)
Completed in 25ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:49:54) [GET]
Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:50:00) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
[4;35;1mUser Load (40.4ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:00', "perishable_token" = 'h3lQUzgnQsAjuzVlHoLf', "last_request_at" = '2010-09-14 14:50:00' WHERE "id" = 2[0m
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "author", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 14:50:00', 'Pablo Moreira Mora', '2010-09-14 14:50:00', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
Rendered comments/_comment (2.1ms)
Completed in 249ms (View: 4, DB: 41) | 200 OK [http://localhost/posts/2/comments]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:50:08) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:08', "perishable_token" = '3pAn3egxgIfGJzhEIWW', "last_request_at" = '2010-09-14 14:50:08' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.5ms)
Completed in 108ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/new]
Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:50:10) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:10', "perishable_token" = 'mmPsutb6kqp4059d1OPC', "last_request_at" = '2010-09-14 14:50:10' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 101ms (DB: 0) | 302 Found [http://localhost/signup]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:10) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (3.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 13ms (View: 5, DB: 3) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:50:12) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:12', "perishable_token" = 'YxRY2Nwa9WVWM2VBsk60', "last_request_at" = '2010-09-14 14:50:12' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 106ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:12) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 68ms (View: 6, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:13) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:50:14) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:14', "perishable_token" = 'UmDnfSYVognxPEXD35O', "last_request_at" = '2010-09-14 14:50:14' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 98ms (DB: 1) | 302 Found [http://localhost/login]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:14) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (2.3ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 13ms (View: 6, DB: 2) | 200 OK [http://localhost/posts]
Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:50:19) [GET]
Parameters: {"action"=>"new", "controller"=>"users"}
[4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:19', "perishable_token" = 'egR2xG6N4qo7yxq9bnnA', "last_request_at" = '2010-09-14 14:50:19' WHERE "id" = 2[0m
Redirected to http://localhost:3000/posts
Filter chain halted as [:require_no_user] rendered_or_redirected.
Completed in 101ms (DB: 1) | 302 Found [http://localhost/signup]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:19) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;36;1mPost Load (4.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 14ms (View: 5, DB: 5) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:50:21) [GET]
Parameters: {"action"=>"new", "controller"=>"posts"}
[4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
[4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:21', "perishable_token" = 'KxJfxY8HmOpmZuxc8eu', "last_request_at" = '2010-09-14 14:50:21' WHERE "id" = 2[0m
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.9ms)
Completed in 103ms (View: 6, DB: 1) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:23) [GET]
Parameters: {"action"=>"index", "controller"=>"posts"}
[4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 12:02:20) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 17ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/1]
|
pablodv/blogajax
|
8dae0f58883c18fac8a2a99e7c9aed02de9b2bee
|
Config envio de mail
|
diff --git a/config/environment.rb b/config/environment.rb
index f7a09c9..1a833a9 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,42 +1,42 @@
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Specify gems that this application depends on and have them installed with rake gems:install
# config.gem "bj"
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
# config.gem "sqlite3-ruby", :lib => "sqlite3"
# config.gem "aws-s3", :lib => "aws/s3"
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Skip frameworks you're not going to use. To use Rails without a database,
# you must remove the Active Record framework.
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names.
config.time_zone = 'UTC'
config.gem "authlogic"
- config.action_mailer.default_url_options = { :host => "localhost" }
+ config.action_mailer.default_url_options = { :host => "blogajax.heroku.com" }
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
# config.i18n.default_locale = :de
end
\ No newline at end of file
|
pablodv/blogajax
|
c40be68803409456e30087053f78a3bbb46f2c9c
|
Blog con gestion de usuarios
|
diff --git a/.gems b/.gems
new file mode 100644
index 0000000..3d59127
--- /dev/null
+++ b/.gems
@@ -0,0 +1 @@
+authlogic --version 2.1.6 --source gems.github.com
diff --git a/app/controllers/activations_controller.rb b/app/controllers/activations_controller.rb
new file mode 100644
index 0000000..ac4e376
--- /dev/null
+++ b/app/controllers/activations_controller.rb
@@ -0,0 +1,24 @@
+class ActivationsController < ApplicationController
+
+ before_filter :require_no_user, :only => [:new, :create]
+
+ def new
+ @user = User.find_using_perishable_token(params[:activation_code], 1.week) || (raise Exception)
+ raise Exception if @user.active?
+ end
+
+ def create
+ @user = User.find(params[:id])
+
+ raise Exception if @user.active?
+
+ if @user.activate!#(params)
+ @user.deliver_activation_confirmation!
+ flash[:notice] = "Your account has been activated."
+ redirect_to account_url
+ else
+ render :action => :new
+ end
+ end
+
+end
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 6635a3f..334f55f 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,10 +1,46 @@
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
- helper :all # include all helpers, all the time
- protect_from_forgery # See ActionController::RequestForgeryProtection for details
+ helper :all
+ helper_method :current_user_session, :current_user
+ filter_parameter_logging :password, :password_confirmation
- # Scrub sensitive parameters from your log
- # filter_parameter_logging :password
+ private
+ def current_user_session
+ return @current_user_session if defined?(@current_user_session)
+ @current_user_session = UserSession.find
+ end
+
+ def current_user
+ return @current_user if defined?(@current_user)
+ @current_user = current_user_session && current_user_session.record
+ end
+
+ def require_user
+ unless current_user
+ store_location
+ flash[:notice] = "You must be logged in to access this page"
+ redirect_to new_user_session_url
+ return false
+ end
+ end
+
+ def require_no_user
+ if current_user
+ store_location
+ flash[:notice] = "You must be logged out to access this page"
+ redirect_to posts_path
+ return false
+ end
+ end
+
+ def store_location
+ session[:return_to] = request.request_uri
+ end
+
+ def redirect_back_or_default(default)
+ redirect_to(session[:return_to] || default)
+ session[:return_to] = nil
+ end
end
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
index a2d6ead..396b7d2 100644
--- a/app/controllers/comments_controller.rb
+++ b/app/controllers/comments_controller.rb
@@ -1,19 +1,23 @@
class CommentsController < ApplicationController
-
+ before_filter :require_user, :only => [:new, :create]
+
def create
- @post = Post.find(params[:post_id])
- @comment = @post.comments.new(params[:comment])
+ #@post = Post.find(params[:post_id])
+ @comment = Comment.new( :post_id => params[:post_id],
+ :comment => params[:comment][:comment],
+ :author => current_user.full_name
+ )
if @comment.save
flash[:notice] = 'Comment was successfully added.'
render :update do |page|
page.insert_html :bottom, 'comments', :partial => 'comment'
page[:comment_comment].clear
#page["comment_#commentsp"].visual_effect :highlight, :duration => 3.5
end
end
end
end
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index f44aa59..ad013ef 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -1,26 +1,32 @@
class PostsController < ApplicationController
+ before_filter :require_user, :only => [:new, :create]
+
def index
@posts = Post.find(:all, :order => 'created_at DESC')
end
def new
@post = Post.new
end
def create
- @post = Post.new(params[:post])
+ @post = Post.new( :title => params[:post][:title],
+ :body => params[:post][:body],
+ :author => current_user.full_name
+ )
+
if @post.save
flash[:notice] = 'Post was successfully created.'
redirect_to :action => 'index'
else
render :action => 'new'
end
end
def show
@post = Post.find(params[:id])
@comments = @post.comments.collect
end
end
diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user_sessions_controller.rb
new file mode 100644
index 0000000..5328d29
--- /dev/null
+++ b/app/controllers/user_sessions_controller.rb
@@ -0,0 +1,26 @@
+class UserSessionsController < ApplicationController
+
+ before_filter :require_no_user, :only => [:new, :create]
+ before_filter :require_user, :only => :destroy
+
+ def new
+ @user_session = UserSession.new
+ end
+
+ def create
+ @user_session = UserSession.new(params[:user_session])
+ if @user_session.save
+ flash[:notice] = "Login successful!"
+ redirect_to posts_path #redirect_back_or_default admin_clients_path
+ else
+ render :action => :new
+ end
+ end
+
+ def destroy
+ current_user_session.destroy
+ flash[:notice] = "Logout successful!"
+ redirect_back_or_default login_path
+ end
+
+end
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
new file mode 100644
index 0000000..dbfddb0
--- /dev/null
+++ b/app/controllers/users_controller.rb
@@ -0,0 +1,42 @@
+class UsersController < ApplicationController
+
+ before_filter :require_no_user, :only => [:new, :create]
+ before_filter :require_user, :only => [:show, :edit, :update]
+
+ def new
+ @user = User.new
+ end
+
+ def create
+ @user = User.new(params[:user])
+
+ if @user.signup!(params)
+ @user.deliver_activation_instructions!
+ flash[:notice] = "Your account has been created. Please check your e-mail for your account activation instructions!"
+ # [email protected]
+ # flash[:notice] = "Account registered!"
+ redirect_back_or_default login_path
+ else
+ render :action => :new
+ end
+ end
+
+ def show
+ @user = @current_user
+ end
+
+ def edit
+ @user = @current_user
+ end
+
+ def update
+ @user = @current_user # makes our views "cleaner" and more consistent
+ if @user.update_attributes(params[:user])
+ flash[:notice] = "Account updated!"
+ redirect_to login_path
+ else
+ render :action => :edit
+ end
+ end
+
+end
diff --git a/app/helpers/activations_helper.rb b/app/helpers/activations_helper.rb
new file mode 100644
index 0000000..13da02e
--- /dev/null
+++ b/app/helpers/activations_helper.rb
@@ -0,0 +1,2 @@
+module ActivationsHelper
+end
diff --git a/app/helpers/user_sessions_helper.rb b/app/helpers/user_sessions_helper.rb
new file mode 100644
index 0000000..2018402
--- /dev/null
+++ b/app/helpers/user_sessions_helper.rb
@@ -0,0 +1,2 @@
+module UserSessionsHelper
+end
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
new file mode 100644
index 0000000..2310a24
--- /dev/null
+++ b/app/helpers/users_helper.rb
@@ -0,0 +1,2 @@
+module UsersHelper
+end
diff --git a/app/models/notifier.rb b/app/models/notifier.rb
new file mode 100644
index 0000000..1d5a607
--- /dev/null
+++ b/app/models/notifier.rb
@@ -0,0 +1,36 @@
+class Notifier < ActionMailer::Base
+
+ def password_reset_instructions(user)
+ subject "Password Reset Instructions"
+ from "Holiday Reminder <[email protected]>"
+ recipients user.email
+ sent_on Time.now
+ body :edit_password_reset_url => edit_password_reset_url(user.perishable_token)
+ end
+
+ def activation_instructions(user)
+ subject "Activation Instructions"
+ from "Holiday Reminder <[email protected]>"
+ recipients user.email
+ sent_on Time.now
+ body :account_activation_url => register_url(user.perishable_token)
+ end
+
+ def activation_confirmation(user)
+ subject "Activation Complete"
+ from "Holiday Reminder <[email protected]>"
+ recipients user.email
+ sent_on Time.now
+ body :root_url => login_url
+ end
+
+ def holiday_reminder(client, holiday)
+ subject "Holiday Reminder"
+ from "Holiday Reminder <[email protected]>"
+ recipients client.email
+ sent_on Time.now
+ body :holiday_reminder_url => holiday, :exception_mailer =>
+ edit_exception_url(client.id)
+ end
+
+end
diff --git a/app/models/user.rb b/app/models/user.rb
new file mode 100644
index 0000000..6f36864
--- /dev/null
+++ b/app/models/user.rb
@@ -0,0 +1,48 @@
+class User < ActiveRecord::Base
+
+ attr_accessible :full_name, :login, :email, :password, :password_confirmation,
+ :openid_identifier
+
+ def active?
+ active
+ end
+
+ acts_as_authentic do |c|
+ c.validates_length_of_password_field_options = {:on => :update, :minimum => 4, :if => :has_no_credentials?}
+ c.validates_length_of_password_confirmation_field_options = {:on => :update, :minimum => 4, :if => :has_no_credentials?}
+ end
+
+ def has_no_credentials?
+ self.crypted_password.blank? && self.openid_identifier.blank?
+ end
+
+ def signup!(params)
+ self.login = params[:user][:login]
+ self.email = params[:user][:email]
+ save_without_session_maintenance
+ end
+
+ def activate!#(params)
+ self.active = true
+ #self.password = params[:user][:password]
+ #self.password_confirmation = params[:user][:password_confirmation]
+ #self.openid_identifier = params[:user][:openid_identifier]
+ save
+ end
+
+ def deliver_password_reset_instructions!
+ reset_perishable_token!
+ Notifier.deliver_password_reset_instructions(self)
+ end
+
+ def deliver_activation_instructions!
+ reset_perishable_token!
+ Notifier.deliver_activation_instructions(self)
+ end
+
+ def deliver_activation_confirmation!
+ reset_perishable_token!
+ Notifier.deliver_activation_confirmation(self)
+ end
+
+end
diff --git a/app/models/user_session.rb b/app/models/user_session.rb
new file mode 100644
index 0000000..8c19d19
--- /dev/null
+++ b/app/models/user_session.rb
@@ -0,0 +1,2 @@
+class UserSession < Authlogic::Session::Base
+end
\ No newline at end of file
diff --git a/app/views/activations/_form.erb b/app/views/activations/_form.erb
new file mode 100644
index 0000000..6bb902a
--- /dev/null
+++ b/app/views/activations/_form.erb
@@ -0,0 +1,9 @@
+
+ <%= form.label :password, "Set your password" %><br />
+ <%= form.password_field :password %><br />
+ <br />
+ <%= form.label :password_confirmation %><br />
+ <%= form.password_field :password_confirmation %><br />
+
+ <%= form.label :openid_identifier, "Or use OpenID instead of your email / password" %><br />
+ <%= form.text_field :openid_identifier %><br />
diff --git a/app/views/activations/create.html.erb b/app/views/activations/create.html.erb
new file mode 100644
index 0000000..c8f39f4
--- /dev/null
+++ b/app/views/activations/create.html.erb
@@ -0,0 +1,2 @@
+<h1>Activations#create</h1>
+<p>Find me in app/views/activations/create.html.erb</p>
diff --git a/app/views/activations/new.html.erb b/app/views/activations/new.html.erb
new file mode 100644
index 0000000..dd2affd
--- /dev/null
+++ b/app/views/activations/new.html.erb
@@ -0,0 +1,8 @@
+<h1>Activate your account</h1>
+<br />
+ <% form_for @user, :url => activate_path(@user.id), :html => { :method => :post } do |f| %>
+ <%= f.error_messages %>
+ <%= f.submit "Activate" %>
+ <% end %>
+
+
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb
index b48b691..8c4125a 100644
--- a/app/views/comments/_comment.html.erb
+++ b/app/views/comments/_comment.html.erb
@@ -1,11 +1,11 @@
<blockquote id="commentsp">
<p>
<%= h comment.comment %><br/>
</p>
</blockquote>
<div style="color: #999; font-size: 8pt">
- Posted on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
+ Posted by <%= comment.author %> on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
</div>
\ No newline at end of file
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index a04d99f..c999191 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,84 +1,85 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%= stylesheet_link_tag "default" , :media => "all" %>
<%= javascript_include_tag :defaults %>
<title>Ruby on Rails 2010</title>
</head>
<body>
<div class="main">
<div class="main_left">
<div class="header">
<h1><%= link_to 'Ruby on Rails', :controller => 'posts', :action => 'index' %></h1>
</div>
<div class="link_menu">
- <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
+ <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
+ <%= link_to 'Login', login_path %>
+ <%= link_to 'Registrer', signup_path %>
<%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
- <a href="index.html" accesskey="3">Elemen</a>
- <a href="index.html" accesskey="4">Maecenas</a>
+
</div>
<div class="content">
<br/>
<div class="notice"><%= notice %></div>
<%= yield %>
</div>
</div>
<div class="main_right">
<div class="link_projects">
<div class="lbl">projects</div>
<span class="left">
<a href="http://holiday.heroku.com/login" class="g1" accesskey="c" ><span>HR</span><br>Holiday Reminder</a>
</span>
<span class="right">
<a href="index.html" class="g2" accesskey="p"><span>PHP</span><br>Hypertext Preprocessor</a>
</span>
</div>
<div class="link_updates">
-
- <div class="lbl">updates</div>
+ <%#= render :partial => 'user_sessions/new' %>
+ <div class="lbl">update </div>
<a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>
<a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>
<a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>
<a href="index.html"><span>CSS</span>quis neque<br>-<br>2006-12-10</a>
<a href="index.html"><span>CSS</span>ultrices sit amet<br>-<br>2006-12-07</a>
<a href="index.html"><span>PHP</span>nascetur ridiculus<br>-<br>2006-12-06</a>
<a href="index.html"><span>PHP</span>semper massa<br>-<br>2006-12-05</a>
<a href="index.html"><span>CSS</span>nibh quis nunc<br>-<br>2006-12-04</a>
<div class="clearer"><span></span></div>
</div>
</div>
<div class="footer">
<div class="left">© <a href="index.html">Website</a> 2009.</div>
<div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
<div class="clearer"><span></span></div>
</div>
</div>
</body></html>
diff --git a/app/views/notifier/activation_confirmation.erb b/app/views/notifier/activation_confirmation.erb
new file mode 100644
index 0000000..b5f6790
--- /dev/null
+++ b/app/views/notifier/activation_confirmation.erb
@@ -0,0 +1,6 @@
+Your account has been activated.
+
+ <%= @root_url %>
+
+ If the above URL does not work try copying and pasting it into your browser.
+ If you continue to have problem, please feel free to contact us.
diff --git a/app/views/notifier/activation_instructions.erb b/app/views/notifier/activation_instructions.erb
new file mode 100644
index 0000000..b2bea17
--- /dev/null
+++ b/app/views/notifier/activation_instructions.erb
@@ -0,0 +1,3 @@
+ Thank you for creating an account! Click the url below to activate your account!
+
+ <%= @account_activation_url %>
diff --git a/app/views/notifier/holiday_reminder.erb b/app/views/notifier/holiday_reminder.erb
new file mode 100644
index 0000000..132ccd0
--- /dev/null
+++ b/app/views/notifier/holiday_reminder.erb
@@ -0,0 +1,10 @@
+This a reminder of the upcoming holidays:
+
+<% @holiday_reminder_url.each do |h| %>
+ <%= h.name %>
+ <%= h.day %>
+<% end %>
+
+If you don't want to receive more notifications, click on the link below:
+
+<%= @exception_mailer %>
diff --git a/app/views/notifier/password_reset_instructions.erb b/app/views/notifier/password_reset_instructions.erb
new file mode 100644
index 0000000..ed9bde6
--- /dev/null
+++ b/app/views/notifier/password_reset_instructions.erb
@@ -0,0 +1,8 @@
+Password Reset Instructions
+
+ A request to reset your password has been made. If you did not make
+ this request, simply ignore this email. If you did make this
+ request, please follow the link below.
+
+<%= @edit_password_reset_url %>
+
diff --git a/app/views/posts/_form.html.erb b/app/views/posts/_form.html.erb
index 962feb0..27246e9 100644
--- a/app/views/posts/_form.html.erb
+++ b/app/views/posts/_form.html.erb
@@ -1,10 +1,10 @@
<%= error_messages_for 'post' %>
<p><label for="post_title">Title</label><br/>
<%= text_field 'post', 'title' %></p>
<p><label for="post_body">Body</label><br/>
<%= text_area 'post', 'body' %></p>
-<p><label for="post_author">Author</label><br/>
-<%= text_field 'post', 'author' %></p>
+<%#*<p><label for="post_author">Author</label><br/>%>
+<%#= text_field 'post', 'author' %></p>
diff --git a/app/views/user_sessions/_new.html.erb b/app/views/user_sessions/_new.html.erb
new file mode 100644
index 0000000..28c85ec
--- /dev/null
+++ b/app/views/user_sessions/_new.html.erb
@@ -0,0 +1,21 @@
+<h1>Login</h1>
+<br />
+<% form_for @user_session, :url => user_session_path do |f| %>
+ <%= f.error_messages %>
+ <%= f.label :login %><br />
+ <%= f.text_field :login %><br />
+ <br />
+ <%= f.label :password %><br />
+ <%= f.password_field :password %><br />
+ <br />
+ <%= f.check_box :remember_me %><%= f.label :remember_me %><br />
+ <br />
+ <%= f.submit "Login" %>
+<% end %>
+<br/>
+ <%= link_to 'Signup', signup_path %> <br/>
+ <%= link_to 'Forgot Password', :controller => "password_resets",
+ :action => "new"%> <br/>
+ <br />
+
+
\ No newline at end of file
diff --git a/app/views/user_sessions/new.html.erb b/app/views/user_sessions/new.html.erb
new file mode 100644
index 0000000..28c85ec
--- /dev/null
+++ b/app/views/user_sessions/new.html.erb
@@ -0,0 +1,21 @@
+<h1>Login</h1>
+<br />
+<% form_for @user_session, :url => user_session_path do |f| %>
+ <%= f.error_messages %>
+ <%= f.label :login %><br />
+ <%= f.text_field :login %><br />
+ <br />
+ <%= f.label :password %><br />
+ <%= f.password_field :password %><br />
+ <br />
+ <%= f.check_box :remember_me %><%= f.label :remember_me %><br />
+ <br />
+ <%= f.submit "Login" %>
+<% end %>
+<br/>
+ <%= link_to 'Signup', signup_path %> <br/>
+ <%= link_to 'Forgot Password', :controller => "password_resets",
+ :action => "new"%> <br/>
+ <br />
+
+
\ No newline at end of file
diff --git a/app/views/users/_form.erb b/app/views/users/_form.erb
new file mode 100644
index 0000000..d328dbc
--- /dev/null
+++ b/app/views/users/_form.erb
@@ -0,0 +1,15 @@
+<%= form.label :full_name %><br />
+<%= form.text_field :full_name %><br />
+<br />
+<%= form.label :login %><br />
+<%= form.text_field :login %><br />
+<br />
+<%= form.label :password, form.object.new_record? ? nil : "Change password" %><br />
+<%= form.password_field :password %><br />
+<br />
+<%= form.label :password_confirmation %><br />
+<%= form.password_field :password_confirmation %><br />
+<br />
+<%= form.label :email %><br />
+<%= form.text_field :email %><br />
+<br/>
diff --git a/app/views/users/edit.erb b/app/views/users/edit.erb
new file mode 100644
index 0000000..00cb343
--- /dev/null
+++ b/app/views/users/edit.erb
@@ -0,0 +1,9 @@
+<h1>Edit My Account</h1>
+<br />
+<% form_for @user, :url => account_path do |f| %>
+ <%= f.error_messages %>
+ <%= render :partial => "form", :object => f %>
+ <%= f.submit "Update" %>
+<% end %>
+
+<br /><%= link_to "Back", admin_clients_path %>
\ No newline at end of file
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
new file mode 100644
index 0000000..95d7c26
--- /dev/null
+++ b/app/views/users/new.html.erb
@@ -0,0 +1,11 @@
+<h1>Register</h1>
+<br/>
+
+<% form_for @user, :url => account_path do |f| %>
+ <%= f.error_messages %>
+ <%= render :partial => "form", :object => f %>
+ <%= f.submit "Register" %>
+<% end %>
+<br/>
+<%= link_to "Back", login_path %>
+
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
new file mode 100644
index 0000000..0700838
--- /dev/null
+++ b/app/views/users/show.html.erb
@@ -0,0 +1,49 @@
+
+<p>
+ <b>Login:</b>
+ <%=h @user.login %>
+</p>
+
+<p>
+ <b>Login count:</b>
+ <%=h @user.login_count %>
+</p>
+
+<p>
+ <b>State:</b>
+ <%=h @user.state %>
+</p>
+
+<p>
+ <b>Country:</b>
+ <%=h @user.country %>
+</p>
+<%#*<p>%>
+ <%#*<b>Last request at:</b>%>
+ <%#=h @user.last_request_at %>
+<%#*</p>%>
+
+<p>
+ <b>Last login at:</b>
+ <%=h @user.last_login_at %>
+</p>
+
+<p>
+ <b>Current login at:</b>
+ <%=h @user.current_login_at %>
+</p>
+
+<%#*<p>%>
+ <%#*<b>Last login ip:</b>%>
+ <%#=h @user.last_login_ip %>
+<%#*</p>%>
+
+<%#*<p>%>
+ <%#*<b>Current login ip:</b>%>
+ <%#=h @user.current_login_ip %>
+<%#*</p>%>
+
+
+<%= link_to 'Edit', edit_account_path %><br/><br/>
+<%= link_to 'Change Password', :controller => "password_resets" %><br/><br/>
+<%= link_to 'Go to Holiday Reminder', admin_clients_path %>
\ No newline at end of file
diff --git a/config/environment.rb b/config/environment.rb
index 2d8f930..f7a09c9 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,41 +1,42 @@
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Specify gems that this application depends on and have them installed with rake gems:install
# config.gem "bj"
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
# config.gem "sqlite3-ruby", :lib => "sqlite3"
# config.gem "aws-s3", :lib => "aws/s3"
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Skip frameworks you're not going to use. To use Rails without a database,
# you must remove the Active Record framework.
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names.
config.time_zone = 'UTC'
-
+ config.gem "authlogic"
+ config.action_mailer.default_url_options = { :host => "localhost" }
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
# config.i18n.default_locale = :de
end
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index e5f707b..8e6d311 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,46 +1,57 @@
ActionController::Routing::Routes.draw do |map|
map.resources :posts, :has_many => :comments
map.resources :comments
+ map.resource :user_session
+ map.resource :account, :controller => "users"
+
+ map.login '/login', :controller => "user_sessions", :action => "new"
+ map.logout '/logout', :controller => "user_sessions", :action => "destroy"
+ map.signup 'signup', :controller => "users", :action => "new"
+
+ map.root :controller => "user_sessions", :action => "new"
+
+ map.register '/register/:activation_code', :controller => 'activations', :action => 'new'
+ map.activate '/activate/:id', :controller => 'activations', :action => 'create'
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# map.resources :products
# Sample resource route with options:
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
# Sample resource route with more complex sub-resources
# map.resources :products do |products|
# products.resources :comments
# products.resources :sales, :collection => { :recent => :get }
# end
# Sample resource route within a namespace:
# map.namespace :admin do |admin|
# # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
# admin.resources :products
# end
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing or commenting them out if you're using named routes and resources.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index a6904e5..666db99 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/db/migrate/20100914125209_create_notifiers.rb b/db/migrate/20100914125209_create_notifiers.rb
new file mode 100644
index 0000000..4a0f12d
--- /dev/null
+++ b/db/migrate/20100914125209_create_notifiers.rb
@@ -0,0 +1,12 @@
+class CreateNotifiers < ActiveRecord::Migration
+ def self.up
+ create_table :notifiers do |t|
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :notifiers
+ end
+end
diff --git a/db/migrate/20100914125225_create_user_sessions.rb b/db/migrate/20100914125225_create_user_sessions.rb
new file mode 100644
index 0000000..c087df7
--- /dev/null
+++ b/db/migrate/20100914125225_create_user_sessions.rb
@@ -0,0 +1,12 @@
+class CreateUserSessions < ActiveRecord::Migration
+ def self.up
+ create_table :user_sessions do |t|
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :user_sessions
+ end
+end
diff --git a/db/migrate/20100914133546_create_user.rb b/db/migrate/20100914133546_create_user.rb
new file mode 100644
index 0000000..4e5ef91
--- /dev/null
+++ b/db/migrate/20100914133546_create_user.rb
@@ -0,0 +1,44 @@
+class CreateUser < ActiveRecord::Migration
+ def self.up
+
+
+ add_column :users, :full_name, :string
+ add_column :users, :login, :string
+ add_column :users, :email, :string
+ add_column :users, :crypted_password, :string
+ add_column :users, :password_salt, :string
+ add_column :users, :persistence_token, :string
+ add_column :users, :single_access_token, :string
+ add_column :users, :perishable_token, :string
+ add_column :users, :login_count, :integer, :default => 0
+ add_column :users, :failed_login_count, :integer, :default => 0
+ add_column :users, :last_request_at, :datetime
+ add_column :users, :current_login_at, :datetime
+ add_column :users, :last_login_at, :datetime
+ add_column :users, :current_login_ip, :string
+ add_column :users, :last_login_ip, :string
+ add_column :users, :active, :boolean, :default => false
+
+ add_index :users, :perishable_token
+ add_index :users, :email
+ end
+
+ def self.down
+ remove_column :users, :full_name
+ remove_column :users, :login
+ remove_column :users, :email
+ remove_column :users, :crypted_password
+ remove_column :users, :password_salt
+ remove_column :users, :persistence_token
+ remove_column :users, :single_access_token
+ remove_column :users, :perishable_token
+ remove_column :users, :login_count
+ remove_column :users, :failed_login_count
+ remove_column :users, :last_request_at
+ remove_column :users, :current_login_at
+ remove_column :users, :last_login_at
+ remove_column :users, :current_login_ip
+ remove_column :users, :last_login_ip
+ remove_column :users, :active
+ end
+end
diff --git a/db/migrate/20100914141313_password_by_user.rb b/db/migrate/20100914141313_password_by_user.rb
new file mode 100644
index 0000000..65c1b00
--- /dev/null
+++ b/db/migrate/20100914141313_password_by_user.rb
@@ -0,0 +1,8 @@
+class PasswordByUser < ActiveRecord::Migration
+ def self.up
+ add_column :users, :password, :string
+ end
+
+ def self.down
+ end
+end
diff --git a/db/migrate/20100914143933_author_by_comment.rb b/db/migrate/20100914143933_author_by_comment.rb
new file mode 100644
index 0000000..93e2ccd
--- /dev/null
+++ b/db/migrate/20100914143933_author_by_comment.rb
@@ -0,0 +1,8 @@
+class AuthorByComment < ActiveRecord::Migration
+ def self.up
+ add_column :comments, :author, :string
+ end
+
+ def self.down
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index fbea43e..c1239c0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1,29 +1,65 @@
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20100913142339) do
+ActiveRecord::Schema.define(:version => 20100914143933) do
create_table "comments", :force => true do |t|
t.integer "post_id"
t.date "created_at"
t.text "comment"
t.datetime "updated_at"
+ t.string "author"
+ end
+
+ create_table "notifiers", :force => true do |t|
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
create_table "posts", :force => true do |t|
t.string "title"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.string "author"
end
+ create_table "user_sessions", :force => true do |t|
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "users", :force => true do |t|
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.string "full_name"
+ t.string "login"
+ t.string "email"
+ t.string "crypted_password"
+ t.string "password_salt"
+ t.string "persistence_token"
+ t.string "single_access_token"
+ t.string "perishable_token"
+ t.integer "login_count", :default => 0
+ t.integer "failed_login_count", :default => 0
+ t.datetime "last_request_at"
+ t.datetime "current_login_at"
+ t.datetime "last_login_at"
+ t.string "current_login_ip"
+ t.string "last_login_ip"
+ t.boolean "active", :default => false
+ t.string "password"
+ end
+
+ add_index "users", ["email"], :name => "index_users_on_email"
+ add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
+
end
diff --git a/log/development.log b/log/development.log
index a25c460..61037ef 100644
--- a/log/development.log
+++ b/log/development.log
@@ -4321,512 +4321,2590 @@ Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:49:11) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Rendered posts/_comment (0.8ms)
Rendered posts/_comment (0.5ms)
ActionView::TemplateError (undefined method `comment' for #<Post:0xb70c4010>) on line #17 of app/views/posts/show.html.erb:
14: <%= error_messages_for 'comment' %>
15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
16: <%#*<p><label for="comment_comment">Comment</label><br/>%>
17: <%= f.text_area :comment %></p>
18: <%= f.submit "Post" %>
19: <% end %>
app/views/posts/show.html.erb:17
app/views/posts/show.html.erb:15
Rendered rescues/_trace (47.7ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:49:13) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
ActionView::TemplateError (undefined method `comment' for #<Post:0xb6f0e4f0>) on line #17 of app/views/posts/show.html.erb:
14: <%= error_messages_for 'comment' %>
15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
16: <%#*<p><label for="comment_comment">Comment</label><br/>%>
17: <%= f.text_area :comment %></p>
18: <%= f.submit "Post" %>
19: <% end %>
app/views/posts/show.html.erb:17
app/views/posts/show.html.erb:15
Rendered rescues/_trace (109.2ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:49:14) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
ActionView::TemplateError (undefined method `comment' for #<Post:0xb6fecffc>) on line #17 of app/views/posts/show.html.erb:
14: <%= error_messages_for 'comment' %>
15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
16: <%#*<p><label for="comment_comment">Comment</label><br/>%>
17: <%= f.text_area :comment %></p>
18: <%= f.submit "Post" %>
19: <% end %>
app/views/posts/show.html.erb:17
app/views/posts/show.html.erb:15
Rendered rescues/_trace (47.3ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:52:13) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:52:58) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 21ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:53:08) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 20ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/2]
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:19) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
Rendered rescues/_trace (74.1ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (method_not_allowed)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:20) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
Rendered rescues/_trace (25.6ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (method_not_allowed)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:20) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
Rendered rescues/_trace (25.2ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (method_not_allowed)
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:20) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
Rendered rescues/_trace (25.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (method_not_allowed)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:54:49) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.6ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.7ms)
ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #15 of app/views/posts/show.html.erb:
12: </div>
13: </ul>
14: <%= error_messages_for 'comment' %>
15: <% form_remote_for ([@post, @comment]) do |f|%>
16: <p><%#*<label for="comment_comment">Comment</label><br/>%>
17: <%= f.label 'Comment' %><br/>
18: <%= f.text_area :comment %></p>
app/views/posts/show.html.erb:15
Rendered rescues/_trace (43.5ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:56:28) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 16:56:30) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 16:56:30', '2010-09-13 19:56:30', 2)[0m
ActionView::MissingTemplate (Missing template comments/_comment.erb in view path app/views):
app/controllers/comments_controller.rb:13:in `create'
app/controllers/comments_controller.rb:12:in `create'
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:30) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.7ms)
Completed in 20ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:34) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 17ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:34) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:35) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 18ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:35) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.8ms)
Rendered posts/_comment (0.6ms)
Rendered posts/_comment (0.6ms)
Rendered posts/_comment (0.7ms)
Completed in 20ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:35) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 18ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:36) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:36) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:00:42) [POST]
Parameters: {"comment"=>{"comment"=>"pablito"}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('pablito', '2010-09-13 20:00:42', '2010-09-13 20:00:42', 2)[0m
ActionView::MissingTemplate (Missing template comments/_comment.erb in view path app/views):
app/controllers/comments_controller.rb:17:in `create'
app/controllers/comments_controller.rb:16:in `create'
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:00:44) [POST]
Parameters: {"comment"=>{"comment"=>"pablito"}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('pablito', '2010-09-13 20:00:44', '2010-09-13 20:00:44', 2)[0m
ActionView::MissingTemplate (Missing template comments/_comment.erb in view path app/views):
app/controllers/comments_controller.rb:17:in `create'
app/controllers/comments_controller.rb:16:in `create'
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:01:16) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Rendered posts/_comment (0.5ms)
Completed in 19ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:02:28) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 20:02:28', '2010-09-13 20:02:28', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
Rendered comments/_comment (1.8ms)
Completed in 111ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2/comments]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:03:38) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (5.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (Missing template posts/_comment.erb in view path app/views) on line #10 of app/views/posts/show.html.erb:
7: <ul>
8: <div id="comments">
9: <% @comments.each do |comment| %>
10: <%#= render @comments %> <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
13: </ul>
app/views/posts/show.html.erb:10
app/views/posts/show.html.erb:9:in `each'
app/views/posts/show.html.erb:9
Rendered rescues/_trace (98.1ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:04:19) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.8ms)
Rendered comments/_comment (0.7ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.6ms)
Rendered comments/_comment (0.3ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.3ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.4ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Rendered comments/_comment (0.2ms)
Completed in 37ms (View: 28, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:04:57) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.5ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:05:41) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered comments/_comment (1.6ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Rendered comments/_comment (0.5ms)
Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/2]
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:43) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:44) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:44) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:44) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 09:25:13) [GET]
+
+ActionController::RoutingError (No route matches "/articles" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 09:25:18) [GET]
+
+ActionController::RoutingError (No route matches "/pots" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 09:25:30) [GET]
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 113ms (View: 80, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 09:25:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (7.6ms)
+Rendered comments/_comment (1.9ms)
+Rendered comments/_comment (1.2ms)
+Rendered comments/_comment (1.1ms)
+Rendered comments/_comment (1.3ms)
+Rendered comments/_comment (1.2ms)
+Rendered comments/_comment (1.0ms)
+Rendered comments/_comment (0.5ms)
+Completed in 62ms (View: 48, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 09:25:46) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"gC4gZu+/tzccXIpvPOqtruFd2A98uAbllsQzyI7qu8Q=", "_"=>""}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Create (0.3ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 12:25:46', '2010-09-14 12:25:46', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
+Rendered comments/_comment (1.8ms)
+Completed in 99ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2/comments]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 09:27:25) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 58ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 09:27:34) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.9ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 19ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 09:28:24) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "post_id"=>"1", "authenticity_token"=>"gC4gZu+/tzccXIpvPOqtruFd2A98uAbllsQzyI7qu8Q=", "_"=>""}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry.', '2010-09-14 12:28:24', '2010-09-14 12:28:24', 1)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
+Rendered comments/_comment (1.1ms)
+Completed in 122ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/1/comments]
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.4ms)[0m [0mCREATE TABLE "notifiers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914125209')[0m
+Migrating to CreateUsers (20100914125216)
+ [4;35;1mSQL (0.5ms)[0m [0mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914125216')[0m
+Migrating to CreateUserSessions (20100914125225)
+ [4;35;1mSQL (0.5ms)[0m [0mCREATE TABLE "user_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914125225')[0m
+ [4;35;1mSQL (0.4ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("users")[0m
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 10:08:04) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 17ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:08:08) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+
+ActiveRecord::RecordNotFound (Couldn't find UserSession without an ID):
+ app/controllers/application_controller.rb:12:in `current_user_session'
+ app/controllers/application_controller.rb:17:in `current_user'
+ app/controllers/application_controller.rb:30:in `require_no_user'
+
+Rendered rescues/_trace (90.5ms)
+Rendered rescues/_request_and_response (1.1ms)
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:12:45) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+
+ActiveRecord::RecordNotFound (Couldn't find UserSession without an ID):
+ app/controllers/application_controller.rb:12:in `current_user_session'
+ app/controllers/application_controller.rb:17:in `current_user'
+ app/controllers/application_controller.rb:30:in `require_no_user'
+
+Rendered rescues/_trace (37.4ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 10:12:51) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 10:12:55) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.6ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.7ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.7ms)
+Completed in 24ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 10:13:00) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 4, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 10:13:02) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (7.2ms)
+Completed in 31ms (View: 26, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 10:13:47) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 10:13:48) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+
+ActiveRecord::RecordNotFound (Couldn't find UserSession without an ID):
+ app/controllers/application_controller.rb:12:in `current_user_session'
+ app/controllers/application_controller.rb:17:in `current_user'
+ app/controllers/application_controller.rb:21:in `require_user'
+
+Rendered rescues/_trace (94.0ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (not_found)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 10:14:56) [GET]
+
+ActionController::RoutingError (No route matches "/singup" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 10:15:13) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+
+ActiveRecord::RecordNotFound (Couldn't find UserSession without an ID):
+ app/controllers/application_controller.rb:12:in `current_user_session'
+ app/controllers/application_controller.rb:17:in `current_user'
+ app/controllers/application_controller.rb:30:in `require_no_user'
+
+Rendered rescues/_trace (36.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:20:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+
+NameError (uninitialized constant Authlogic):
+ app/models/user_session.rb:1
+ app/controllers/application_controller.rb:12:in `current_user_session'
+ app/controllers/application_controller.rb:17:in `current_user'
+ app/controllers/application_controller.rb:30:in `require_no_user'
+
+Rendered rescues/_trace (102.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#new (for 127.0.0.1 at 2010-09-14 10:24:07) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+
+NameError (uninitialized constant UserSessionsController):
+
+
+Rendered rescues/_trace (29.7ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:25:27) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+
+ActionController::UnknownAction (No action responded to new. Actions: ):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:26:34) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+
+NameError (uninitialized constant Authlogic):
+ app/models/user_session.rb:1
+ app/controllers/application_controller.rb:12:in `current_user_session'
+ app/controllers/application_controller.rb:17:in `current_user'
+ app/controllers/application_controller.rb:30:in `require_no_user'
+
+Rendered rescues/_trace (101.7ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:28:28) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+
+ActionView::TemplateError (undefined local variable or method `user_session_path' for #<ActionView::Base:0xb6ebd94c>) on line #3 of app/views/user_sessions/new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/new.html.erb:3
+
+Rendered rescues/_trace (93.3ms)
+Rendered rescues/_request_and_response (1.0ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:30:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+
+ActionView::TemplateError (undefined method `login' for #<UserSession: no credentials provided>) on line #6 of app/views/user_sessions/new.html.erb:
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+7: <br />
+8: <%= f.label :password %><br />
+9: <%= f.password_field :password %><br />
+
+ app/views/user_sessions/new.html.erb:6
+ app/views/user_sessions/new.html.erb:3
+
+Rendered rescues/_trace (104.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUsers (20100914125216)
+Migrating to CreateUserSessions (20100914125225)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.2ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.1ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.0ms)[0m [0mSQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "full_name" varchar(255), "login" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "password_salt" varchar(255) NOT NULL, "persistence_token" varchar(255) NOT NULL, "single_access_token" varchar(255) NOT NULL, "perishable_token" varchar(255) NOT NULL, "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_login_at" datetime, "last_login_at" datetime, "current_login_ip" varchar(255), "last_login_ip" varchar(255), "active" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime) [0m
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "users" ADD "full_name" varchar(255)[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mSQLite3::SQLException: Cannot add a NOT NULL column with default value NULL: ALTER TABLE "users" ADD "login" varchar(255) NOT NULL[0m
+ [4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "users" ADD "full_name" varchar(255)[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mALTER TABLE "users" ADD "login" varchar(255)[0m
+ [4;35;1mSQL (0.1ms)[0m [0mALTER TABLE "users" ADD "email" varchar(255)[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mALTER TABLE "users" ADD "crypted_password" varchar(255)[0m
+ [4;35;1mSQL (0.1ms)[0m [0mALTER TABLE "users" ADD "password_salt" varchar(255)[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mALTER TABLE "users" ADD "persistence_token" varchar(255)[0m
+ [4;35;1mSQL (0.1ms)[0m [0mALTER TABLE "users" ADD "single_access_token" varchar(255)[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mALTER TABLE "users" ADD "perishable_token" varchar(255)[0m
+ [4;35;1mSQL (0.1ms)[0m [0mALTER TABLE "users" ADD "login_count" integer DEFAULT 0[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mALTER TABLE "users" ADD "failed_login_count" integer DEFAULT 0[0m
+ [4;35;1mSQL (0.1ms)[0m [0mALTER TABLE "users" ADD "last_request_at" datetime[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mALTER TABLE "users" ADD "current_login_at" datetime[0m
+ [4;35;1mSQL (0.2ms)[0m [0mALTER TABLE "users" ADD "last_login_at" datetime[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mALTER TABLE "users" ADD "current_login_ip" varchar(255)[0m
+ [4;35;1mSQL (0.2ms)[0m [0mALTER TABLE "users" ADD "last_login_ip" varchar(255)[0m
+ [4;36;1mSQL (0.2ms)[0m [0;1mALTER TABLE "users" ADD "active" boolean DEFAULT 'f'[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mCREATE INDEX "index_users_on_perishable_token" ON "users" ("perishable_token")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_list("users")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+ [4;35;1mSQL (0.1ms)[0m [0mCREATE INDEX "index_users_on_email" ON "users" ("email")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914133546')[0m
+ [4;35;1mSQL (0.4ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.3ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.3ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:47:01) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 21ms (View: 13, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 10:47:09) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+
+ActionView::TemplateError (undefined local variable or method `account_path' for #<ActionView::Base:0xb6d48ef4>) on line #4 of app/views/users/new.html.erb:
+1: <h1>Register</h1>
+2: <br/>
+3:
+4: <% form_for @user, :url => account_path do |f| %>
+5: <%= f.error_messages %>
+6: <%= render :partial => "form", :object => f %>
+7: <%= f.submit "Register" %>
+
+ app/views/users/new.html.erb:4
+
+Rendered rescues/_trace (42.3ms)
+Rendered rescues/_request_and_response (1.0ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 10:47:14) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 10:47:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:47:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 10:47:59) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 73ms (View: 10, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 10:48:04) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.2ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 25ms (View: 16, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 10:48:36) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:43) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:43) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:44) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 7ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:44) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:44) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:44) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:44) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:44) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:45) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:45) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:45) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:45) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:45) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:45) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:46) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 8ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:46) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:47) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 7ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:47) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:48) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:48) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:48) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:48) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 10:48:48) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry."}, "commit"=>"Post", "action"=>"create", "post_id"=>"1", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/1/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:48:48) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 14ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 10:51:08) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+
+ActionView::TemplateError (Missing template posts/_.erb in view path app/views) on line #54 of app/views/layouts/application.html.erb:
+51:
+52: <div class="link_updates">
+53:
+54: <div class="lbl"><%= render :partial => '' %></div>
+55: <a href="index.html"><span>PHP</span>laoreet<br>-<br>2006-12-19</a>
+56: <a href="index.html"><span>PHP</span>neque convallis<br>-<br>2006-12-15</a>
+57: <a href="index.html"><span>CSS</span>pellentesque<br>-<br>2006-12-13</a>
+
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (43.8ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 10:52:49) [GET]
+ Parameters: {"action"=>"show", "id"=>"1", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (51.6ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 10:55:11) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+
+ActionView::TemplateError (undefined local variable or method `account_path' for #<ActionView::Base:0xb6d69398>) on line #4 of app/views/users/new.html.erb:
+1: <h1>Register</h1>
+2: <br/>
+3:
+4: <% form_for @user, :url => account_path do |f| %>
+5: <%= f.error_messages %>
+6: <%= render :partial => "form", :object => f %>
+7: <%= f.submit "Register" %>
+
+ app/views/users/new.html.erb:4
+
+Rendered rescues/_trace (103.0ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:55:21) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+
+ActionView::TemplateError (undefined local variable or method `singup_path' for #<ActionView::Base:0xb6e6b084>) on line #23 of app/views/layouts/application.html.erb:
+20:
+21: <div class="link_menu">
+22: <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
+23: <%= link_to 'Login', singup_path %>
+24: <%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
+25: <a href="index.html" accesskey="3">Elemen</a>
+26: <a href="index.html" accesskey="4">Maecenas</a>
+
+ app/views/layouts/application.html.erb:23
+
+Rendered rescues/_trace (41.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 10:55:33) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 58ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:55:33) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+
+ActionView::TemplateError (undefined local variable or method `singup_path' for #<ActionView::Base:0xb6f35bcc>) on line #23 of app/views/layouts/application.html.erb:
+20:
+21: <div class="link_menu">
+22: <%= link_to 'Home', :controller => 'posts', :action => 'index' %>
+23: <%= link_to 'Login', singup_path %>
+24: <%= link_to 'Add Post', :controller => 'posts', :action => 'new' %>
+25: <a href="index.html" accesskey="3">Elemen</a>
+26: <a href="index.html" accesskey="4">Maecenas</a>
+
+ app/views/layouts/application.html.erb:23
+
+Rendered rescues/_trace (41.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:56:01) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:56:08) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 10:56:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:56:11) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 10:56:12) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 6ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:56:12) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 6, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:56:18) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 10:56:51) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 64ms (View: 9, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 10:56:53) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:04:20) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (3.4ms)
+Completed in 24ms (View: 16, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:04:26) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:55
+
+Rendered rescues/_trace (107.4ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:06:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:55
+
+Rendered rescues/_trace (51.8ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:06:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 7ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:06:15) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (2.8ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:06:17) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (2.7ms)
+Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:06:18) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:55
+
+Rendered rescues/_trace (109.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:07:36) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (3.6ms)
+Completed in 19ms (View: 12, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:07:54) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+
+ActionView::TemplateError (undefined local variable or method `account_path' for #<ActionView::Base:0xb6e0d04c>) on line #4 of app/views/users/new.html.erb:
+1: <h1>Register</h1>
+2: <br/>
+3:
+4: <% form_for @user, :url => account_path do |f| %>
+5: <%= f.error_messages %>
+6: <%= render :partial => "form", :object => f %>
+7: <%= f.submit "Register" %>
+
+ app/views/users/new.html.erb:4
+
+Rendered rescues/_trace (95.8ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:08:38) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (3.6ms)
+Completed in 25ms (View: 17, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:08:51) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (107.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:08:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #3 of app/views/user_sessions/_new.html.erb:
+1: <h1>Login</h1>
+2: <br />
+3: <% form_for @user_session, :url => user_session_path do |f| %>
+4: <%= f.error_messages %>
+5: <%= f.label :login %><br />
+6: <%= f.text_field :login %><br />
+
+ app/views/user_sessions/_new.html.erb:3
+ app/views/layouts/application.html.erb:54
+
+Rendered rescues/_trace (52.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:08:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (2.6ms)
+Completed in 15ms (View: 8, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:08:59) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (2.9ms)
+Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:09:00) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Rendered user_sessions/_new (2.7ms)
+Completed in 15ms (View: 8, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:09:58) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:10:54) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 63ms (View: 6, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:10:56) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+
+ActionView::TemplateError (undefined method `password' for #<User:0xb6f3efec>) on line #5 of app/views/users/_form.erb:
+2: <%= form.text_field :login %><br />
+3: <br />
+4: <%= form.label :password, form.object.new_record? ? nil : "Change password" %><br />
+5: <%= form.password_field :password %><br />
+6: <br />
+7: <%= form.label :password_confirmation %><br />
+8: <%= form.password_field :password_confirmation %><br />
+
+ app/views/users/_form.erb:5
+ app/views/users/new.html.erb:6
+ app/views/users/new.html.erb:4
+
+Rendered rescues/_trace (55.6ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "users" ADD "password" varchar(255)[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914141313')[0m
+ [4;35;1mSQL (0.2ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.1ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:14:33) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+
+ActionView::TemplateError (undefined method `password_confirmation' for #<User:0xb6f9cd2c>) on line #8 of app/views/users/_form.erb:
+5: <%= form.password_field :password %><br />
+6: <br />
+7: <%= form.label :password_confirmation %><br />
+8: <%= form.password_field :password_confirmation %><br />
+9: <br />
+10: <%= form.label :email %><br />
+11: <%= form.text_field :email %><br />
+
+ app/views/users/_form.erb:8
+ app/views/users/new.html.erb:6
+ app/views/users/new.html.erb:4
+
+Rendered rescues/_trace (56.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:15:30) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+
+ActionView::TemplateError (uninitialized constant User::COUNTRIES) on line #14 of app/views/users/_form.erb:
+11: <%= form.text_field :email %><br />
+12: <br/>
+13: <%= form.label :country %><br />
+14: <%= form.select :country, User::COUNTRIES, :prompt => "Select a country" %><br />
+15: <br/>
+16: <%= form.label :state %><br />
+17: <%= form.text_field :state %><br />
+
+ app/views/users/_form.erb:14
+ app/views/users/new.html.erb:6
+ app/views/users/new.html.erb:4
+
+Rendered rescues/_trace (116.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:16:48) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.9ms)
+Completed in 22ms (View: 11, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:17:22) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (3.5ms)
+Completed in 22ms (View: 12, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:17:52) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.4ms)
+Completed in 23ms (View: 12, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:18:09) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:19:24) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 19ms (View: 9, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#show (for 127.0.0.1 at 2010-09-14 11:19:27) [GET]
+ Parameters: {"action"=>"show", "controller"=>"users"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 10ms (DB: 0) | 302 Found [http://localhost/account]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:19:27) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:19:39) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.4ms)
+Completed in 18ms (View: 8, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:20:05) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.6ms)
+Completed in 21ms (View: 12, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:20:07) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.8ms)
+Completed in 72ms (View: 9, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:08) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:20:09) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.3ms)
+Completed in 18ms (View: 8, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:20:10) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/new]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:10) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 14ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:20:16) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 60ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:20:19) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.4ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.7ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:21) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:21) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:22) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:22) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 65ms (View: 16, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:26) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 10ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:26) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:26) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:26) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:26) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:26) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 17ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:26) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:27) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:20:27) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/posts/2/comments]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:27) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 14ms (View: 5, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:20:31) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:42) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-14 11:20:43) [GET]
+
+ActionController::RoutingError (No route matches "/password_resets/new" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:20:55) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 15ms (View: 5, DB: 0) | 200 OK [http://localhost/login]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:20:56) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (2.4ms)
+Completed in 18ms (View: 8, DB: 0) | 200 OK [http://localhost/signup]
+
+
+Processing UsersController#create (for 127.0.0.1 at 2010-09-14 11:21:23) [POST]
+ Parameters: {"commit"=>"Register", "action"=>"create", "controller"=>"users", "user"=>{"password_confirmation"=>"[FILTERED]", "full_name"=>"Pablo Moreira Mora", "password"=>"[FILTERED]", "login"=>"pablo", "email"=>"[email protected]"}}
+ [4;35;1mUser Load (0.1ms)[0m [0mSELECT "users".id FROM "users" WHERE (LOWER("users"."email") = '[email protected]') LIMIT 1[0m
+ [4;36;1mUser Load (0.1ms)[0m [0;1mSELECT "users".id FROM "users" WHERE (LOWER("users"."login") = 'pablo') LIMIT 1[0m
+ [4;35;1mUser Load (0.1ms)[0m [0mSELECT "users".id FROM "users" WHERE ("users"."persistence_token" = '946f0c593a7550e2c89182f4dffa5c0c7675e37220002b21e60b26bfe722fc9b516f519ed89954c0fe554f7cb9afa97c08e75ec5f4a72ebbbc132ff4f323f8d7') LIMIT 1[0m
+ [4;36;1mUser Load (0.1ms)[0m [0;1mSELECT "users".id FROM "users" WHERE ("users"."single_access_token" = 'GXIg9JHxvJVPuaOZMBFI') LIMIT 1[0m
+ [4;35;1mUser Create (0.4ms)[0m [0mINSERT INTO "users" ("created_at", "single_access_token", "last_request_at", "crypted_password", "updated_at", "perishable_token", "failed_login_count", "current_login_ip", "password_salt", "current_login_at", "full_name", "persistence_token", "login_count", "last_login_ip", "login", "last_login_at", "password", "email", "active") VALUES('2010-09-14 14:21:24', 'GXIg9JHxvJVPuaOZMBFI', NULL, '6acff7ac57715ded8f5331d663ea90073e0061abaad1c350490d82b43f548ee82232b44c5741cddb20a4046983aa9c96be55ecacf1618715e776e027093d13f5', '2010-09-14 14:21:24', 'KbXlbsJnQZ83kRTIvyn', 0, NULL, 'cCr0npb6oPs1FIUxsz', NULL, 'Pablo Moreira Mora', '946f0c593a7550e2c89182f4dffa5c0c7675e37220002b21e60b26bfe722fc9b516f519ed89954c0fe554f7cb9afa97c08e75ec5f4a72ebbbc132ff4f323f8d7', 0, NULL, 'pablo', NULL, NULL, '[email protected]', 'f')[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:21:24', "perishable_token" = 'LdZDe7i1FJNKwYmKkEy' WHERE "id" = 1[0m
+ [4;35;1mSQL (0.4ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+
+NoMethodError (undefined method `deliver_activation_instructions' for Notifier(id: integer, created_at: datetime, updated_at: datetime):Class):
+ app/models/user.rb:40:in `deliver_activation_instructions!'
+ app/controllers/users_controller.rb:14:in `create'
+
+Rendered rescues/_trace (36.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UsersController#create (for 127.0.0.1 at 2010-09-14 11:23:10) [POST]
+ Parameters: {"commit"=>"Register", "action"=>"create", "controller"=>"users", "user"=>{"password_confirmation"=>"[FILTERED]", "full_name"=>"Pablo Moreira Mora", "password"=>"[FILTERED]", "login"=>"pablo", "email"=>"[email protected]"}}
+ [4;36;1mUser Load (0.2ms)[0m [0;1mSELECT "users".id FROM "users" WHERE (LOWER("users"."email") = '[email protected]') LIMIT 1[0m
+ [4;35;1mUser Load (0.1ms)[0m [0mSELECT "users".id FROM "users" WHERE (LOWER("users"."login") = 'pablo') LIMIT 1[0m
+ [4;36;1mUser Load (0.1ms)[0m [0;1mSELECT "users".id FROM "users" WHERE ("users"."persistence_token" = '999891e348b8ef58b8988b91d18df5ecd115a7ccee630d6eebb6649281136d19fb46584e9a3b215f0243c57ed03994c83ba87c13a31cf0b60766cfb8ccb17177') LIMIT 1[0m
+ [4;35;1mUser Load (0.1ms)[0m [0mSELECT "users".id FROM "users" WHERE ("users"."single_access_token" = 'M5l5qyYirahVS6ctuh') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering users/new
+Rendered users/_form (4.8ms)
+Completed in 30ms (View: 11, DB: 0) | 200 OK [http://localhost/account]
+
+
+Processing UsersController#create (for 127.0.0.1 at 2010-09-14 11:23:32) [POST]
+ Parameters: {"commit"=>"Register", "action"=>"create", "controller"=>"users", "user"=>{"password_confirmation"=>"[FILTERED]", "full_name"=>"Pablo Moreira Mora", "password"=>"[FILTERED]", "login"=>"pablo2", "email"=>"[email protected]"}}
+ [4;36;1mUser Load (0.1ms)[0m [0;1mSELECT "users".id FROM "users" WHERE (LOWER("users"."email") = '[email protected]') LIMIT 1[0m
+ [4;35;1mUser Load (0.1ms)[0m [0mSELECT "users".id FROM "users" WHERE (LOWER("users"."login") = 'pablo2') LIMIT 1[0m
+ [4;36;1mUser Load (0.1ms)[0m [0;1mSELECT "users".id FROM "users" WHERE ("users"."persistence_token" = 'cdd259b31af2ff8cbc5b9f16e470726bc9725c70d9c4611fb9eeac5f15adb061a84022d0909670f53199877165a94d4d6e1522c80a82659586a27521934fbedf') LIMIT 1[0m
+ [4;35;1mUser Load (0.0ms)[0m [0mSELECT "users".id FROM "users" WHERE ("users"."single_access_token" = 'IcRihCsLVqNznWQwNWbI') LIMIT 1[0m
+ [4;36;1mUser Create (0.3ms)[0m [0;1mINSERT INTO "users" ("created_at", "single_access_token", "last_request_at", "crypted_password", "updated_at", "perishable_token", "failed_login_count", "current_login_ip", "password_salt", "current_login_at", "full_name", "persistence_token", "login_count", "last_login_ip", "login", "last_login_at", "password", "email", "active") VALUES('2010-09-14 14:23:32', 'IcRihCsLVqNznWQwNWbI', NULL, 'd008fc872025c4d082ae535f66f55b1e5c370e906d53289403a935606073f9f2e323c673a172be06d5f9cdbcf2bbe8d8ae1584e9dfee8e23a3164af3c80ddd12', '2010-09-14 14:23:32', 'xmhd5fNOsOJKhxJ9tZs', 0, NULL, 'Aeq4IOQNUeDP21e3dIS', NULL, 'Pablo Moreira Mora', 'cdd259b31af2ff8cbc5b9f16e470726bc9725c70d9c4611fb9eeac5f15adb061a84022d0909670f53199877165a94d4d6e1522c80a82659586a27521934fbedf', 0, NULL, 'pablo2', NULL, NULL, '[email protected]', 'f')[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:23:32', "perishable_token" = 'IC99Y4pfw2dYFu8Qg6w' WHERE "id" = 2[0m
+Sent mail to [email protected]
+
+Date: Tue, 14 Sep 2010 11:23:32 -0300
+From: Holiday Reminder <[email protected]>
+To: [email protected]
+Subject: Activation Instructions
+Mime-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+
+ Thank you for creating an account! Click the url below to activate your account!
+
+ http://localhost/register/IC99Y4pfw2dYFu8Qg6w
+Redirected to http://localhost:3000/posts/2/comments
+Completed in 235ms (DB: 1) | 302 Found [http://localhost/account]
+
+
+Processing CommentsController#index (for 127.0.0.1 at 2010-09-14 11:23:32) [GET]
+ Parameters: {"action"=>"index", "post_id"=>"2", "controller"=>"comments"}
+
+ActionController::UnknownAction (No action responded to index. Actions: create):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing ActivationsController#new (for 127.0.0.1 at 2010-09-14 11:28:55) [GET]
+ Parameters: {"action"=>"new", "activation_code"=>"IC99Y4pfw2dYFu8Qg6w", "controller"=>"activations"}
+ [4;36;1mUser Load (0.6ms)[0m [0;1mSELECT * FROM "users" WHERE (perishable_token = 'IC99Y4pfw2dYFu8Qg6w' and updated_at > '2010-09-07 14:28:55') LIMIT 1[0m
+Rendering template within layouts/application
+Rendering activations/new
+Completed in 51ms (View: 19, DB: 1) | 200 OK [http://localhost/register/IC99Y4pfw2dYFu8Qg6w]
+
+
+Processing ActivationsController#create (for 127.0.0.1 at 2010-09-14 11:29:00) [POST]
+ Parameters: {"commit"=>"Activate", "action"=>"create", "id"=>"2", "controller"=>"activations"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 2) [0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:29:00', "perishable_token" = 'Rs7MKTOSWVClh3OFunB7', "active" = 't' WHERE "id" = 2[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:29:00', "perishable_token" = 'KkOswvwR3jdEQQBX6zaR' WHERE "id" = 2[0m
+Sent mail to [email protected]
+
+Date: Tue, 14 Sep 2010 11:29:00 -0300
+From: Holiday Reminder <[email protected]>
+To: [email protected]
+Subject: Activation Complete
+Mime-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+
+Your account has been activated.
+
+ http://localhost/login
+
+ If the above URL does not work try copying and pasting it into your browser.
+ If you continue to have problem, please feel free to contact us.
+Redirected to http://localhost:3000/account
+Completed in 288ms (DB: 1) | 302 Found [http://localhost/activate/2]
+
+
+Processing UsersController#show (for 127.0.0.1 at 2010-09-14 11:29:00) [GET]
+ Parameters: {"action"=>"show", "controller"=>"users"}
+Redirected to http://localhost:3000/user_session/new
+Filter chain halted as [:require_user] rendered_or_redirected.
+Completed in 9ms (DB: 0) | 302 Found [http://localhost/account]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:29:00) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+Rendering template within layouts/application
+Rendering user_sessions/new
+Completed in 20ms (View: 10, DB: 0) | 200 OK [http://localhost/user_session/new]
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 11:29:12) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE (LOWER("users".login) = 'pablo2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "login_count" = 1, "current_login_ip" = '127.0.0.1', "updated_at" = '2010-09-14 14:29:12', "perishable_token" = 'f2EtcX0KmbbvVEmZar', "last_request_at" = '2010-09-14 14:29:12', "current_login_at" = '2010-09-14 14:29:12' WHERE "id" = 2[0m
+
+ActionController::RoutingError (post_url failed to generate from {:controller=>"posts", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["posts", :id] - are they all satisfied?):
+ (eval):17:in `post_path'
+ app/controllers/user_sessions_controller.rb:14:in `create'
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#create (for 127.0.0.1 at 2010-09-14 11:30:51) [POST]
+ Parameters: {"commit"=>"Login", "user_session"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "login"=>"pablo2"}, "action"=>"create", "controller"=>"user_sessions"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:30:51', "perishable_token" = '6hS3EkXY1rG5jx8OrSt', "last_request_at" = '2010-09-14 14:30:51' WHERE "id" = 2[0m
+
+NameError (undefined local variable or method `admin_clients_path' for #<UserSessionsController:0xb6d90358>):
+ app/controllers/application_controller.rb:33:in `require_no_user'
+
+Rendered rescues/_trace (96.6ms)
+Rendered rescues/_request_and_response (1.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:31:41) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 25ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:31:43) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.3ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 76ms (View: 67, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:31:45) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.3ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:31:45', "perishable_token" = 'pSrD1yEzIWXXmEvqSQ', "last_request_at" = '2010-09-14 14:31:45' WHERE "id" = 2[0m
+
+NameError (undefined local variable or method `admin_clients_path' for #<UserSessionsController:0xb6ee33a4>):
+ app/controllers/application_controller.rb:33:in `require_no_user'
+
+Rendered rescues/_trace (39.0ms)
+Rendered rescues/_request_and_response (1.1ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:32:43) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:32:43', "perishable_token" = 'PwLjUIWn6gizSrZNk861', "last_request_at" = '2010-09-14 14:32:43' WHERE "id" = 2[0m
+
+ActionController::RoutingError (post_url failed to generate from {:controller=>"posts", :action=>"show"} - you may have ambiguous routes, or you may need to supply additional parameters for this route. content_url has the following required parameters: ["posts", :id] - are they all satisfied?):
+ (eval):17:in `post_path'
+ app/controllers/application_controller.rb:33:in `require_no_user'
+
+Rendering rescues/layout (not_found)
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:32:56) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:32:56', "perishable_token" = 'aik3m06Ov2O95ga2g3', "last_request_at" = '2010-09-14 14:32:56' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 98ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:32:56) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:33:28) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:28', "perishable_token" = 'l44YKUb52OTdcSuIkIsm', "last_request_at" = '2010-09-14 14:33:28' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.8ms)
+Completed in 111ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:33:31) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:33:33) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.6ms)
+Completed in 72ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:33:40) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:40', "perishable_token" = 'ohUeEQAzqwlFQF1r20p', "last_request_at" = '2010-09-14 14:33:40' WHERE "id" = 2[0m
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 14:33:40', '2010-09-14 14:33:40', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
+Rendered comments/_comment (1.7ms)
+Completed in 194ms (View: 4, DB: 1) | 200 OK [http://localhost/posts/2/comments]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:33:59) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:33:59', "perishable_token" = 'we1Tuiq2AhlJsVqHlsBy', "last_request_at" = '2010-09-14 14:33:59' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.3ms)
+Completed in 112ms (View: 5, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:37:16) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:37:16', "perishable_token" = 'RdSbcsX7NcFMH9SCIp3t', "last_request_at" = '2010-09-14 14:37:16' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (3.4ms)
+Completed in 137ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-14 11:38:01) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"body"=>"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.", "title"=>"post de prueba"}, "action"=>"create", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:38:01', "perishable_token" = 'gReG8TGGCOGIUNUpz20D', "last_request_at" = '2010-09-14 14:38:01' WHERE "id" = 2[0m
+ [4;35;1mPost Create (0.4ms)[0m [0mINSERT INTO "posts" ("created_at", "title", "body", "author", "updated_at") VALUES('2010-09-14 14:38:01', 'post de prueba', 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don''t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn''t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.', 'Pablo Moreira Mora', '2010-09-14 14:38:01')[0m
+Redirected to http://localhost:3000/posts
+Completed in 173ms (DB: 1) | 302 Found [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:38:01) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:38:37) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
+ [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
+Migrating to CreatePosts (20100913141458)
+Migrating to CreateComments (20100913141627)
+Migrating to AddAuthorPost (20100913142339)
+Migrating to CreateNotifiers (20100914125209)
+Migrating to CreateUserSessions (20100914125225)
+Migrating to CreateUser (20100914133546)
+Migrating to PasswordByUser (20100914141313)
+Migrating to AuthorByComment (20100914143933)
+ [4;36;1mSQL (0.1ms)[0m [0;1mselect sqlite_version(*)[0m
+ [4;35;1mSQL (0.4ms)[0m [0mALTER TABLE "comments" ADD "author" varchar(255)[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO schema_migrations (version) VALUES ('20100914143933')[0m
+ [4;35;1mSQL (0.2ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM schema_migrations[0m
+ [4;35;1mSQL (0.1ms)[0m [0m SELECT name
+ FROM sqlite_master
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
+[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("comments")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("notifiers")[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_list("posts")[0m
+ [4;35;1mSQL (0.0ms)[0m [0mPRAGMA index_list("user_sessions")[0m
+ [4;36;1mSQL (0.1ms)[0m [0;1mPRAGMA index_list("users")[0m
+ [4;35;1mSQL (0.1ms)[0m [0mPRAGMA index_info('index_users_on_email')[0m
+ [4;36;1mSQL (0.0ms)[0m [0;1mPRAGMA index_info('index_users_on_perishable_token')[0m
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:45:42) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 21ms (View: 13, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:46:54) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.5ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:46:54', "perishable_token" = 'WjJABqdJ96ziVlQCclXQ', "last_request_at" = '2010-09-14 14:46:54' WHERE "id" = 2[0m
+Rendered comments/_comment (125.8ms)
+Rendered comments/_comment (1.3ms)
+Rendered comments/_comment (1.2ms)
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (1.5ms)
+Rendered comments/_comment (1.1ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.5ms)
+Completed in 154ms (View: 145, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:03) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:03', "perishable_token" = '6D4fjAgNoxhK032uZ4', "last_request_at" = '2010-09-14 14:47:03' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (91.8ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = 'pI5b9zQi099qYWWi3x9S', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (34.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = '8FAYopIOyORX7INESll5', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (102.2ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:05) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:05', "perishable_token" = 'jgJYDCNvdO3MDHDBIFF', "last_request_at" = '2010-09-14 14:47:05' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (35.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:06) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:06', "perishable_token" = 'X9ajhpACm7V2YXXosQu', "last_request_at" = '2010-09-14 14:47:06' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (101.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:06) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:06', "perishable_token" = 'HaEMKHgXOuuWRSG4weQy', "last_request_at" = '2010-09-14 14:47:06' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (34.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:47:10) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:47:10', "perishable_token" = 'z1LK37l4XkYSH6ns8Lt', "last_request_at" = '2010-09-14 14:47:10' WHERE "id" = 2[0m
+
+NoMethodError (undefined method `comments' for nil:NilClass):
+ app/controllers/comments_controller.rb:7:in `create'
+
+Rendered rescues/_trace (91.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:49:04) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.2ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.7ms)
+Completed in 25ms (View: 17, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-14 11:49:54) [GET]
+ Parameters: {"action"=>"show", "id"=>"2", "controller"=>"posts"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 22ms (View: 14, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-14 11:50:00) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "action"=>"create", "post_id"=>"2", "controller"=>"comments", "_"=>""}
+ [4;35;1mUser Load (40.4ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:00', "perishable_token" = 'h3lQUzgnQsAjuzVlHoLf', "last_request_at" = '2010-09-14 14:50:00' WHERE "id" = 2[0m
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "author", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-14 14:50:00', 'Pablo Moreira Mora', '2010-09-14 14:50:00', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
+Rendered comments/_comment (2.1ms)
+Completed in 249ms (View: 4, DB: 41) | 200 OK [http://localhost/posts/2/comments]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:50:08) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:08', "perishable_token" = '3pAn3egxgIfGJzhEIWW', "last_request_at" = '2010-09-14 14:50:08' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (2.5ms)
+Completed in 108ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:50:10) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.2ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:10', "perishable_token" = 'mmPsutb6kqp4059d1OPC', "last_request_at" = '2010-09-14 14:50:10' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 101ms (DB: 0) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:10) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (3.0ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 13ms (View: 5, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:50:12) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:12', "perishable_token" = 'YxRY2Nwa9WVWM2VBsk60', "last_request_at" = '2010-09-14 14:50:12' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 106ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:12) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 68ms (View: 6, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:13) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing UserSessionsController#new (for 127.0.0.1 at 2010-09-14 11:50:14) [GET]
+ Parameters: {"action"=>"new", "controller"=>"user_sessions"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:14', "perishable_token" = 'UmDnfSYVognxPEXD35O', "last_request_at" = '2010-09-14 14:50:14' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 98ms (DB: 1) | 302 Found [http://localhost/login]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:14) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (2.3ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 13ms (View: 6, DB: 2) | 200 OK [http://localhost/posts]
+
+
+Processing UsersController#new (for 127.0.0.1 at 2010-09-14 11:50:19) [GET]
+ Parameters: {"action"=>"new", "controller"=>"users"}
+ [4;36;1mUser Load (0.3ms)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;35;1mUser Update (0.3ms)[0m [0mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:19', "perishable_token" = 'egR2xG6N4qo7yxq9bnnA', "last_request_at" = '2010-09-14 14:50:19' WHERE "id" = 2[0m
+Redirected to http://localhost:3000/posts
+Filter chain halted as [:require_no_user] rendered_or_redirected.
+Completed in 101ms (DB: 1) | 302 Found [http://localhost/signup]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:19) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;36;1mPost Load (4.8ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 14ms (View: 5, DB: 5) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-14 11:50:21) [GET]
+ Parameters: {"action"=>"new", "controller"=>"posts"}
+ [4;35;1mUser Load (0.3ms)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = '2') LIMIT 1[0m
+ [4;36;1mUser Update (0.2ms)[0m [0;1mUPDATE "users" SET "updated_at" = '2010-09-14 14:50:21', "perishable_token" = 'KxJfxY8HmOpmZuxc8eu', "last_request_at" = '2010-09-14 14:50:21' WHERE "id" = 2[0m
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.9ms)
+Completed in 103ms (View: 6, DB: 1) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-14 11:50:23) [GET]
+ Parameters: {"action"=>"index", "controller"=>"posts"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml
new file mode 100644
index 0000000..c1f155a
--- /dev/null
+++ b/nbproject/private/private.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
+ <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
+</project-private>
diff --git a/test/fixtures/notifiers.yml b/test/fixtures/notifiers.yml
new file mode 100644
index 0000000..2893341
--- /dev/null
+++ b/test/fixtures/notifiers.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/user_sessions.yml b/test/fixtures/user_sessions.yml
new file mode 100644
index 0000000..2893341
--- /dev/null
+++ b/test/fixtures/user_sessions.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml
new file mode 100644
index 0000000..2893341
--- /dev/null
+++ b/test/fixtures/users.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/functional/activations_controller_test.rb b/test/functional/activations_controller_test.rb
new file mode 100644
index 0000000..c88584c
--- /dev/null
+++ b/test/functional/activations_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class ActivationsControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/functional/user_sessions_controller_test.rb b/test/functional/user_sessions_controller_test.rb
new file mode 100644
index 0000000..5024b23
--- /dev/null
+++ b/test/functional/user_sessions_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UserSessionsControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
new file mode 100644
index 0000000..c3db123
--- /dev/null
+++ b/test/functional/users_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UsersControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/functional/usersessions_controller_test.rb b/test/functional/usersessions_controller_test.rb
new file mode 100644
index 0000000..8bfc04b
--- /dev/null
+++ b/test/functional/usersessions_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UsersessionsControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/helpers/activations_helper_test.rb b/test/unit/helpers/activations_helper_test.rb
new file mode 100644
index 0000000..f710f90
--- /dev/null
+++ b/test/unit/helpers/activations_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class ActivationsHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/helpers/user_sessions_helper_test.rb b/test/unit/helpers/user_sessions_helper_test.rb
new file mode 100644
index 0000000..20dabdf
--- /dev/null
+++ b/test/unit/helpers/user_sessions_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class UserSessionsHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/helpers/users_helper_test.rb b/test/unit/helpers/users_helper_test.rb
new file mode 100644
index 0000000..96af37a
--- /dev/null
+++ b/test/unit/helpers/users_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class UsersHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/helpers/usersessions_helper_test.rb b/test/unit/helpers/usersessions_helper_test.rb
new file mode 100644
index 0000000..fdf45c2
--- /dev/null
+++ b/test/unit/helpers/usersessions_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class UsersessionsHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/notifier_test.rb b/test/unit/notifier_test.rb
new file mode 100644
index 0000000..1a61566
--- /dev/null
+++ b/test/unit/notifier_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class NotifierTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/user_session_test.rb b/test/unit/user_session_test.rb
new file mode 100644
index 0000000..334c3c2
--- /dev/null
+++ b/test/unit/user_session_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UserSessionTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
new file mode 100644
index 0000000..a64d2d3
--- /dev/null
+++ b/test/unit/user_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UserTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
|
pablodv/blogajax
|
978094811ea32b579e8871181d916a3baa824b75
|
Refactoring
|
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
new file mode 100644
index 0000000..a2d6ead
--- /dev/null
+++ b/app/controllers/comments_controller.rb
@@ -0,0 +1,19 @@
+class CommentsController < ApplicationController
+
+
+ def create
+ @post = Post.find(params[:post_id])
+ @comment = @post.comments.new(params[:comment])
+
+ if @comment.save
+ flash[:notice] = 'Comment was successfully added.'
+
+ render :update do |page|
+ page.insert_html :bottom, 'comments', :partial => 'comment'
+ page[:comment_comment].clear
+ #page["comment_#commentsp"].visual_effect :highlight, :duration => 3.5
+
+ end
+ end
+ end
+end
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index 4cc4ca5..f44aa59 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -1,45 +1,26 @@
class PostsController < ApplicationController
def index
@posts = Post.find(:all, :order => 'created_at DESC')
end
def new
@post = Post.new
end
def create
@post = Post.new(params[:post])
if @post.save
flash[:notice] = 'Post was successfully created.'
redirect_to :action => 'index'
else
render :action => 'new'
end
end
def show
- @post = Post.find(params[:id])
- session[:post_id] = params[:id]
+ @post = Post.find(params[:id])
@comments = @post.comments.collect
end
- def comment
- @comment = Comment.new(
- :post_id => session[:post_id],
- :created_at => Time.now,
- :comment => params[:comment][:comment]
- )
-
- if @comment.save
- flash[:notice] = 'Comment was successfully added.'
- #redirect_to :action=> 'show', :id => flash[:post_id]
- render :update do |page|
- page.insert_html :bottom, 'comments', :partial => 'comment'
- page[:comment_comment].clear
- #page["comment_#commentsp"].visual_effect :highlight, :duration => 3.5
- flash.keep(:post_id)
- end
- end
- end
end
diff --git a/app/models/comment.rb b/app/models/comment.rb
index d89a75d..aeee939 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -1,5 +1,5 @@
class Comment < ActiveRecord::Base
belongs_to :post
- #validates_presence_of :comment
+ validates_presence_of :comment
end
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb
new file mode 100644
index 0000000..b48b691
--- /dev/null
+++ b/app/views/comments/_comment.html.erb
@@ -0,0 +1,11 @@
+
+
+ <blockquote id="commentsp">
+ <p>
+ <%= h comment.comment %><br/>
+ </p>
+ </blockquote>
+ <div style="color: #999; font-size: 8pt">
+ Posted on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
+ </div>
+
\ No newline at end of file
diff --git a/app/views/posts/new.html.erb b/app/views/posts/new.html.erb
index a15df43..bcbd6fa 100644
--- a/app/views/posts/new.html.erb
+++ b/app/views/posts/new.html.erb
@@ -1,8 +1,8 @@
<h1>New post</h1>
<% form_tag :action => 'create' do %>
<%= render :partial => 'form' %>
<%= submit_tag "Create" %>
<% end %>
-
+<br/>
<%= link_to 'Back', :action => 'index' %>
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index 9622840..e560559 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -1,21 +1,22 @@
<%= @post.title %><br />
<br/>
<%= @post.body %><br/>
<br/>
<h4>Comments</h4>
<ul>
<div id="comments">
- <% @comments.each do |comment| %>
- <%#= render @comments %> <%= render :partial=>"comment", :object => comment %>
- <% end %>
+ <%# @comments.each do |comment| %>
+ <%= render @comments %> <%#= render :partial=>"comment", :object => comment %>
+ <%# end %>
</div>
</ul>
<%= error_messages_for 'comment' %>
-<% form_remote_tag :url => {:action => :comment} do %>
- <p><label for="comment_comment">Comment</label><br/>
- <%= text_area :comment, :comment %></p>
- <%= submit_tag "Post" %>
+<% form_remote_for :comment, @comment, :url => post_comments_path(@post, @comment) do |f|%>
+ <p>
+ <%= f.label 'Comment' %><br/>
+ <%= f.text_area :comment %></p>
+ <%= f.submit "Post" %>
<% end %>
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index dc9d7d6..a6904e5 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index 0038fcc..a25c460 100644
--- a/log/development.log
+++ b/log/development.log
@@ -3666,512 +3666,1167 @@ Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:36:15) [GET]
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:17) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
NameError (uninitialized constant CommentsController):
Rendered rescues/_trace (29.3ms)
Rendered rescues/_request_and_response (1.3ms)
Rendering rescues/layout (internal_server_error)
Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:18) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
NameError (uninitialized constant CommentsController):
Rendered rescues/_trace (80.8ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:18) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
NameError (uninitialized constant CommentsController):
Rendered rescues/_trace (28.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:18) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
NameError (uninitialized constant CommentsController):
Rendered rescues/_trace (29.0ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:19) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
NameError (uninitialized constant CommentsController):
Rendered rescues/_trace (89.0ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:19) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
NameError (uninitialized constant CommentsController):
Rendered rescues/_trace (34.2ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:36:45) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 17ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:36:46) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:38:45) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:38:46) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.3ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:38:46', '2010-09-13 18:38:46', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.9ms)
Completed in 121ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:39:05) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 18ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:07) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:08) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:08) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:30) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:39:42) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (3.6ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 18ms (View: 5, DB: 4) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:43) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:39:43', '2010-09-13 18:39:43', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.0ms)
Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:44:28) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:44:28', '2010-09-13 18:44:28', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.0ms)
Completed in 107ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:45:11) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:45:12) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:45:12', '2010-09-13 18:45:12', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.0ms)
Completed in 92ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:45) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:46:46) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:46:46', '2010-09-13 18:46:46', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (0.9ms)
Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:54) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.8ms)
Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:55) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:56) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:56) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.6ms)
Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:46:59) [GET]
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:00) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:47:05) [GET]
[4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:06) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:47:08) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:47:08', '2010-09-13 18:47:08', 1)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (53.8ms)
Completed in 149ms (View: 56, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:09) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.8ms)
Rendered posts/_comment (0.5ms)
Completed in 16ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:10) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Completed in 14ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:10) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Rendered posts/_comment (0.5ms)
Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:11) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.6ms)
Rendered posts/_comment (0.5ms)
Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:11) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Rendered posts/_comment (0.5ms)
Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:11) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.6ms)
Rendered posts/_comment (0.5ms)
Completed in 14ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:47:12) [GET]
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:13) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:14) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.7ms)
Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#new (for 127.0.0.1 at 2010-09-13 15:59:58) [GET]
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (2.1ms)
Completed in 63ms (View: 59, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#create (for 127.0.0.1 at 2010-09-13 16:00:00) [POST]
Parameters: {"commit"=>"Create", "post"=>{"author"=>"", "body"=>"", "title"=>""}, "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU="}
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (5.7ms)
Completed in 15ms (View: 9, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 16:01:15) [GET]
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:01:16) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:17) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
Rendering rescues/layout (internal_server_error)
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:02:28) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-13 16:02:28', '2010-09-13 19:02:28', 2)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.0ms)
Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-13 16:12:48) [GET]
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.3ms)
+Completed in 11ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-13 16:14:40) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"author"=>"", "body"=>"", "title"=>""}, "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU="}
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (5.2ms)
+Completed in 14ms (View: 8, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-13 16:15:14) [GET]
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.4ms)
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#show to html (for 127.0.0.1 at 2010-09-13 16:16:37) [GET]
+ Parameters: {"id"=>"index"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 0) [0m
+
+ActiveRecord::RecordNotFound (Couldn't find Post with ID=index):
+ app/controllers/posts_controller.rb:22:in `show'
+
+Rendered rescues/_trace (34.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 16:16:44) [GET]
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:25:12) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.8ms)
+Rendered posts/_comment (0.5ms)
+Completed in 15ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:25:30) [POST]
+ Parameters: {"comment"=>{"comment"=>"It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum', '2010-09-13 16:25:30', '2010-09-13 19:25:30', 1)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 85ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 16:31:34) [GET]
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:31:35) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:31:38) [POST]
+ Parameters: {"comment"=>{"comment"=>"It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum', '2010-09-13 16:31:38', '2010-09-13 19:31:38', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 94ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:47:39) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (5.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+
+ActionView::TemplateError (undefined method `merge' for :comment:Symbol) on line #17 of app/views/posts/show.html.erb:
+14: <%= error_messages_for 'comment' %>
+15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
+16: <p><label for="comment_comment">Comment</label><br/>
+17: <%= f.text_area :comment, :comment %></p>
+18: <%= f.submit "Post" %>
+19: <% end %>
+
+ app/views/posts/show.html.erb:17
+ app/views/posts/show.html.erb:15
+
+Rendered rescues/_trace (95.8ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:47:57) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+
+ActionView::TemplateError (undefined method `comment' for #<Post:0xb6fe7070>) on line #17 of app/views/posts/show.html.erb:
+14: <%= error_messages_for 'comment' %>
+15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
+16: <p><label for="comment_comment">Comment</label><br/>
+17: <%= f.text_area :comment %></p>
+18: <%= f.submit "Post" %>
+19: <% end %>
+
+ app/views/posts/show.html.erb:17
+ app/views/posts/show.html.erb:15
+
+Rendered rescues/_trace (108.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:49:11) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.8ms)
+Rendered posts/_comment (0.5ms)
+
+ActionView::TemplateError (undefined method `comment' for #<Post:0xb70c4010>) on line #17 of app/views/posts/show.html.erb:
+14: <%= error_messages_for 'comment' %>
+15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
+16: <%#*<p><label for="comment_comment">Comment</label><br/>%>
+17: <%= f.text_area :comment %></p>
+18: <%= f.submit "Post" %>
+19: <% end %>
+
+ app/views/posts/show.html.erb:17
+ app/views/posts/show.html.erb:15
+
+Rendered rescues/_trace (47.7ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:49:13) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+
+ActionView::TemplateError (undefined method `comment' for #<Post:0xb6f0e4f0>) on line #17 of app/views/posts/show.html.erb:
+14: <%= error_messages_for 'comment' %>
+15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
+16: <%#*<p><label for="comment_comment">Comment</label><br/>%>
+17: <%= f.text_area :comment %></p>
+18: <%= f.submit "Post" %>
+19: <% end %>
+
+ app/views/posts/show.html.erb:17
+ app/views/posts/show.html.erb:15
+
+Rendered rescues/_trace (109.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:49:14) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+
+ActionView::TemplateError (undefined method `comment' for #<Post:0xb6fecffc>) on line #17 of app/views/posts/show.html.erb:
+14: <%= error_messages_for 'comment' %>
+15: <% form_remote_for @post, :url => post_comments_path(@post) do |f|%>
+16: <%#*<p><label for="comment_comment">Comment</label><br/>%>
+17: <%= f.text_area :comment %></p>
+18: <%= f.submit "Post" %>
+19: <% end %>
+
+ app/views/posts/show.html.erb:17
+ app/views/posts/show.html.erb:15
+
+Rendered rescues/_trace (47.3ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:52:13) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:52:58) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 21ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:53:08) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 20ms (View: 13, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:19) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
+
+
+Rendered rescues/_trace (74.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (method_not_allowed)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:20) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
+
+
+Rendered rescues/_trace (25.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (method_not_allowed)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:20) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
+
+
+Rendered rescues/_trace (25.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (method_not_allowed)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 16:53:20) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionController::MethodNotAllowed (Only get, put, and delete requests are allowed.):
+
+
+Rendered rescues/_trace (25.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (method_not_allowed)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:54:49) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.6ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.7ms)
+
+ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #15 of app/views/posts/show.html.erb:
+12: </div>
+13: </ul>
+14: <%= error_messages_for 'comment' %>
+15: <% form_remote_for ([@post, @comment]) do |f|%>
+16: <p><%#*<label for="comment_comment">Comment</label><br/>%>
+17: <%= f.label 'Comment' %><br/>
+18: <%= f.text_area :comment %></p>
+
+ app/views/posts/show.html.erb:15
+
+Rendered rescues/_trace (43.5ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:56:28) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 16:56:30) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 16:56:30', '2010-09-13 19:56:30', 2)[0m
+
+ActionView::MissingTemplate (Missing template comments/_comment.erb in view path app/views):
+ app/controllers/comments_controller.rb:13:in `create'
+ app/controllers/comments_controller.rb:12:in `create'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:30) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.7ms)
+Completed in 20ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:34) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 17ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:34) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:35) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 18ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:35) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.8ms)
+Rendered posts/_comment (0.6ms)
+Rendered posts/_comment (0.6ms)
+Rendered posts/_comment (0.7ms)
+Completed in 20ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:35) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 18ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:36) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:00:36) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:00:42) [POST]
+ Parameters: {"comment"=>{"comment"=>"pablito"}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('pablito', '2010-09-13 20:00:42', '2010-09-13 20:00:42', 2)[0m
+
+ActionView::MissingTemplate (Missing template comments/_comment.erb in view path app/views):
+ app/controllers/comments_controller.rb:17:in `create'
+ app/controllers/comments_controller.rb:16:in `create'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:00:44) [POST]
+ Parameters: {"comment"=>{"comment"=>"pablito"}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('pablito', '2010-09-13 20:00:44', '2010-09-13 20:00:44', 2)[0m
+
+ActionView::MissingTemplate (Missing template comments/_comment.erb in view path app/views):
+ app/controllers/comments_controller.rb:17:in `create'
+ app/controllers/comments_controller.rb:16:in `create'
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:01:16) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 19ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:02:28) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 20:02:28', '2010-09-13 20:02:28', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47comments47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/comments/_comment.html.erb:9)
+Rendered comments/_comment (1.8ms)
+Completed in 111ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/2/comments]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:03:38) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (5.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (Missing template posts/_comment.erb in view path app/views) on line #10 of app/views/posts/show.html.erb:
+7: <ul>
+8: <div id="comments">
+9: <% @comments.each do |comment| %>
+10: <%#= render @comments %> <%= render :partial=>"comment", :object => comment %>
+11: <% end %>
+12: </div>
+13: </ul>
+
+ app/views/posts/show.html.erb:10
+ app/views/posts/show.html.erb:9:in `each'
+ app/views/posts/show.html.erb:9
+
+Rendered rescues/_trace (98.1ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:04:19) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.8ms)
+Rendered comments/_comment (0.7ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.6ms)
+Rendered comments/_comment (0.3ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.3ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.4ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Rendered comments/_comment (0.2ms)
+Completed in 37ms (View: 28, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:04:57) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.5ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 23ms (View: 15, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 17:05:41) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.6ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Rendered comments/_comment (0.5ms)
+Completed in 25ms (View: 16, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:43) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+
+ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:44) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+
+ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:44) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+
+ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing CommentsController#create (for 127.0.0.1 at 2010-09-13 17:05:44) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "post_id"=>"2", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+
+ActionView::MissingTemplate (Missing template comments/create.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
|
pablodv/blogajax
|
eef7a17974556bb311bd8e0f40ebbb4cb92c7fd8
|
Arreglado
|
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index b1c5f65..4cc4ca5 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -1,43 +1,45 @@
class PostsController < ApplicationController
def index
@posts = Post.find(:all, :order => 'created_at DESC')
end
def new
@post = Post.new
end
def create
@post = Post.new(params[:post])
if @post.save
flash[:notice] = 'Post was successfully created.'
redirect_to :action => 'index'
else
render :action => 'new'
end
end
def show
@post = Post.find(params[:id])
+ session[:post_id] = params[:id]
@comments = @post.comments.collect
end
- def comment
- @comment = Comment.new(
- :post_id => flash[:post_id],
+ def comment
+ @comment = Comment.new(
+ :post_id => session[:post_id],
:created_at => Time.now,
:comment => params[:comment][:comment]
)
+
if @comment.save
flash[:notice] = 'Comment was successfully added.'
#redirect_to :action=> 'show', :id => flash[:post_id]
render :update do |page|
page.insert_html :bottom, 'comments', :partial => 'comment'
page[:comment_comment].clear
#page["comment_#commentsp"].visual_effect :highlight, :duration => 3.5
- #flash.keep(:post_id)
+ flash.keep(:post_id)
end
end
end
end
diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb
new file mode 100644
index 0000000..0ec9ca5
--- /dev/null
+++ b/app/helpers/comments_helper.rb
@@ -0,0 +1,2 @@
+module CommentsHelper
+end
diff --git a/app/models/comment.rb b/app/models/comment.rb
index 4e76c5b..d89a75d 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -1,3 +1,5 @@
class Comment < ActiveRecord::Base
belongs_to :post
+
+ #validates_presence_of :comment
end
diff --git a/app/models/post.rb b/app/models/post.rb
index 6ad2382..61f80dc 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -1,3 +1,5 @@
class Post < ActiveRecord::Base
has_many :comments
+
+ validates_presence_of :title, :body
end
diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb
index d5a1406..75296dc 100644
--- a/app/views/posts/index.html.erb
+++ b/app/views/posts/index.html.erb
@@ -1,6 +1,6 @@
<% @posts.each do |p| %>
- <%= link_to p.title, p %>
+<h1><%= link_to p.title, p %></h1>
<div class="descr"><%= p.author %></div>
<%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
<br/>
<% end %>
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index 9e51277..9622840 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -1,21 +1,21 @@
<%= @post.title %><br />
<br/>
<%= @post.body %><br/>
<br/>
<h4>Comments</h4>
<ul>
<div id="comments">
<% @comments.each do |comment| %>
- <%= render :partial=>"comment", :object => comment %>
+ <%#= render @comments %> <%= render :partial=>"comment", :object => comment %>
<% end %>
</div>
</ul>
-
+<%= error_messages_for 'comment' %>
<% form_remote_tag :url => {:action => :comment} do %>
<p><label for="comment_comment">Comment</label><br/>
<%= text_area :comment, :comment %></p>
<%= submit_tag "Post" %>
<% end %>
diff --git a/config/routes.rb b/config/routes.rb
index e4ba038..e5f707b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,44 +1,46 @@
ActionController::Routing::Routes.draw do |map|
map.resources :posts, :has_many => :comments
+ map.resources :comments
+
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# map.resources :products
# Sample resource route with options:
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
# Sample resource route with sub-resources:
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
# Sample resource route with more complex sub-resources
# map.resources :products do |products|
# products.resources :comments
# products.resources :sales, :collection => { :recent => :get }
# end
# Sample resource route within a namespace:
# map.namespace :admin do |admin|
# # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
# admin.resources :products
# end
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
# See how all your routes lay out with "rake routes"
# Install the default routes as the lowest priority.
# Note: These default routes make all actions in every controller accessible via GET requests. You should
# consider removing or commenting them out if you're using named routes and resources.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
diff --git a/db/development.sqlite3 b/db/development.sqlite3
index b469ee5..dc9d7d6 100644
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ
diff --git a/log/development.log b/log/development.log
index 7cc1ac2..0038fcc 100644
--- a/log/development.log
+++ b/log/development.log
@@ -602,512 +602,3576 @@ Rendered rescues/_trace (41.8ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:04:19) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (42.7ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:04:35) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:48) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:49) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:50) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:50) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:50) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:50) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:04:51) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
ActionController::UnknownAction (No action responded to post_comment. Actions: create, index, new, and show):
Rendering rescues/layout (not_found)
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:06:57) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum', '2010-09-13 12:06:57', '2010-09-13 15:06:57', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:3)
Rendered posts/_comment (2.5ms)
Completed in 87ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/post_comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:08:31) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (97.5ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
[4;35;1mComment Create (0.3ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Pablo', '2010-09-13 12:10:06', '2010-09-13 15:10:06', 1)[0m
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:10:17) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (42.1ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:10:18) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (102.6ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:10:19) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (42.0ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:10:19) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (100.4ms)
Rendered rescues/_request_and_response (0.3ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:10:19) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (42.1ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:10:19) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each) on line #9 of app/views/posts/show.html.erb:
6:
7: <ul>
8: <div id="comments">
9: <% @post_comments.each do |comment| %>
10: <%= render :partial=>"comment", :object => comment %>
11: <% end %>
12: </div>
app/views/posts/show.html.erb:9
Rendered rescues/_trace (43.8ms)
Rendered rescues/_request_and_response (0.2ms)
Rendering rescues/layout (internal_server_error)
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:11:38) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.6ms)
Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:11:55) [POST]
Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:11:55', '2010-09-13 15:11:55', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:3)
Rendered posts/_comment (1.2ms)
Completed in 76ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/post_comment]
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:12:01) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. ', '2010-09-13 12:12:01', '2010-09-13 15:12:01', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:3)
Rendered posts/_comment (1.2ms)
Completed in 86ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/post_comment]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:12:15) [GET]
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:12:18) [GET]
Parameters: {"id"=>"1"}
[4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (2.2ms)
Completed in 18ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#post_comment (for 127.0.0.1 at 2010-09-13 12:12:24) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. ', '2010-09-13 12:12:24', '2010-09-13 15:12:24', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:1)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:3)
Rendered posts/_comment (1.3ms)
Completed in 73ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/post_comment]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:16:32) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (2.0ms)
Completed in 20ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:16:57) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (2.0ms)
Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:18:07) [GET]
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:18:08) [GET]
Parameters: {"id"=>"2"}
[4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#new (for 127.0.0.1 at 2010-09-13 12:18:11) [GET]
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.5ms)
Completed in 10ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:18:12) [GET]
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:18:14) [GET]
Parameters: {"id"=>"1"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
[4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
Rendering template within layouts/application
Rendering posts/show
Rendered posts/_comment (1.5ms)
Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:18:29) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', '2010-09-13 12:18:29', '2010-09-13 15:18:29', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.0ms)
Completed in 87ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:20:00) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', '2010-09-13 12:20:00', '2010-09-13 15:20:00', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (0.9ms)
Completed in 93ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:20:19) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', '2010-09-13 12:20:19', '2010-09-13 15:20:19', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (0.9ms)
Completed in 80ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#new (for 127.0.0.1 at 2010-09-13 12:21:55) [GET]
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.3ms)
Completed in 8ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:22:03) [GET]
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:22:05) [GET]
Parameters: {"id"=>"2"}
[4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
[4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
Rendering template within layouts/application
Rendering posts/show
Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:22:13) [POST]
Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
[4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', '2010-09-13 12:22:13', '2010-09-13 15:22:13', NULL)[0m
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
Rendered posts/_comment (1.0ms)
Completed in 133ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
Processing PostsController#new (for 127.0.0.1 at 2010-09-13 12:22:17) [GET]
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.6ms)
Completed in 11ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:22:19) [GET]
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#new (for 127.0.0.1 at 2010-09-13 12:22:20) [GET]
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.4ms)
Completed in 10ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#new (for 127.0.0.1 at 2010-09-13 12:23:10) [GET]
Rendering template within layouts/application
Rendering posts/new
Rendered posts/_form (1.3ms)
Completed in 13ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/new]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:23:12) [GET]
[4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:24:24) [GET]
[4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 12ms (View: 8, DB: 0) | 200 OK [http://localhost/posts]
Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:24:34) [GET]
[4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
Rendering template within layouts/application
Rendering posts/index
Completed in 12ms (View: 7, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:33:46) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:41:34) [GET]
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:45:38) [GET]
+ [4;35;1mPost Load (0.5ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:45:40) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 14ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:45:46) [GET]
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:45:47) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+
+ActionView::TemplateError (Missing template comments/_comment.erb in view path app/views) on line #10 of app/views/posts/show.html.erb:
+7: <ul>
+8: <div id="comments">
+9: <%# @comments.each do |comment| %>
+10: <%= render @comments %> <%#= render :partial=>"comment", :object => comment %>
+11: <%# end %>
+12: </div>
+13: </ul>
+
+ app/views/posts/show.html.erb:10
+
+Rendered rescues/_trace (99.2ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:48:11) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.2ms)
+Completed in 18ms (View: 10, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:48:25) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', '2010-09-13 12:48:25', '2010-09-13 15:48:25', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 86ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:48:37) [GET]
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:48:38) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:48:40) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:48:42) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (2.0ms)
+Completed in 62ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:49:56) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', '2010-09-13 12:49:56', '2010-09-13 15:49:56', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.1ms)
+Completed in 113ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:49:58) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', '2010-09-13 12:49:58', '2010-09-13 15:49:58', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 86ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:50:01) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.4ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', '2010-09-13 12:50:01', '2010-09-13 15:50:01', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 89ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:50:02) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.5ms)
+Completed in 18ms (View: 6, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:50:08) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', '2010-09-13 12:50:08', '2010-09-13 15:50:08', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.1ms)
+Completed in 70ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:50:14) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:50:14', '2010-09-13 15:50:14', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 64ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:50:17) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered comments/_comment (1.7ms)
+Completed in 19ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 12:50:22) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:50:24) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:50:29) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry. "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', '2010-09-13 12:50:29', '2010-09-13 15:50:29', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 83ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:50:32) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:50:32', '2010-09-13 15:50:32', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 75ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:50:33) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:50:33', '2010-09-13 15:50:33', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 83ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:50:38) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 14ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:52:57) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:52:57', '2010-09-13 15:52:57', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 100ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+ [4;36;1mComment Load (1.2ms)[0m [0;1mSELECT * FROM "comments" [0m
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:53:53) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:53:53', '2010-09-13 15:53:53', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 112ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:54:02) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 12:54:02', '2010-09-13 15:54:02', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 81ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:56:19) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:21) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:25) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:25) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:25) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:25) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (90.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:26) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:26) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:26) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (92.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (36.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:56:28) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (96.3ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:01) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:02) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:02) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (36.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:02) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:03) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (94.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:03) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:03) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:04) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (36.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:57:04) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:26) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (91.2ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (33.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:27) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (33.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:28) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (90.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:28) [POST]
+ Parameters: {"comment"=>{"comment"=>":comment"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (32.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 12:59:38) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 19ms (View: 4, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:45) [POST]
+ Parameters: {"comment"=>{"comment"=>"orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (92.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:46) [POST]
+ Parameters: {"comment"=>{"comment"=>"orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (33.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 12:59:47) [POST]
+ Parameters: {"comment"=>{"comment"=>"orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem "}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (91.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:00:14) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 31ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:00:15) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:00:15) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:00:16) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (83.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:00:17) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (34.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:00:17) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NoMethodError (You have a nil object when you didn't expect it!
+You might have expected an instance of ActiveRecord::Base.
+The error occurred while evaluating nil.save):
+ app/controllers/posts_controller.rb:32:in `comment'
+
+Rendered rescues/_trace (32.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:00:52) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:00:52', '2010-09-13 16:00:52', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 88ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:02:13) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 69ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:17) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:18) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:18) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (36.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:18) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:02:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 17ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:02:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 70ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:36) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:37) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:37) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (37.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:37) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:02:38) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (95.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:03:15) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:20) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:21) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (87.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:22) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:22) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:22) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (94.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:22) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:22) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (92.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:03:23) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:04:49) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:notice] = 'Comment was successfully added.'"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:04:50) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (4.4ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 18ms (View: 5, DB: 5) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:04:53) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:04:53) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:04:54) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (92.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:05:59) [POST]
+ Parameters: {"comment"=>{"comment"=>"@comment ="}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (33.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:06:59) [POST]
+ Parameters: {"comment"=>{"comment"=>"@comment ="}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (93.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:07:01) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 22ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:04) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (34.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:05) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (88.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:05) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (35.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:31) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (33.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:32) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (93.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:32) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (33.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:07:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (3.4ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 17ms (View: 4, DB: 4) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:35) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (89.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:36) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (33.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:07:36) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash.keep(:post_id)"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (95.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:08:11) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 20ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:08:14) [POST]
+ Parameters: {"comment"=>{"comment"=>"[:comment]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (35.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:08:15) [POST]
+ Parameters: {"comment"=>{"comment"=>"[:comment]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (84.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:08:15) [POST]
+ Parameters: {"comment"=>{"comment"=>"[:comment]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (36.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:08:15) [POST]
+ Parameters: {"comment"=>{"comment"=>"[:comment]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:27:in `comment'
+
+Rendered rescues/_trace (34.0ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:09:15) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:17) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (36.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:19) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (33.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:09:46) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:49) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (35.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:50) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (34.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:50) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (91.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:50) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (34.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:50) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (90.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:50) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (35.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:50) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (34.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:09:51) [POST]
+ Parameters: {"comment"=>{"comment"=>"flash[:post_id]"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActiveRecord::RecordNotFound (Couldn't find Post without an ID):
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (94.2ms)
+Rendered rescues/_request_and_response (0.4ms)
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:10:28) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 17ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:10:30) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:10:30', '2010-09-13 16:10:30', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (38.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:10:30) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:10:30', '2010-09-13 16:10:30', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (92.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:10:30) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:10:30', '2010-09-13 16:10:30', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (41.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:10:31) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:10:31', '2010-09-13 16:10:31', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (97.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:11:59) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:11:59', '2010-09-13 16:11:59', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (39.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 13:12:01) [GET]
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 8ms (View: 4, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 13:12:02) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:12:05) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:12:05', '2010-09-13 16:12:05', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (96.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:12:05) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:12:05', '2010-09-13 16:12:05', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (36.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:12:05) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:12:05', '2010-09-13 16:12:05', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (104.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 13:12:06) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.3ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 13:12:06', '2010-09-13 16:12:06', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (44.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 14:46:17) [GET]
+
+ActionController::RoutingError (No route matches "/articles" with {:method=>:get}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 14:46:26) [GET]
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 28ms (View: 16, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 14:46:29) [GET]
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 10ms (View: 6, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:46:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 17ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:46:35) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.4ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:46:35', '2010-09-13 17:46:35', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (94.3ms)
+Rendered rescues/_request_and_response (1.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:46:36) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:46:36', '2010-09-13 17:46:36', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (44.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:46:36) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:46:36', '2010-09-13 17:46:36', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (40.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:46:37) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:46:37', '2010-09-13 17:46:37', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (46.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:47:30) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:47:30', '2010-09-13 17:47:30', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (36.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:47:36) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 23ms (View: 7, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:47:38) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:47:38', '2010-09-13 17:47:38', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (39.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:47:54) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (5.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 19ms (View: 4, DB: 5) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:47:57) [POST]
+ Parameters: {"comment"=>{"comment"=>"qwe"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.3ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('qwe', '2010-09-13 14:47:57', '2010-09-13 17:47:57', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (97.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:52:41) [POST]
+ Parameters: {"comment"=>{"comment"=>"qwe"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('qwe', '2010-09-13 14:52:41', '2010-09-13 17:52:41', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (38.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:52:42) [POST]
+ Parameters: {"comment"=>{"comment"=>"qwe"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('qwe', '2010-09-13 14:52:42', '2010-09-13 17:52:42', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (38.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:52:42) [POST]
+ Parameters: {"comment"=>{"comment"=>"qwe"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('qwe', '2010-09-13 14:52:42', '2010-09-13 17:52:42', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (40.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:52:42) [POST]
+ Parameters: {"comment"=>{"comment"=>"qwe"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('qwe', '2010-09-13 14:52:42', '2010-09-13 17:52:42', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (40.3ms)
+Rendered rescues/_request_and_response (0.9ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:52:42) [POST]
+ Parameters: {"comment"=>{"comment"=>"qwe"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('qwe', '2010-09-13 14:52:42', '2010-09-13 17:52:42', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (104.9ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:53:20) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (6.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 21ms (View: 5, DB: 6) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:53:22) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:53:22', '2010-09-13 17:53:22', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (39.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:54:01) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (5.0ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 25ms (View: 8, DB: 5) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:03) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:54:03', '2010-09-13 17:54:03', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (43.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:04) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:54:04', '2010-09-13 17:54:04', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (38.7ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:04) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:54:04', '2010-09-13 17:54:04', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (45.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:04) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:54:04', '2010-09-13 17:54:04', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (41.6ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:05) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:54:05', '2010-09-13 17:54:05', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (103.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:05) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:54:05', '2010-09-13 17:54:05', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (40.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:54:07) [POST]
+ Parameters: {"comment"=>{"comment"=>"w"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('w', '2010-09-13 14:54:07', '2010-09-13 17:54:07', NULL)[0m
+Redirected to http://localhost:3000/posts/show
+
+ActionController::DoubleRenderError (Can only render or redirect once per action):
+ app/controllers/posts_controller.rb:36:in `comment'
+
+Rendered rescues/_trace (96.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:55:47) [POST]
+ Parameters: {"comment"=>{"comment"=>"w"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('w', '2010-09-13 14:55:47', '2010-09-13 17:55:47', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.3ms)
+Completed in 93ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 14:55:51) [GET]
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:55:52) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:56:49) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:56:50) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:56:51) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:56:51', '2010-09-13 17:56:51', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 95ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:57:17) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (39.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 58ms (View: 5, DB: 39) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:57:18) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:57:18', '2010-09-13 17:57:18', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 75ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:57:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.4ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 22ms (View: 5, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:57:35) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:57:35', '2010-09-13 17:57:35', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 85ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:57:51) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:57:51', '2010-09-13 17:57:51', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 80ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:58:08) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 20ms (View: 5, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:58:10) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:58:10', '2010-09-13 17:58:10', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 63ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:58:11) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:58:11', '2010-09-13 17:58:11', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 115ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:59:01) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 16ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:59:02) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:59:02', '2010-09-13 17:59:02', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 86ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 14:59:58) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 20ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 14:59:59) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 14:59:59', '2010-09-13 17:59:59', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (2.3ms)
+Completed in 91ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:01:07) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:01:07', '2010-09-13 18:01:07', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:01:11) [GET]
+ [4;35;1mPost Load (2.7ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 12ms (View: 5, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:01:13) [GET]
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:01:15) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.8ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:01:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:01:19', '2010-09-13 18:01:19', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 57ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:02:15) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (4.9ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 21ms (View: 6, DB: 5) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:02:16) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:02:17) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+TypeError (Symbol as array index):
+ app/controllers/posts_controller.rb:28:in `[]'
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (83.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:02:18) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+TypeError (Symbol as array index):
+ app/controllers/posts_controller.rb:28:in `[]'
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (34.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:02:21) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+TypeError (Symbol as array index):
+ app/controllers/posts_controller.rb:28:in `[]'
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (33.4ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:02:21) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+TypeError (Symbol as array index):
+ app/controllers/posts_controller.rb:28:in `[]'
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (92.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:02:21) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+TypeError (Symbol as array index):
+ app/controllers/posts_controller.rb:28:in `[]'
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (33.1ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:02:39) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.6ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:02:41) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+TypeError (Symbol as array index):
+ app/controllers/posts_controller.rb:28:in `[]'
+ app/controllers/posts_controller.rb:28:in `comment'
+
+Rendered rescues/_trace (84.3ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:03:03) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 19ms (View: 6, DB: 1) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:03:05) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:03:05', '2010-09-13 18:03:05', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 118ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:03:11) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:03:11', '2010-09-13 18:03:11', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.1ms)
+Completed in 61ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#1 (for 127.0.0.1 at 2010-09-13 15:04:36) [GET]
+
+ActionController::UnknownAction (No action responded to 1. Actions: comment, create, index, new, and show):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:04:44) [GET]
+ [4;36;1mPost Load (0.7ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+
+ActionView::TemplateError (undefined method `post_path' for #<ActionView::Base:0xb6ecd130>) on line #2 of app/views/posts/index.html.erb:
+1: <% @posts.each do |p| %>
+2: <%= link_to p.title, p %>
+3: <div class="descr"><%= p.author %></div>
+4: <%=h truncate(p.body.gsub(/<.*?>/,''), :length => 100) %><br/>
+5: <br/>
+
+ app/views/posts/index.html.erb:2
+ app/views/posts/index.html.erb:1:in `each'
+ app/views/posts/index.html.erb:1
+
+Rendered rescues/_trace (100.7ms)
+Rendered rescues/_request_and_response (0.2ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:06:36) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:06:38) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.1ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:06:41) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:06:41', '2010-09-13 18:06:41', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 104ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:07:35) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:07:35', '2010-09-13 18:07:35', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 133ms (View: 52, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:07:36) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:07:36', '2010-09-13 18:07:36', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 87ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:07:49) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 15ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:07:51) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:07:51', '2010-09-13 18:07:51', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.3ms)
+Completed in 64ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:07:54) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:07:54', '2010-09-13 18:07:54', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 68ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:08:04) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 19ms (View: 4, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:14:37) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.2ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 15ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:14:39) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:14:39', '2010-09-13 18:14:39', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 74ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:14:57) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:14:57', '2010-09-13 18:14:57', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.2ms)
+Completed in 80ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:14:59) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:14:59', '2010-09-13 18:14:59', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 61ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:16:17) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.3ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 13ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:16:18) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:16:18', '2010-09-13 18:16:18', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 99ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:16:32) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.6ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 15ms (View: 5, DB: 1) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:16:33) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:23:43) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 17ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-13 15:23:45) [GET]
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (1.9ms)
+Completed in 16ms (View: 12, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-13 15:23:47) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"author"=>"", "body"=>"", "title"=>""}, "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU="}
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (5.3ms)
+Completed in 14ms (View: 9, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:23:55) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:23:57) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:20) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:24:21) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 67ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:23) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:23) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:24) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:24) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:24) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:24) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:24:24) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:26:08) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 67ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing ApplicationController#index (for 127.0.0.1 at 2010-09-13 15:26:10) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionController::RoutingError (No route matches "/comments/comment" with {:method=>:post}):
+
+
+Rendering rescues/layout (not_found)
+
+
+Processing CommentsController#comment (for 127.0.0.1 at 2010-09-13 15:27:08) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template comments/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:28:03) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 21ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:28:05) [GET]
+ [4;36;1mPost Load (3.3ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 12ms (View: 5, DB: 3) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:28:06) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#comment (for 127.0.0.1 at 2010-09-13 15:28:09) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template comments/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:34:24) [GET]
+ [4;36;1mPost Load (0.5ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 25ms (View: 15, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:34:26) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:35:03) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:35:05) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 12ms (View: 8, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:35:07) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 62ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing CommentsController#comment (for 127.0.0.1 at 2010-09-13 15:35:09) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template comments/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:36:14) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 11ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:36:15) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:17) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NameError (uninitialized constant CommentsController):
+
+
+Rendered rescues/_trace (29.3ms)
+Rendered rescues/_request_and_response (1.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:18) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NameError (uninitialized constant CommentsController):
+
+
+Rendered rescues/_trace (80.8ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:18) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NameError (uninitialized constant CommentsController):
+
+
+Rendered rescues/_trace (28.5ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:18) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NameError (uninitialized constant CommentsController):
+
+
+Rendered rescues/_trace (29.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NameError (uninitialized constant CommentsController):
+
+
+Rendered rescues/_trace (89.0ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing ApplicationController#comment (for 127.0.0.1 at 2010-09-13 15:36:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+NameError (uninitialized constant CommentsController):
+
+
+Rendered rescues/_trace (34.2ms)
+Rendered rescues/_request_and_response (0.3ms)
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:36:45) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.3ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 17ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:36:46) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:38:45) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:38:46) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.3ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:38:46', '2010-09-13 18:38:46', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.9ms)
+Completed in 121ms (View: 11, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:39:05) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.3ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 18ms (View: 5, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:07) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:08) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:08) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:09) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:30) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:39:42) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (3.6ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 18ms (View: 5, DB: 4) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:39:43) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:39:43', '2010-09-13 18:39:43', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:44:28) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:44:28', '2010-09-13 18:44:28', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 107ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:45:11) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.1ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 12ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:45:12) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:45:12', '2010-09-13 18:45:12', NULL)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 92ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:45) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Completed in 13ms (View: 4, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:46:46) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:46:46', '2010-09-13 18:46:46', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (0.9ms)
+Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:54) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.8ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:55) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:56) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.3ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Completed in 15ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:46:56) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.6ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:46:59) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:00) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:47:05) [GET]
+ [4;36;1mPost Load (0.6ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 9ms (View: 5, DB: 1) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:06) [GET]
+ Parameters: {"id"=>"1"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 15:47:08) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;35;1mComment Create (0.2ms)[0m [0mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('', '2010-09-13 15:47:08', '2010-09-13 18:47:08', 1)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (53.8ms)
+Completed in 149ms (View: 56, DB: 0) | 200 OK [http://localhost/posts/comment]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:09) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.8ms)
+Rendered posts/_comment (0.5ms)
+Completed in 16ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:10) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 14ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:10) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Rendered posts/_comment (0.5ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:11) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.6ms)
+Rendered posts/_comment (0.5ms)
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:11) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Rendered posts/_comment (0.5ms)
+Completed in 16ms (View: 8, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:11) [GET]
+ Parameters: {"id"=>"1"}
+ [4;36;1mPost Load (0.2ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 1) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 1) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.6ms)
+Rendered posts/_comment (0.5ms)
+Completed in 14ms (View: 7, DB: 0) | 200 OK [http://localhost/posts/1]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 15:47:12) [GET]
+ [4;36;1mPost Load (0.4ms)[0m [0;1mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:13) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 13ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 15:47:14) [GET]
+ Parameters: {"id"=>"2"}
+ [4;35;1mPost Load (0.1ms)[0m [0mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;36;1mComment Load (0.2ms)[0m [0;1mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.7ms)
+Completed in 14ms (View: 6, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#new (for 127.0.0.1 at 2010-09-13 15:59:58) [GET]
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (2.1ms)
+Completed in 63ms (View: 59, DB: 0) | 200 OK [http://localhost/posts/new]
+
+
+Processing PostsController#create (for 127.0.0.1 at 2010-09-13 16:00:00) [POST]
+ Parameters: {"commit"=>"Create", "post"=>{"author"=>"", "body"=>"", "title"=>""}, "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU="}
+Rendering template within layouts/application
+Rendering posts/new
+Rendered posts/_form (5.7ms)
+Completed in 15ms (View: 9, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#index (for 127.0.0.1 at 2010-09-13 16:01:15) [GET]
+ [4;35;1mPost Load (0.4ms)[0m [0mSELECT * FROM "posts" ORDER BY created_at DESC[0m
+Rendering template within layouts/application
+Rendering posts/index
+Completed in 8ms (View: 4, DB: 0) | 200 OK [http://localhost/posts]
+
+
+Processing PostsController#show (for 127.0.0.1 at 2010-09-13 16:01:16) [GET]
+ Parameters: {"id"=>"2"}
+ [4;36;1mPost Load (0.1ms)[0m [0;1mSELECT * FROM "posts" WHERE ("posts"."id" = 2) [0m
+ [4;35;1mComment Load (0.2ms)[0m [0mSELECT * FROM "comments" WHERE ("comments".post_id = 2) [0m
+Rendering template within layouts/application
+Rendering posts/show
+Rendered posts/_comment (1.5ms)
+Completed in 16ms (View: 9, DB: 0) | 200 OK [http://localhost/posts/2]
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:17) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:01:19) [POST]
+ Parameters: {"comment"=>{"comment"=>""}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+
+ActionView::MissingTemplate (Missing template posts/comment.erb in view path app/views):
+
+
+Rendering rescues/layout (internal_server_error)
+
+
+Processing PostsController#comment (for 127.0.0.1 at 2010-09-13 16:02:28) [POST]
+ Parameters: {"comment"=>{"comment"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry"}, "commit"=>"Post", "authenticity_token"=>"jAJTIsl32M81jhPLs8oh4NzN4Z16BEho1Y1uJFup4gU=", "_"=>""}
+ [4;36;1mComment Create (0.2ms)[0m [0;1mINSERT INTO "comments" ("comment", "created_at", "updated_at", "post_id") VALUES('Lorem Ipsum is simply dummy text of the printing and typesetting industry', '2010-09-13 16:02:28', '2010-09-13 19:02:28', 2)[0m
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:5)
+DEPRECATION WARNING: @comment will no longer be implicitly assigned to comment. (called from _run_erb_app47views47posts47_comment46html46erb_locals_comment_object at /home/insignia4u/Apps/blogajax/app/views/posts/_comment.html.erb:9)
+Rendered posts/_comment (1.0ms)
+Completed in 98ms (View: 3, DB: 0) | 200 OK [http://localhost/posts/comment]
diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb
new file mode 100644
index 0000000..8a86af5
--- /dev/null
+++ b/test/functional/comments_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class CommentsControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/helpers/comments_helper_test.rb b/test/unit/helpers/comments_helper_test.rb
new file mode 100644
index 0000000..2518c16
--- /dev/null
+++ b/test/unit/helpers/comments_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class CommentsHelperTest < ActionView::TestCase
+end
|
jugyo/growl_error
|
4ea73b2f62eaefd948248351ef149509d8bb467c
|
å¼ã³åºãé çªãå¤ãã
|
diff --git a/init.rb b/init.rb
index cae41da..c608065 100644
--- a/init.rb
+++ b/init.rb
@@ -1,16 +1,15 @@
begin
require 'ruby-growl'
class ActionController::Base
GROWL = Growl.new "localhost", "growl_error", ["growl_error"]
def rescue_action_with_feature(exception)
- GROWL.notify "growl_error", exception.class.name, exception.message
- ensure
rescue_action_without_feature(exception)
+ GROWL.notify "growl_error", exception.class.name, exception.message
end
alias_method_chain :rescue_action, :feature
end
rescue LoadError => e
end
|
bohde/seinfeld
|
062185ec5ac3be33778277e92450499dfefeb856
|
Styling for iPhone.
|
diff --git a/Cakefile b/Cakefile
index 56fa540..c4c7248 100644
--- a/Cakefile
+++ b/Cakefile
@@ -1,68 +1,70 @@
fs = require 'fs'
sys = require 'sys'
path = require 'path'
dir = "build"
task 'build:html', 'compile the jade template files to html', () ->
jade = require 'jade'
jade.renderFile 'jade/index.jade', (err, html) ->
if err
console.log err
else
fs.mkdir "$dir", 0755,() ->
fs.writeFile "$dir/index.html", html
coffeeFiles = [
"coffee/seinfeld.coffee",
]
task 'build:js', 'compile the coffeescript files to js', () ->
compile: require("child_process").spawn "coffee", ["-c", "-o", "$dir/js"].concat coffeeFiles
compile.stdout.addListener "data", (data) ->
sys.puts data
compile.stderr.addListener "data", (data) ->
sys.puts data
compile.addListener "exit", (code) ->
sys.puts "Coffee compile exited with exit code $code." if code != 0
task 'build:css', 'compile the sass files to css', () ->
sass: require 'sass'
- input: fs.createReadStream 'sass/style.sass'
- buffer: ""
- input.addListener "data", (data) ->
- buffer += data
- input.addListener "end", (data) ->
- buildpath: 'build/css/style.css'
- write: ->
- output: fs.createWriteStream buildpath
- output.write sass.render buffer
- if not path.exists path.dirname buildpath
- fs.mkdir path.dirname(buildpath), 0755, write
- else
- write()
+ for f in ["style", "big"]
+
+ input: fs.createReadStream "sass/${f}.sass"
+ buffer: ""
+ input.addListener "data", (data) ->
+ buffer += data
+ input.addListener "end", (data) ->
+ buildpath: "build/css/${f}.css"
+ write: ->
+ output: fs.createWriteStream buildpath
+ output.write sass.render buffer
+ if not path.exists path.dirname buildpath
+ fs.mkdir path.dirname(buildpath), 0755, write
+ else
+ write()
task 'build:includes', 'symlink the includes files the build folder', () ->
cp: require("child_process").spawn "cp", ["-R", "includes/img", "includes/js", "$dir"]
cp.stdout.addListener "data", (data) ->
sys.puts data
cp.stderr.addListener "data", (data) ->
sys.puts data
cp.addListener "exit", (code) ->
sys.puts "cp exited with exit code $code." if code != 0
task 'build', 'build everything', () ->
invoke 'build:html'
invoke 'build:js'
invoke 'build:css'
invoke 'build:includes'
task 'clean', 'remove the build folder', () ->
clean: require("child_process").spawn "rm", ["-rf", dir]
clean.stdout.addListener "data", (data) ->
sys.puts data
clean.stderr.addListener "data", (data) ->
sys.puts data
clean.addListener "exit", (code) ->
sys.puts "Removal of $dir error!" if code != 0
diff --git a/includes/img/x.png b/includes/img/x.png
index 90dbb01..65db49a 100644
Binary files a/includes/img/x.png and b/includes/img/x.png differ
diff --git a/jade/index.jade b/jade/index.jade
index b8b8edf..3db9f66 100644
--- a/jade/index.jade
+++ b/jade/index.jade
@@ -1,39 +1,43 @@
!!! 5
- var days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
- var rows = [1,2,3,4,5]
html(lang="en")
head
title Seinfeld Calendar
script(src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
script(src: "http://cachedcommons.org/cache/datejs/1.0.0/javascripts/date-min.js")
script(src: "js/Lawnchair.js")
script(src: "js/adaptors/LawnchairAdaptorHelpers.js")
script(src: "js/adaptors/WebkitSQLiteAdaptor.js")
script(src: "js/seinfeld.js")
+ meta(content:'True', name:'HandheldFriendly')
+ meta(content:'width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;', name='viewport')
+
link(href: 'http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica', rel:'stylesheet')
link(href: 'http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css', rel:'stylesheet')
link(href: "css/style.css", rel: "stylesheet")
+ link(href: "css/big.css", rel: "stylesheet", media: "screen and (min-width: 640px)")
body
header
h1
a(href: "#", class: "previous") «
span(class: "current") This Month
a(href: "#", class: "next") »
section
table
tr.days
- each day in days
td= day
- each row in rows
tr.calendar
-each day in days
td.day placeholder
a.explanation(href: "#") Huh?
ol.help
li Achieve a daily goal.
li Mark it on this calendar.
li Don't break the chain.
li Inspired by
a(href: "http://lifehacker.com/281626/jerry-seinfelds-productivity-secret") Jerry Seinfeld
.
diff --git a/sass/big.sass b/sass/big.sass
new file mode 100644
index 0000000..40c974e
--- /dev/null
+++ b/sass/big.sass
@@ -0,0 +1,2 @@
+table
+ :width 640px
diff --git a/sass/style.sass b/sass/style.sass
index 55d3728..bc2d737 100644
--- a/sass/style.sass
+++ b/sass/style.sass
@@ -1,41 +1,38 @@
-width: 480px
-block: 68px
-
body
:color #333
- :width $width
+ :width 100%
:margin auto
:text-align center
:font-family 'IM Fell DW Pica'
table
- :width !width
+ :width 100%
:margin auto
td
&.other
:color #aaa
&.marked
- :background-image url('../img/x.png')
- :width !block
- :font-size 2em
+ :background url('../img/x.png') no-repeat center center
+ =background-size contain
+ :width 0.14285714285714285%
+ :font-size 1.5em
&.day
- :height !block
- :font-size 3em
+ :font-size 2em
tr.days td
:font-weight bold
:border-bottom 1px solid #333
h1
- :font-size 3em
+ :font-size 2em
span.current
:margin 0 1em
a.explanation
:font-size 1.5em
ol.help
:display none
:font-size 1.5em
\ No newline at end of file
|
bohde/seinfeld
|
730a56f05c6a9ed62933b90d6e8269090e33c3ca
|
Copy instead of symlinking files.
|
diff --git a/Cakefile b/Cakefile
index 633ad9d..56fa540 100644
--- a/Cakefile
+++ b/Cakefile
@@ -1,83 +1,68 @@
fs = require 'fs'
sys = require 'sys'
path = require 'path'
dir = "build"
task 'build:html', 'compile the jade template files to html', () ->
jade = require 'jade'
jade.renderFile 'jade/index.jade', (err, html) ->
if err
console.log err
else
fs.mkdir "$dir", 0755,() ->
fs.writeFile "$dir/index.html", html
coffeeFiles = [
"coffee/seinfeld.coffee",
]
task 'build:js', 'compile the coffeescript files to js', () ->
compile: require("child_process").spawn "coffee", ["-c", "-o", "$dir/js"].concat coffeeFiles
compile.stdout.addListener "data", (data) ->
sys.puts data
compile.stderr.addListener "data", (data) ->
sys.puts data
compile.addListener "exit", (code) ->
sys.puts "Coffee compile exited with exit code $code." if code != 0
task 'build:css', 'compile the sass files to css', () ->
sass: require 'sass'
input: fs.createReadStream 'sass/style.sass'
buffer: ""
input.addListener "data", (data) ->
buffer += data
input.addListener "end", (data) ->
buildpath: 'build/css/style.css'
write: ->
output: fs.createWriteStream buildpath
output.write sass.render buffer
if not path.exists path.dirname buildpath
fs.mkdir path.dirname(buildpath), 0755, write
else
write()
task 'build:includes', 'symlink the includes files the build folder', () ->
- fs.stat 'includes', (err, stats) ->
- if stats.isDirectory()
- fs.readdir 'includes', (err, files) ->
- for file in files
- file: path.join 'includes',file
- fs.stat file, (err, stats) ->
- if stats.isDirectory()
- f: path.basename file
- output: "$dir/$f"
- path.exists output, (exists) ->
- linkFiles: () ->
- fs.readdir file, (err, files) ->
- for link in files
- orig: path.join process.cwd(), file, link
- linkdata: path.join output, link
- fs.symlink orig, linkdata, (err) ->
- if err?
- sys.puts orig, linkdata
- sys.puts err
- if not exists
- fs.mkdir output, 0755, linkFiles
- else
- linkFiles()
+ cp: require("child_process").spawn "cp", ["-R", "includes/img", "includes/js", "$dir"]
+ cp.stdout.addListener "data", (data) ->
+ sys.puts data
+ cp.stderr.addListener "data", (data) ->
+ sys.puts data
+ cp.addListener "exit", (code) ->
+ sys.puts "cp exited with exit code $code." if code != 0
+
task 'build', 'build everything', () ->
invoke 'build:html'
invoke 'build:js'
invoke 'build:css'
invoke 'build:includes'
task 'clean', 'remove the build folder', () ->
clean: require("child_process").spawn "rm", ["-rf", dir]
clean.stdout.addListener "data", (data) ->
sys.puts data
clean.stderr.addListener "data", (data) ->
sys.puts data
clean.addListener "exit", (code) ->
sys.puts "Removal of $dir error!" if code != 0
|
bohde/seinfeld
|
57996f8c4c057088023bcd0d05b121f358a585c1
|
Added build instructions to the readme.
|
diff --git a/readme.md b/readme.md
index b965812..3b81e59 100644
--- a/readme.md
+++ b/readme.md
@@ -1 +1,17 @@
-This is a Seinfeld Calendar (http://lifehacker.com/281626/jerry-seinfelds-productivity-secret), written in Coffeescript, using local storage.
\ No newline at end of file
+#Overview
+
+This is a Seinfeld Calendar as described by [Lifehacker](http://lifehacker.com/281626/jerry-seinfelds-productivity-secret), written in Coffeescript, using local storage via Lawnchair.
+
+##Building
+
+Install [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm)
+
+Other requirements can be downloaded via npm.
+
+ npm install coffee
+ npm install jade
+ npm install sass
+
+Now just use cake to build the rest
+
+ cake build
\ No newline at end of file
|
bohde/seinfeld
|
eb087090d5f9549f8f2440782b91130e447b6a42
|
Added explanation text and animation.
|
diff --git a/coffee/seinfeld.coffee b/coffee/seinfeld.coffee
index be4e631..1707220 100644
--- a/coffee/seinfeld.coffee
+++ b/coffee/seinfeld.coffee
@@ -1,47 +1,52 @@
$(()->
date: Date.today()
store: new Lawnchair "seinfeld"
setMonthTitle: (date) ->
$('.current').text date.toString("MMMM")
calcDaysInMonth: (day) ->
day: day.clone().moveToFirstDayOfMonth()
month: day.getMonth()
if not day.is().sunday()
day.last().sunday()
$('td.day').each () ->
block: $ this
block.removeClass "marked other"
block.text day.toString "d"
blockDate: day.toString "MMM-d"
block.attr 'data-date', blockDate
store.get blockDate, (r) ->
if r?
block.addClass "marked"
if day.getMonth() != month
block.addClass "other"
day.addDays 1
populatePage: () ->
setMonthTitle date
calcDaysInMonth date
changePage: (num) ->
()->
date.addMonths num
populatePage()
toggleMarked: ->
block: $ this
block.toggleClass "marked"
if block.hasClass "marked"
store.save {key: block.attr('data-date'), value: true}
else
store.remove block.attr 'data-date'
+ $('a.explanation').click ->
+ $(this).hide()
+ $('ol.help').show "fast"
+ false
+
$('td.day').click toggleMarked
$('a.next').click changePage 1
$('a.previous').click changePage(-1)
populatePage()
)
diff --git a/jade/index.jade b/jade/index.jade
index 4db78ff..b8b8edf 100644
--- a/jade/index.jade
+++ b/jade/index.jade
@@ -1,31 +1,39 @@
!!! 5
- var days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
- var rows = [1,2,3,4,5]
html(lang="en")
head
title Seinfeld Calendar
script(src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
script(src: "http://cachedcommons.org/cache/datejs/1.0.0/javascripts/date-min.js")
script(src: "js/Lawnchair.js")
script(src: "js/adaptors/LawnchairAdaptorHelpers.js")
script(src: "js/adaptors/WebkitSQLiteAdaptor.js")
script(src: "js/seinfeld.js")
link(href: 'http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica', rel:'stylesheet')
link(href: 'http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css', rel:'stylesheet')
link(href: "css/style.css", rel: "stylesheet")
body
header
h1
a(href: "#", class: "previous") «
span(class: "current") This Month
a(href: "#", class: "next") »
section
table
tr.days
- each day in days
td= day
- each row in rows
tr.calendar
-each day in days
td.day placeholder
+ a.explanation(href: "#") Huh?
+ ol.help
+ li Achieve a daily goal.
+ li Mark it on this calendar.
+ li Don't break the chain.
+ li Inspired by
+ a(href: "http://lifehacker.com/281626/jerry-seinfelds-productivity-secret") Jerry Seinfeld
+ .
diff --git a/sass/style.sass b/sass/style.sass
index f7cbd90..55d3728 100644
--- a/sass/style.sass
+++ b/sass/style.sass
@@ -1,37 +1,41 @@
width: 480px
block: 68px
body
:color #333
:width $width
:margin auto
:text-align center
:font-family 'IM Fell DW Pica'
table
:width !width
:margin auto
td
&.other
:color #aaa
&.marked
:background-image url('../img/x.png')
:width !block
:font-size 2em
&.day
:height !block
:font-size 3em
tr.days td
:font-weight bold
:border-bottom 1px solid #333
h1
:font-size 3em
span.current
:margin 0 1em
a.explanation
+ :font-size 1.5em
+
+ol.help
+ :display none
:font-size 1.5em
\ No newline at end of file
|
bohde/seinfeld
|
206b447f0be6108fbb59f3b6d5d8b743419a5e22
|
Some styling.
|
diff --git a/includes/img/x.png b/includes/img/x.png
new file mode 100644
index 0000000..90dbb01
Binary files /dev/null and b/includes/img/x.png differ
diff --git a/jade/index.jade b/jade/index.jade
index d69be2b..4db78ff 100644
--- a/jade/index.jade
+++ b/jade/index.jade
@@ -1,30 +1,31 @@
!!! 5
- var days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
- var rows = [1,2,3,4,5]
html(lang="en")
head
title Seinfeld Calendar
script(src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
script(src: "http://cachedcommons.org/cache/datejs/1.0.0/javascripts/date-min.js")
script(src: "js/Lawnchair.js")
script(src: "js/adaptors/LawnchairAdaptorHelpers.js")
script(src: "js/adaptors/WebkitSQLiteAdaptor.js")
script(src: "js/seinfeld.js")
+ link(href: 'http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica', rel:'stylesheet')
+ link(href: 'http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css', rel:'stylesheet')
link(href: "css/style.css", rel: "stylesheet")
+
body
header
- h1 Seinfeld Calendar
- section
-
- h2
+ h1
a(href: "#", class: "previous") «
span(class: "current") This Month
a(href: "#", class: "next") »
+ section
table
tr.days
- each day in days
td= day
- each row in rows
tr.calendar
-each day in days
td.day placeholder
diff --git a/sass/style.sass b/sass/style.sass
index 3064a90..f7cbd90 100644
--- a/sass/style.sass
+++ b/sass/style.sass
@@ -1,9 +1,37 @@
+width: 480px
+block: 68px
+
body
:color #333
+ :width $width
+ :margin auto
+ :text-align center
+ :font-family 'IM Fell DW Pica'
+
+table
+ :width !width
+ :margin auto
td
&.other
- :color #777
+ :color #aaa
&.marked
- :background-color red
-
\ No newline at end of file
+ :background-image url('../img/x.png')
+ :width !block
+ :font-size 2em
+ &.day
+ :height !block
+ :font-size 3em
+
+tr.days td
+ :font-weight bold
+ :border-bottom 1px solid #333
+
+h1
+ :font-size 3em
+
+ span.current
+ :margin 0 1em
+
+a.explanation
+ :font-size 1.5em
\ No newline at end of file
|
bohde/seinfeld
|
eec4724f1426254020ec32d2e2299d0574adc042
|
Added sass compiling (using node.js sass) to cakefile.
|
diff --git a/Cakefile b/Cakefile
index 88020f1..633ad9d 100644
--- a/Cakefile
+++ b/Cakefile
@@ -1,66 +1,83 @@
fs = require 'fs'
sys = require 'sys'
path = require 'path'
dir = "build"
task 'build:html', 'compile the jade template files to html', () ->
jade = require 'jade'
jade.renderFile 'jade/index.jade', (err, html) ->
if err
console.log err
else
fs.mkdir "$dir", 0755,() ->
fs.writeFile "$dir/index.html", html
coffeeFiles = [
"coffee/seinfeld.coffee",
]
task 'build:js', 'compile the coffeescript files to js', () ->
compile: require("child_process").spawn "coffee", ["-c", "-o", "$dir/js"].concat coffeeFiles
compile.stdout.addListener "data", (data) ->
sys.puts data
compile.stderr.addListener "data", (data) ->
sys.puts data
compile.addListener "exit", (code) ->
sys.puts "Coffee compile exited with exit code $code." if code != 0
+task 'build:css', 'compile the sass files to css', () ->
+ sass: require 'sass'
+ input: fs.createReadStream 'sass/style.sass'
+ buffer: ""
+ input.addListener "data", (data) ->
+ buffer += data
+ input.addListener "end", (data) ->
+ buildpath: 'build/css/style.css'
+ write: ->
+ output: fs.createWriteStream buildpath
+ output.write sass.render buffer
+ if not path.exists path.dirname buildpath
+ fs.mkdir path.dirname(buildpath), 0755, write
+ else
+ write()
+
task 'build:includes', 'symlink the includes files the build folder', () ->
fs.stat 'includes', (err, stats) ->
if stats.isDirectory()
fs.readdir 'includes', (err, files) ->
for file in files
file: path.join 'includes',file
fs.stat file, (err, stats) ->
if stats.isDirectory()
f: path.basename file
output: "$dir/$f"
path.exists output, (exists) ->
linkFiles: () ->
fs.readdir file, (err, files) ->
for link in files
orig: path.join process.cwd(), file, link
linkdata: path.join output, link
fs.symlink orig, linkdata, (err) ->
if err?
sys.puts orig, linkdata
sys.puts err
if not exists
fs.mkdir output, 0755, linkFiles
else
linkFiles()
task 'build', 'build everything', () ->
invoke 'build:html'
invoke 'build:js'
+ invoke 'build:css'
invoke 'build:includes'
task 'clean', 'remove the build folder', () ->
clean: require("child_process").spawn "rm", ["-rf", dir]
clean.stdout.addListener "data", (data) ->
sys.puts data
clean.stderr.addListener "data", (data) ->
sys.puts data
clean.addListener "exit", (code) ->
sys.puts "Removal of $dir error!" if code != 0
diff --git a/sass/style.sass b/sass/style.sass
index fbeeaf6..3064a90 100644
--- a/sass/style.sass
+++ b/sass/style.sass
@@ -1,9 +1,9 @@
body
- :color #333
+ :color #333
td
- &.other
- :color #777
- &.marked
- :background-color red
+ &.other
+ :color #777
+ &.marked
+ :background-color red
\ No newline at end of file
|
bohde/seinfeld
|
bbc71d3477ddac9bca138ad8f4c40b4223cc633d
|
Reset classes upon page change.
|
diff --git a/coffee/seinfeld.coffee b/coffee/seinfeld.coffee
index 8a1ff23..be4e631 100644
--- a/coffee/seinfeld.coffee
+++ b/coffee/seinfeld.coffee
@@ -1,46 +1,47 @@
$(()->
date: Date.today()
store: new Lawnchair "seinfeld"
setMonthTitle: (date) ->
$('.current').text date.toString("MMMM")
calcDaysInMonth: (day) ->
day: day.clone().moveToFirstDayOfMonth()
month: day.getMonth()
if not day.is().sunday()
day.last().sunday()
$('td.day').each () ->
block: $ this
+ block.removeClass "marked other"
block.text day.toString "d"
blockDate: day.toString "MMM-d"
block.attr 'data-date', blockDate
store.get blockDate, (r) ->
if r?
block.addClass "marked"
if day.getMonth() != month
block.addClass "other"
day.addDays 1
populatePage: () ->
setMonthTitle date
calcDaysInMonth date
changePage: (num) ->
()->
date.addMonths num
populatePage()
toggleMarked: ->
block: $ this
block.toggleClass "marked"
if block.hasClass "marked"
store.save {key: block.attr('data-date'), value: true}
else
store.remove block.attr 'data-date'
$('td.day').click toggleMarked
$('a.next').click changePage 1
$('a.previous').click changePage(-1)
populatePage()
)
|
bohde/seinfeld
|
68f6f0bf37a95e82c9a03868e21906b213521261
|
Added in some styling with sass.
|
diff --git a/jade/index.jade b/jade/index.jade
index 6e377c4..d69be2b 100644
--- a/jade/index.jade
+++ b/jade/index.jade
@@ -1,29 +1,30 @@
!!! 5
- var days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
- var rows = [1,2,3,4,5]
html(lang="en")
head
title Seinfeld Calendar
script(src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
script(src: "http://cachedcommons.org/cache/datejs/1.0.0/javascripts/date-min.js")
script(src: "js/Lawnchair.js")
script(src: "js/adaptors/LawnchairAdaptorHelpers.js")
script(src: "js/adaptors/WebkitSQLiteAdaptor.js")
script(src: "js/seinfeld.js")
+ link(href: "css/style.css", rel: "stylesheet")
body
header
h1 Seinfeld Calendar
section
h2
a(href: "#", class: "previous") «
span(class: "current") This Month
a(href: "#", class: "next") »
table
tr.days
- each day in days
td= day
- each row in rows
tr.calendar
-each day in days
td.day placeholder
diff --git a/sass/style.sass b/sass/style.sass
new file mode 100644
index 0000000..fbeeaf6
--- /dev/null
+++ b/sass/style.sass
@@ -0,0 +1,9 @@
+body
+ :color #333
+
+td
+ &.other
+ :color #777
+ &.marked
+ :background-color red
+
\ No newline at end of file
|
bohde/seinfeld
|
fe9e628135d62cba4cb957f995670c4836e87494
|
Added marking of days, with persistent storage.
|
diff --git a/coffee/seinfeld.coffee b/coffee/seinfeld.coffee
index 0fff4b9..8a1ff23 100644
--- a/coffee/seinfeld.coffee
+++ b/coffee/seinfeld.coffee
@@ -1,28 +1,46 @@
-setMonthTitle: (date) ->
- $('.current').text date.toString("MMMM")
-
-calcDaysInMonth: (day) ->
- day: day.clone().moveToFirstDayOfMonth()
- month: day.getMonth()
- if not day.is().sunday()
- day.last().sunday()
- $('td.day').each () ->
- block: $ this
- block.text day.toString "d"
- if day.getMonth() != month
- block.addClass "other"
- day.addDays 1
-
$(()->
date: Date.today()
+ store: new Lawnchair "seinfeld"
+
+ setMonthTitle: (date) ->
+ $('.current').text date.toString("MMMM")
+
+ calcDaysInMonth: (day) ->
+ day: day.clone().moveToFirstDayOfMonth()
+ month: day.getMonth()
+ if not day.is().sunday()
+ day.last().sunday()
+ $('td.day').each () ->
+ block: $ this
+ block.text day.toString "d"
+ blockDate: day.toString "MMM-d"
+ block.attr 'data-date', blockDate
+ store.get blockDate, (r) ->
+ if r?
+ block.addClass "marked"
+ if day.getMonth() != month
+ block.addClass "other"
+ day.addDays 1
+
populatePage: () ->
setMonthTitle date
calcDaysInMonth date
+
changePage: (num) ->
()->
date.addMonths num
populatePage()
+
+ toggleMarked: ->
+ block: $ this
+ block.toggleClass "marked"
+ if block.hasClass "marked"
+ store.save {key: block.attr('data-date'), value: true}
+ else
+ store.remove block.attr 'data-date'
+
+ $('td.day').click toggleMarked
$('a.next').click changePage 1
$('a.previous').click changePage(-1)
populatePage()
)
|
bohde/seinfeld
|
8a8efb3c98fd23990b5e43869dd7c4a71d6f6272
|
Included lawnchair in page.
|
diff --git a/jade/index.jade b/jade/index.jade
index 765181a..6e377c4 100644
--- a/jade/index.jade
+++ b/jade/index.jade
@@ -1,26 +1,29 @@
!!! 5
- var days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
- var rows = [1,2,3,4,5]
html(lang="en")
head
title Seinfeld Calendar
script(src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
script(src: "http://cachedcommons.org/cache/datejs/1.0.0/javascripts/date-min.js")
+ script(src: "js/Lawnchair.js")
+ script(src: "js/adaptors/LawnchairAdaptorHelpers.js")
+ script(src: "js/adaptors/WebkitSQLiteAdaptor.js")
script(src: "js/seinfeld.js")
body
header
h1 Seinfeld Calendar
section
h2
a(href: "#", class: "previous") «
span(class: "current") This Month
a(href: "#", class: "next") »
table
tr.days
- each day in days
td= day
- each row in rows
tr.calendar
-each day in days
td.day placeholder
|
bohde/seinfeld
|
1dad2f4ddb8345e1c3c574b01fc1cbafb28da697
|
Added in lawnchair and build instruction for included media.
|
diff --git a/.gitignore b/.gitignore
index 041000e..5186c28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
build
-*.js
\ No newline at end of file
+coffee/*.js
\ No newline at end of file
diff --git a/Cakefile b/Cakefile
index f731cd9..88020f1 100644
--- a/Cakefile
+++ b/Cakefile
@@ -1,30 +1,66 @@
fs = require 'fs'
sys = require 'sys'
+path = require 'path'
dir = "build"
task 'build:html', 'compile the jade template files to html', () ->
jade = require 'jade'
jade.renderFile 'jade/index.jade', (err, html) ->
if err
console.log err
else
fs.mkdir "$dir", 0755,() ->
fs.writeFile "$dir/index.html", html
coffeeFiles = [
"coffee/seinfeld.coffee",
]
task 'build:js', 'compile the coffeescript files to js', () ->
compile: require("child_process").spawn "coffee", ["-c", "-o", "$dir/js"].concat coffeeFiles
compile.stdout.addListener "data", (data) ->
sys.puts data
compile.stderr.addListener "data", (data) ->
sys.puts data
compile.addListener "exit", (code) ->
- sys.puts "Coffe compile exited with exit code $code." if code != 0
+ sys.puts "Coffee compile exited with exit code $code." if code != 0
+
+task 'build:includes', 'symlink the includes files the build folder', () ->
+ fs.stat 'includes', (err, stats) ->
+ if stats.isDirectory()
+ fs.readdir 'includes', (err, files) ->
+ for file in files
+ file: path.join 'includes',file
+ fs.stat file, (err, stats) ->
+ if stats.isDirectory()
+ f: path.basename file
+ output: "$dir/$f"
+ path.exists output, (exists) ->
+ linkFiles: () ->
+ fs.readdir file, (err, files) ->
+ for link in files
+ orig: path.join process.cwd(), file, link
+ linkdata: path.join output, link
+ fs.symlink orig, linkdata, (err) ->
+ if err?
+ sys.puts orig, linkdata
+ sys.puts err
+ if not exists
+ fs.mkdir output, 0755, linkFiles
+ else
+ linkFiles()
task 'build', 'build everything', () ->
invoke 'build:html'
invoke 'build:js'
+ invoke 'build:includes'
+
+task 'clean', 'remove the build folder', () ->
+ clean: require("child_process").spawn "rm", ["-rf", dir]
+ clean.stdout.addListener "data", (data) ->
+ sys.puts data
+ clean.stderr.addListener "data", (data) ->
+ sys.puts data
+ clean.addListener "exit", (code) ->
+ sys.puts "Removal of $dir error!" if code != 0
diff --git a/includes/js/Lawnchair.js b/includes/js/Lawnchair.js
new file mode 100644
index 0000000..82648f8
--- /dev/null
+++ b/includes/js/Lawnchair.js
@@ -0,0 +1,77 @@
+/**
+ * Lawnchair
+ * =========
+ * A lightweight JSON document store.
+ *
+ */
+var Lawnchair = function(opts) {
+ this.init(opts);
+}
+
+Lawnchair.prototype = {
+
+ init:function(opts) {
+ var adaptors = {
+ 'webkit':window.WebkitSQLiteAdaptor,
+ 'gears':window.GearsSQLiteAdaptor,
+ 'dom':window.DOMStorageAdaptor,
+ 'cookie':window.CookieAdaptor,
+ 'air':window.AIRSQLiteAdaptor,
+ 'userdata':window.UserDataAdaptor,
+ 'air-async':window.AIRSQLiteAsyncAdaptor
+ };
+
+ this.adaptor = opts.adaptor ? new adaptors[opts.adaptor](opts) : new WebkitSQLiteAdaptor(opts);
+ },
+
+ // Save an object to the store. If a key is present then update. Otherwise create a new record.
+ save:function(obj, callback) {this.adaptor.save(obj, callback)},
+
+ // Invokes a callback on an object with the matching key.
+ get:function(key, callback) {this.adaptor.get(key, callback)},
+
+ // Returns whether a key exists to a callback.
+ exists:function(callback) {this.adaptor.exists(callback)},
+
+ // Returns all rows to a callback.
+ all:function(callback) {this.adaptor.all(callback)},
+
+ // Removes a json object from the store.
+ remove:function(keyOrObj, callback) {this.adaptor.remove(keyOrObj, callback)},
+
+ // Removes all documents from a store and returns self.
+ nuke:function(callback) {this.adaptor.nuke(callback);return this},
+
+ /**
+ * Iterator that accepts two paramters (methods or eval strings):
+ *
+ * - conditional test for a record
+ * - callback to invoke on matches
+ *
+ */
+ find:function(condition, callback) {
+ var is = (typeof condition == 'string') ? function(r){return eval(condition)} : condition;
+ var cb = this.adaptor.terseToVerboseCallback(callback);
+
+ this.each(function(record, index) {
+ if (is(record)) cb(record, index); // thats hot
+ });
+ },
+
+
+ /**
+ * Classic iterator.
+ * - Passes the record and the index as the second parameter to the callback.
+ * - Accepts a string for eval or a method to be invoked for each document in the collection.
+ */
+ each:function(callback) {
+ var cb = this.adaptor.terseToVerboseCallback(callback);
+ this.all(function(results) {
+ var l = results.length;
+ for (var i = 0; i < l; i++) {
+ cb(results[i], i);
+ }
+ });
+ }
+// --
+};
diff --git a/includes/js/adaptors/AIRSqliteAdaptor.js b/includes/js/adaptors/AIRSqliteAdaptor.js
new file mode 100644
index 0000000..3d7aaaa
--- /dev/null
+++ b/includes/js/adaptors/AIRSqliteAdaptor.js
@@ -0,0 +1,271 @@
+// inline the AIR aliases file, edited to include only what we need
+
+/* AIRAliases.js - Revision: 2.0beta */
+
+/*
+ADOBE SYSTEMS INCORPORATED
+Copyright 2007-2008 Adobe Systems Incorporated. All Rights Reserved.
+
+NOTICE: Adobe permits you to modify and distribute this file only in accordance with
+the terms of Adobe AIR SDK license agreement. You may have received this file from a
+source other than Adobe. Nonetheless, you may modify or
+distribute this file only in accordance with such agreement.
+
+http://www.adobe.com/products/air/tools/sdk/eula/
+*/
+
+var air;
+if (window.runtime)
+{
+ if (!air) air = {};
+ // functions
+ air.trace = window.runtime.trace;
+
+ // file
+ air.File = window.runtime.flash.filesystem.File;
+ air.FileStream = window.runtime.flash.filesystem.FileStream;
+ air.FileMode = window.runtime.flash.filesystem.FileMode;
+
+ // data
+ air.EncryptedLocalStore = window.runtime.flash.data.EncryptedLocalStore;
+ air.SQLCollationType = window.runtime.flash.data.SQLCollationType;
+ air.SQLColumnNameStyle = window.runtime.flash.data.SQLColumnNameStyle;
+ air.SQLColumnSchema = window.runtime.flash.data.SQLColumnSchema;
+ air.SQLConnection = window.runtime.flash.data.SQLConnection;
+ air.SQLError = window.runtime.flash.errors.SQLError;
+ air.SQLErrorEvent = window.runtime.flash.events.SQLErrorEvent;
+ air.SQLErrorOperation = window.runtime.flash.errors.SQLErrorOperation;
+ air.SQLEvent = window.runtime.flash.events.SQLEvent;
+ air.SQLIndexSchema = window.runtime.flash.data.SQLIndexSchema;
+ air.SQLMode = window.runtime.flash.data.SQLMode;
+ air.SQLResult = window.runtime.flash.data.SQLResult;
+ air.SQLSchema = window.runtime.flash.data.SQLSchema;
+ air.SQLSchemaResult = window.runtime.flash.data.SQLSchemaResult;
+ air.SQLStatement = window.runtime.flash.data.SQLStatement;
+ air.SQLTableSchema = window.runtime.flash.data.SQLTableSchema;
+ air.SQLTransactionLockType = window.runtime.flash.data.SQLTransactionLockType;
+ air.SQLTriggerSchema = window.runtime.flash.data.SQLTriggerSchema;
+ air.SQLUpdateEvent = window.runtime.flash.events.SQLUpdateEvent;
+ air.SQLViewSchema = window.runtime.flash.data.SQLViewSchema;
+
+}
+
+
+
+
+/**
+ * AIRSQLiteAdaptor
+ * ===================
+ * AIR flavored SQLite implementation for Lawnchair.
+ *
+ * This uses synchronous connections to the DB. If this is available,
+ * I think this is the better option, but in single-threaded apps it
+ * may cause blocking. It might be reasonable to implement an alternative
+ * that uses async connections.
+ *
+ */
+var AIRSQLiteAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+
+AIRSQLiteAdaptor.prototype = {
+ init:function(options) {
+
+ var that = this;
+ var merge = that.merge;
+ var opts = (typeof arguments[0] == 'string') ? {table:options} : options;
+
+ this.name = merge('Lawnchair', opts.name);
+ this.table = merge('field', opts.table);
+
+ this.conn = new air.SQLConnection();
+ var appstoredir = air.File.applicationStorageDirectory;
+ this.dbFile = appstoredir.resolvePath(this.name + ".sqlite.db");
+
+ try {
+ this.conn.open(this.dbFile);
+ } catch(err) {
+ air.trace('Error msg:'+err.message);
+ air.trace('Error details:'+err.details);
+ }
+
+ this._execSql('create table if not exists ' + this.table + ' (id NVARCHAR(32) UNIQUE PRIMARY KEY, value TEXT, timestamp REAL)');
+ },
+
+ /*
+
+ */
+ save:function(obj, callback) {
+ var that = this;
+
+ var insert = function(obj, callback) {
+ var id;
+
+ if (obj.key == undefined) {
+ id = that.uuid();
+ } else {
+ id = obj.key;
+ }
+
+ delete(obj.key);
+
+ var rs = that._execSql("INSERT INTO " + that.table + " (id, value, timestamp) VALUES (:id,:value,:timestamp)",
+ {
+ ':id':id,
+ ':value':that.serialize(obj),
+ ':timestamp':that.now()
+ }
+ );
+
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ };
+
+ var update = function(id, obj, callback) {
+ var rs = that._execSql("UPDATE " + that.table + " SET value=:value, timestamp=:timestamp WHERE id=:id",
+ {
+ ':id':id,
+ ':value':that.serialize(obj),
+ ':timestamp':that.now()
+ }
+ );
+
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ };
+
+
+ if (obj.key == undefined) {
+
+ insert(obj, callback);
+ } else {
+
+ this.get(obj.key, function(r) {
+ var isUpdate = (r != null);
+
+ if (isUpdate) {
+ var id = obj.key;
+ delete(obj.key);
+ update(id, obj, callback);
+ } else {
+ insert(obj, callback);
+ }
+ });
+ }
+
+ },
+
+ /*
+
+ */
+ get:function(key, callback) {
+ var rs = this._execSql("SELECT * FROM " + this.table + " WHERE id = :id",
+ {
+ ':id':key
+ }
+ );
+
+ if (rs.data && rs.data.length> 0) {
+ var o = this.deserialize(rs.data[0].value);
+ o.key = key;
+ callback(o);
+ } else {
+ callback(null);
+ }
+ },
+
+ all:function(callback) {
+
+ if (typeof callback === 'string') {
+ throw new Error("Callback was a string; strings are not supported for callback shorthand under AIR");
+ }
+
+ var cb = this.terseToVerboseCallback(callback);
+ var rs = this._execSql("SELECT * FROM " + this.table);
+ var r = [];
+ var o;
+
+
+ if (rs.data && rs.data.length > 0) {
+ var k = 0;
+ var numrows = rs.data.length;
+
+ while (k < numrows) {
+ var thisdata = rs.data[k];
+ o = this.deserialize(thisdata.value);
+ o.key = thisdata.id;
+ r.push(o);
+ k++;
+ }
+ } else {
+ r = [];
+ }
+
+ cb(r);
+
+
+ },
+
+ /*
+
+ */
+ remove:function(keyOrObj, callback) {
+
+ var key = (typeof keyOrObj == 'string') ? keyOrObj : keyOrObj.key;
+ var rs = this._execSql("DELETE FROM " + this.table + " WHERE id = :id",
+ {
+ ':id':key
+ },
+ callback
+ );
+ },
+
+ /*
+
+ */
+ nuke:function(callback) {
+ var rs = this._execSql("DELETE FROM " + this.table, {}, callback);
+ },
+
+ /*
+ this is a wrapper for the overly complex AIR SQL API method of executing
+ SQL statements
+ */
+ _execSql:function(sql, params, onSuccess, onError) {
+
+ var stmt = new air.SQLStatement();
+ stmt.sqlConnection = this.conn;
+ stmt.text = sql;
+ if (params) {
+ for (var key in params) {
+ stmt.parameters[key] = params[key];
+ }
+ }
+
+ try {
+ stmt.execute();
+
+ var rs = stmt.getResult();
+ if (onSuccess) {
+ onSuccess(rs.data);
+ }
+
+ return rs;
+ } catch(err) {
+ air.trace('Error:' + err.message);
+ air.trace('Error details:' + err.details);
+ if (onError) {
+ onError(err);
+ }
+ return false;
+ }
+ }
+};
diff --git a/includes/js/adaptors/AIRSqliteAsyncAdaptor.js b/includes/js/adaptors/AIRSqliteAsyncAdaptor.js
new file mode 100644
index 0000000..cd6c65a
--- /dev/null
+++ b/includes/js/adaptors/AIRSqliteAsyncAdaptor.js
@@ -0,0 +1,280 @@
+// inline the AIR aliases file, edited to include only what we need
+
+/* AIRAliases.js - Revision: 2.0beta */
+
+/*
+ADOBE SYSTEMS INCORPORATED
+Copyright 2007-2008 Adobe Systems Incorporated. All Rights Reserved.
+
+NOTICE: Adobe permits you to modify and distribute this file only in accordance with
+the terms of Adobe AIR SDK license agreement. You may have received this file from a
+source other than Adobe. Nonetheless, you may modify or
+distribute this file only in accordance with such agreement.
+
+http://www.adobe.com/products/air/tools/sdk/eula/
+*/
+
+var air;
+if (window.runtime)
+{
+ if (!air) air = {};
+ // functions
+ air.trace = window.runtime.trace;
+
+ // file
+ air.File = window.runtime.flash.filesystem.File;
+ air.FileStream = window.runtime.flash.filesystem.FileStream;
+ air.FileMode = window.runtime.flash.filesystem.FileMode;
+
+ // data
+ air.EncryptedLocalStore = window.runtime.flash.data.EncryptedLocalStore;
+ air.SQLCollationType = window.runtime.flash.data.SQLCollationType;
+ air.SQLColumnNameStyle = window.runtime.flash.data.SQLColumnNameStyle;
+ air.SQLColumnSchema = window.runtime.flash.data.SQLColumnSchema;
+ air.SQLConnection = window.runtime.flash.data.SQLConnection;
+ air.SQLError = window.runtime.flash.errors.SQLError;
+ air.SQLErrorEvent = window.runtime.flash.events.SQLErrorEvent;
+ air.SQLErrorOperation = window.runtime.flash.errors.SQLErrorOperation;
+ air.SQLEvent = window.runtime.flash.events.SQLEvent;
+ air.SQLIndexSchema = window.runtime.flash.data.SQLIndexSchema;
+ air.SQLMode = window.runtime.flash.data.SQLMode;
+ air.SQLResult = window.runtime.flash.data.SQLResult;
+ air.SQLSchema = window.runtime.flash.data.SQLSchema;
+ air.SQLSchemaResult = window.runtime.flash.data.SQLSchemaResult;
+ air.SQLStatement = window.runtime.flash.data.SQLStatement;
+ air.SQLTableSchema = window.runtime.flash.data.SQLTableSchema;
+ air.SQLTransactionLockType = window.runtime.flash.data.SQLTransactionLockType;
+ air.SQLTriggerSchema = window.runtime.flash.data.SQLTriggerSchema;
+ air.SQLUpdateEvent = window.runtime.flash.events.SQLUpdateEvent;
+ air.SQLViewSchema = window.runtime.flash.data.SQLViewSchema;
+
+}
+
+
+
+
+/**
+ * AIRSQLiteAsyncAdaptor
+ * ===================
+ * AIR flavored SQLite implementation for Lawnchair.
+ *
+ * This uses asynchronous connections to the DB.
+ */
+var AIRSQLiteAsyncAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+
+AIRSQLiteAsyncAdaptor.prototype = {
+ init:function(options) {
+
+ var that = this;
+ var merge = that.merge;
+ var opts = (typeof arguments[0] == 'string') ? {table:options} : options;
+
+ this.name = merge('Lawnchair', opts.name);
+ this.table = merge('field', opts.table);
+
+ this.conn = new air.SQLConnection();
+ var appstoredir = air.File.applicationStorageDirectory;
+ this.dbFile = appstoredir.resolvePath(this.name + ".sqlite.db");
+
+ try {
+ this.conn.openAsync(this.dbFile);
+ } catch(err) {
+ air.trace('Error msg:'+err.message);
+ air.trace('Error details:'+err.details);
+ }
+
+ this._execSql('create table if not exists ' + this.table + ' (id NVARCHAR(32) UNIQUE PRIMARY KEY, value TEXT, timestamp REAL)');
+ },
+
+ /*
+
+ */
+ save:function(obj, callback) {
+ var that = this;
+
+ var insert = function(obj, callback) {
+ var id;
+
+ if (obj.key == undefined) {
+ id = that.uuid();
+ } else {
+ id = obj.key;
+ }
+
+ delete(obj.key);
+
+ that._execSql("INSERT INTO " + that.table + " (id, value, timestamp) VALUES (:id,:value,:timestamp)",
+ {
+ ':id':id,
+ ':value':that.serialize(obj),
+ ':timestamp':that.now()
+ },
+ function(rs) {
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ }
+ );
+ };
+
+ var update = function(id, obj, callback) {
+ that._execSql("UPDATE " + that.table + " SET value=:value, timestamp=:timestamp WHERE id=:id",
+ {
+ ':id':id,
+ ':value':that.serialize(obj),
+ ':timestamp':that.now()
+ },
+ function(rs) {
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ }
+ );
+ };
+
+
+ if (obj.key == undefined) {
+
+ insert(obj, callback);
+ } else {
+
+ this.get(obj.key, function(r) {
+ var isUpdate = (r != null);
+
+ if (isUpdate) {
+ var id = obj.key;
+ delete(obj.key);
+ update(id, obj, callback);
+ } else {
+ insert(obj, callback);
+ }
+ });
+ }
+
+ },
+
+ /*
+
+ */
+ get:function(key, callback) {
+ var that = this;
+ this._execSql("SELECT * FROM " + this.table + " WHERE id = :id",
+ {
+ ':id':key
+ },
+ function(rs) {
+ if (rs.data && rs.data.length> 0) {
+ var o = that.deserialize(rs.data[0].value);
+ o.key = key;
+ callback(o);
+ } else {
+ callback(null);
+ }
+ }
+ );
+ },
+
+ all:function(callback) {
+ var that = this;
+
+ if (typeof callback === 'string') {
+ throw new Error("Callback was a string; strings are not supported for callback shorthand under AIR");
+ }
+
+ var cb = this.terseToVerboseCallback(callback);
+ this._execSql("SELECT * FROM " + this.table, null, function(rs) {
+ var r = [];
+ var o;
+ if (rs.data && rs.data.length > 0) {
+ var k = 0;
+ var numrows = rs.data.length;
+
+ while (k < numrows) {
+ var thisdata = rs.data[k];
+ o = that.deserialize(thisdata.value);
+ o.key = thisdata.id;
+ r.push(o);
+ k++;
+ }
+ } else {
+ r = [];
+ }
+
+ cb(r);
+ });
+
+ },
+
+ /*
+
+ */
+ remove:function(keyOrObj) {
+
+ var key = (typeof keyOrObj == 'string') ? keyOrObj : keyOrObj.key;
+ this._execSql("DELETE FROM " + this.table + " WHERE id = :id",
+ {
+ ':id':key
+ }
+ );
+ },
+
+ /*
+
+ */
+ nuke:function() {
+ this._execSql("DELETE FROM " + this.table);
+ },
+
+ /*
+ this is a wrapper for the overly complex AIR SQL API method of executing
+ SQL statements
+ */
+ _execSql:function(sql, params, onSuccess, onError) {
+
+ var stmt = new air.SQLStatement();
+ stmt.sqlConnection = this.conn;
+ stmt.text = sql;
+ if (params) {
+ for (var key in params) {
+ stmt.parameters[key] = params[key];
+ }
+ }
+
+
+ function resultHandler(event) {
+ var rs = stmt.getResult();
+ if (onSuccess) {
+ onSuccess(rs);
+ }
+ }
+
+ function errorHandler(event) {
+ air.trace('Error:' + event.error.message);
+ air.trace('Error details:' + event.error.details);
+ if (onError) {
+ onError(event.error);
+ }
+ }
+
+ stmt.addEventListener(air.SQLEvent.RESULT, resultHandler);
+ stmt.addEventListener(air.SQLErrorEvent.ERROR, errorHandler);
+
+ try {
+ stmt.execute();
+ } catch(err) {
+ air.trace('Error:' + err.message);
+ air.trace('Error details:' + err.details);
+ if (onError) {
+ onError(err);
+ }
+ }
+ }
+};
diff --git a/includes/js/adaptors/CookieAdaptor.js b/includes/js/adaptors/CookieAdaptor.js
new file mode 100644
index 0000000..b7e852a
--- /dev/null
+++ b/includes/js/adaptors/CookieAdaptor.js
@@ -0,0 +1,87 @@
+/**
+ * CookieAdaptor
+ * ===================
+ * Cookie implementation for Lawnchair for older browsers.
+ *
+ * Based on ppk's http://www.quirksmode.org/js/cookies.html
+ *
+ */
+var CookieAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+CookieAdaptor.prototype = {
+ init:function(){
+ this.createCookie = function(name, value, days) {
+ if (days) {
+ var date = new Date();
+ date.setTime(date.getTime()+(days*24*60*60*1000));
+ var expires = "; expires="+date.toGMTString();
+ }
+ else var expires = "";
+ document.cookie = name+"="+value+expires+"; path=/";
+ };
+ },
+ get:function(key, callback){
+ var readCookie = function(name) {
+ var nameEQ = name + "=";
+ var ca = document.cookie.split(';');
+ var len = ca.length;
+ for (var i=0; i < len; i++) {
+ var c = ca[i];
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
+ }
+ return null;
+ };
+ var obj = this.deserialize(readCookie(key)) || null;
+ if (obj) {
+ obj.key = key;
+ }
+ if(callback) callback(obj);
+ },
+ save:function(obj, callback){
+ var id = obj.key || this.uuid();
+ delete obj.key;
+ this.createCookie(id, this.serialize(obj), 365);
+ if (callback)
+ callback(obj);
+ },
+ all:function(callback){
+ var cb = this.terseToVerboseCallback(callback);
+ var ca = document.cookie.split(';');
+ var yar = [];
+ var c,k,v,o;
+ // yo ho yo ho a pirates life for me
+ for (var i = 0, l = ca.length; i < l; i++) {
+ c = ca[i].split('=');
+ k = c[0];
+ v = c[1];
+ o = this.deserialize(v);
+ if (o) {
+ o.key = k;
+ yar.push(o);
+ }
+ }
+ if (cb)
+ cb(yar);
+ },
+ remove:function(keyOrObj, callback) {
+ var key = (typeof keyOrObj == 'string') ? keyOrObj : keyOrObj.key;
+ this.createCookie(key, '', -1);
+ if(callback)
+ callback();
+ },
+ nuke:function(nuke, callback) {
+ var that = this;
+ this.all(function(r){
+ for (var i = 0, l = r.length; i < l; i++) {
+ if (r[i].key)
+ that.remove(r[i].key);
+ }
+ }, callback);
+ }
+};
diff --git a/includes/js/adaptors/DOMStorageAdaptor.js b/includes/js/adaptors/DOMStorageAdaptor.js
new file mode 100644
index 0000000..0301037
--- /dev/null
+++ b/includes/js/adaptors/DOMStorageAdaptor.js
@@ -0,0 +1,103 @@
+/**
+ * DOMStorageAdaptor
+ * ===================
+ * DOM Storage implementation for Lawnchair.
+ *
+ * - originally authored by Joseph Pecoraro
+ * - window.name code courtesy Remy Sharp: http://24ways.org/2009/breaking-out-the-edges-of-the-browser
+ *
+ */
+var DOMStorageAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+
+DOMStorageAdaptor.prototype = {
+ init:function(options) {
+ var self = this;
+ this.storage = this.merge(window.localStorage, options.storage);
+ this.table = this.merge('field', options.table);
+
+ if (!(this.storage instanceof window.Storage)) {
+ this.storage = (function () {
+ // window.top.name ensures top level, and supports around 2Mb
+ var data = window.top.name ? self.deserialize(window.top.name) : {};
+ return {
+ setItem: function (key, value) {
+ data[key] = value+""; // force to string
+ window.top.name = self.serialize(data);
+ },
+ removeItem: function (key) {
+ delete data[key];
+ window.top.name = self.serialize(data);
+ },
+ getItem: function (key) {
+ return data[key] || null;
+ },
+ clear: function () {
+ data = {};
+ window.top.name = '';
+ }
+ };
+ })();
+ };
+ },
+
+ save:function(obj, callback) {
+ var id = this.table + '::' + (obj.key || this.uuid());
+ delete obj.key;
+ this.storage.setItem(id, this.serialize(obj));
+ if (callback) {
+ obj.key = id.split('::')[1];
+ callback(obj);
+ }
+ },
+
+ get:function(key, callback) {
+ var obj = this.deserialize(this.storage.getItem(this.table + '::' + key));
+ if (obj) {
+ obj.key = key;
+ if (callback) callback(obj);
+ } else {
+ if (callback) callback(null);
+ }
+ },
+
+ all:function(callback) {
+ var cb = this.terseToVerboseCallback(callback);
+ var results = [];
+ for (var i = 0, l = this.storage.length; i < l; ++i) {
+ var id = this.storage.key(i);
+ var tbl = id.split('::')[0]
+ var key = id.split('::').slice(1).join("::");
+ if (tbl == this.table) {
+ var obj = this.deserialize(this.storage.getItem(id));
+ obj.key = key;
+ results.push(obj);
+ }
+ }
+ if (cb)
+ cb(results);
+ },
+
+ remove:function(keyOrObj, callback) {
+ var key = this.table + '::' + (typeof keyOrObj === 'string' ? keyOrObj : keyOrObj.key);
+ this.storage.removeItem(key);
+ if(callback)
+ callback();
+ },
+
+ nuke:function(callback) {
+ var self = this;
+ this.all(function(r) {
+ for (var i = 0, l = r.length; i < l; i++) {
+ self.remove(r[i]);
+ }
+ if(callback)
+ callback();
+ });
+ }
+};
diff --git a/includes/js/adaptors/GearsSQLiteAdaptor.js b/includes/js/adaptors/GearsSQLiteAdaptor.js
new file mode 100644
index 0000000..6d6e559
--- /dev/null
+++ b/includes/js/adaptors/GearsSQLiteAdaptor.js
@@ -0,0 +1,210 @@
+// init.js directly included to save on include traffic
+//
+// Copyright 2007, Google Inc.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+//
+// 1. Redistributions of source code must retain the above copyright notice,
+// this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+// 3. Neither the name of Google Inc. nor the names of its contributors may be
+// used to endorse or promote products derived from this software without
+// specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+// Sets up google.gears.*, which is *the only* supported way to access Gears.
+//
+// Circumvent this file at your own risk!
+//
+// In the future, Gears may automatically define google.gears.* without this
+// file. Gears may use these objects to transparently fix bugs and compatibility
+// issues. Applications that use the code below will continue to work seamlessly
+// when that happens.
+
+(function() {
+ // We are already defined. Hooray!
+ if (window.google && google.gears) {
+ return;
+ }
+
+ var factory = null;
+
+ // Firefox
+ if (typeof GearsFactory != 'undefined') {
+ factory = new GearsFactory();
+ } else {
+ // IE
+ try {
+ factory = new ActiveXObject('Gears.Factory');
+ // privateSetGlobalObject is only required and supported on IE Mobile on
+ // WinCE.
+ if (factory.getBuildInfo().indexOf('ie_mobile') != -1) {
+ factory.privateSetGlobalObject(this);
+ }
+ } catch (e) {
+ // Safari
+ if ((typeof navigator.mimeTypes != 'undefined')
+ && navigator.mimeTypes["application/x-googlegears"]) {
+ factory = document.createElement("object");
+ factory.style.display = "none";
+ factory.width = 0;
+ factory.height = 0;
+ factory.type = "application/x-googlegears";
+ document.documentElement.appendChild(factory);
+ }
+ }
+ }
+
+ // *Do not* define any objects if Gears is not installed. This mimics the
+ // behavior of Gears defining the objects in the future.
+ if (!factory) {
+ return;
+ }
+
+ // Now set up the objects, being careful not to overwrite anything.
+ //
+ // Note: In Internet Explorer for Windows Mobile, you can't add properties to
+ // the window object. However, global objects are automatically added as
+ // properties of the window object in all browsers.
+ if (!window.google) {
+ google = {};
+ }
+
+ if (!google.gears) {
+ google.gears = {factory: factory};
+ }
+})();
+
+/**
+ * GearsSQLiteAdaptor
+ * ===================
+ * Gears flavored SQLite implementation for Lawnchair.
+ *
+ */
+var GearsSQLiteAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+
+GearsSQLiteAdaptor.prototype = {
+ init:function(options) {
+
+ var that = this;
+ var merge = that.merge;
+ var opts = (typeof arguments[0] == 'string') ? {table:options} : options;
+
+ this.name = merge('Lawnchair', opts.name);
+ this.table = merge('field', opts.table);
+
+ this.db = google.gears.factory.create('beta.database');
+ this.db.open(this.name);
+ this.db.execute('create table if not exists ' + this.table + ' (id NVARCHAR(32) UNIQUE PRIMARY KEY, value TEXT, timestamp REAL)');
+ },
+ save:function(obj, callback) {
+ var that = this;
+
+ var insert = function(obj, callback) {
+ var id = (obj.key == undefined) ? that.uuid() : obj.key;
+ delete(obj.key);
+
+ var rs = that.db.execute(
+ "INSERT INTO " + that.table + " (id, value, timestamp) VALUES (?,?,?)",
+ [id, that.serialize(obj), that.now()]
+ );
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ };
+
+ var update = function(id, obj, callback) {
+ that.db.execute(
+ "UPDATE " + that.table + " SET value=?, timestamp=? WHERE id=?",
+ [that.serialize(obj), that.now(), id]
+ );
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ };
+
+ if (obj.key == undefined) {
+ insert(obj, callback);
+ } else {
+ this.get(obj.key, function(r) {
+ var isUpdate = (r != null);
+
+ if (isUpdate) {
+ var id = obj.key;
+ delete(obj.key);
+ update(id, obj, callback);
+ } else {
+ insert(obj, callback);
+ }
+ });
+ }
+
+ },
+ get:function(key, callback) {
+ var rs = this.db.execute("SELECT * FROM " + this.table + " WHERE id = ?", [key]);
+
+ if (rs.isValidRow()) {
+ // FIXME need to test null return / empty recordset
+ var o = this.deserialize(rs.field(1));
+ o.key = key;
+ callback(o);
+ } else {
+ callback(null);
+ }
+ rs.close();
+ },
+ all:function(callback) {
+ var cb = this.terseToVerboseCallback(callback);
+ var rs = this.db.execute("SELECT * FROM " + this.table);
+ var r = [];
+ var o;
+
+ // FIXME need to add 0 len support
+ //if (results.rows.length == 0 ) {
+ // cb([]);
+
+ while (rs.isValidRow()) {
+ o = this.deserialize(rs.field(1));
+ o.key = rs.field(0);
+ r.push(o);
+ rs.next();
+ }
+ rs.close();
+ cb(r);
+ },
+ remove:function(keyOrObj, callback) {
+ this.db.execute(
+ "DELETE FROM " + this.table + " WHERE id = ?",
+ [(typeof keyOrObj == 'string') ? keyOrObj : keyOrObj.key]
+ );
+ if(callback)
+ callback();
+ },
+ nuke:function(callback) {
+ this.db.execute("DELETE FROM " + this.table);
+ if(callback)
+ callback();
+ return this;
+ }
+};
diff --git a/includes/js/adaptors/LawnchairAdaptorHelpers.js b/includes/js/adaptors/LawnchairAdaptorHelpers.js
new file mode 100644
index 0000000..381f49a
--- /dev/null
+++ b/includes/js/adaptors/LawnchairAdaptorHelpers.js
@@ -0,0 +1,98 @@
+/**
+ * LawnchairAdaptorHelpers
+ * =======================
+ * Useful helpers for creating Lawnchair stores. Used as a mixin.
+ *
+ */
+var LawnchairAdaptorHelpers = {
+ // merging default properties with user defined args
+ merge: function(defaultOption, userOption) {
+ return (userOption == undefined || userOption == null) ? defaultOption: userOption;
+ },
+
+ // awesome shorthand callbacks as strings. this is shameless theft from dojo.
+ terseToVerboseCallback: function(callback) {
+ return (typeof arguments[0] == 'string') ?
+ function(r, i) {
+ eval(callback)
+ }: callback;
+ },
+
+ // Returns current datetime for timestamps.
+ now: function() {
+ return new Date().getTime();
+ },
+
+ // Returns a unique identifier
+ uuid: function(len, radix) {
+ // based on Robert Kieffer's randomUUID.js at http://www.broofa.com
+ var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
+ var uuid = [];
+ radix = radix || chars.length;
+
+ if (len) {
+ for (var i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];
+ } else {
+ // rfc4122, version 4 form
+ var r;
+
+ // rfc4122 requires these characters
+ uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
+ uuid[14] = '4';
+
+ // Fill in random data. At i==19 set the high bits of clock sequence as
+ // per rfc4122, sec. 4.1.5
+ for (var i = 0; i < 36; i++) {
+ if (!uuid[i]) {
+ r = 0 | Math.random() * 16;
+ uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8: r];
+ }
+ }
+ }
+ return uuid.join('');
+ },
+
+ // Serialize a JSON object as a string.
+ serialize: function(obj) {
+ var r = '';
+
+ if (typeof JSON != 'undefined') {
+ r = JSON.stringify(obj);
+ } else {
+ // Art Haedike: 21 Dec 2009
+ // Pieced this together from some of the open libraries...handles recursion. More robust.
+ var t = typeof(obj);
+ if (t != "object" || obj === null) {
+ // simple data type
+ if (t == "string") obj = '"' + obj + '"';
+ r = String(obj);
+ } else {
+ // recurse array or object
+ var n,
+ v,
+ json = [],
+ arr = (obj && obj.constructor == Array);
+ for (n in obj) {
+ v = obj[n];
+ t = typeof(v);
+ if (t == "string") {
+ v = '"' + v + '"';
+ } else if (t == "object" && v !== null) {
+ //recursion starts here
+ v = this.serialize(v);
+ }
+ json.push((arr ? "": '"' + n + '":') + String(v));
+ }
+ r = (arr ? "[": "{") + String(json) + (arr ? "]": "}");
+ }
+
+ }
+
+ return r;
+ },
+
+ // Deserialize JSON.
+ deserialize: function(json) {
+ return eval('(' + json + ')');
+ }
+};
diff --git a/includes/js/adaptors/UserDataStorage.js b/includes/js/adaptors/UserDataStorage.js
new file mode 100644
index 0000000..db77424
--- /dev/null
+++ b/includes/js/adaptors/UserDataStorage.js
@@ -0,0 +1,71 @@
+/**
+ * UserDataAdaptor
+ * ===================
+ * UserData implementation for Lawnchair for older IE browsers.
+ *
+ */
+var UserDataAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+UserDataAdaptor.prototype = {
+ init:function(){
+ var s = document.createElement('span');
+ s.style.behavior = 'url(\'#default#userData\')';
+ s.style.position = 'absolute';
+ s.style.left = 10000;
+ document.body.appendChild(s);
+ this.storage = s.load('lawnchair');
+ },
+ get:function(key, callback){
+ // this.storage.getAttribute(key);
+ var obj = this.deserialize(this.storage[key]);
+ if (obj) {
+ obj.key = key;
+ if (callback)
+ callback(obj);
+ }
+ },
+ save:function(obj, callback){
+ var id = obj.key || this.uuid();
+ delete obj.key;
+ this.storage[id] = this.serialize(obj);
+ this.storage.save('lawnchair');
+ if (callback)
+ callback(obj);
+ },
+ all:function(callback){
+ var cb = this.terseToVerboseCallback(callback);
+ var ca = this.storage.attributes;
+ var yar = [];
+ var v,o;
+ // yo ho yo ho a pirates life for me
+ for (var i = 0, l = ca.length; i < l; i++) {
+ v = ca[i];
+ o = this.deserialize(v.nodeValue);
+ if (o) {
+ o.key = v.nodeName;
+ yar.push(o);
+ }
+ }
+ if (cb)
+ cb(yar);
+ },
+ remove:function(keyOrObj) {
+ var key = (typeof keyOrObj == 'string') ? keyOrObj : keyOrObj.key;
+ this.storage.removeAttribute(key);
+ this.storage.save('lawnchair');
+ },
+ nuke:function() {
+ var that = this;
+ this.all(function(r){
+ for (var i = 0, l = r.length; i < l; i++) {
+ if (r[i].key)
+ that.remove(r[i].key);
+ }
+ });
+ }
+};
diff --git a/includes/js/adaptors/WebkitSQLiteAdaptor.js b/includes/js/adaptors/WebkitSQLiteAdaptor.js
new file mode 100644
index 0000000..6575fbd
--- /dev/null
+++ b/includes/js/adaptors/WebkitSQLiteAdaptor.js
@@ -0,0 +1,166 @@
+/**
+ * WebkitSQLiteAdaptor
+ * ===================
+ * Sqlite implementation for Lawnchair.
+ *
+ */
+var WebkitSQLiteAdaptor = function(options) {
+ for (var i in LawnchairAdaptorHelpers) {
+ this[i] = LawnchairAdaptorHelpers[i];
+ }
+ this.init(options);
+};
+
+
+WebkitSQLiteAdaptor.prototype = {
+ init:function(options) {
+ var that = this;
+ var merge = that.merge;
+ var opts = (typeof arguments[0] == 'string') ? {table:options} : options;
+
+ // default properties
+ this.name = merge('Lawnchair', opts.name );
+ this.version = merge('1.0', opts.version );
+ this.table = merge('field', opts.table );
+ this.display = merge('shed', opts.display );
+ this.max = merge(65536, opts.max );
+ this.db = merge(null, opts.db );
+
+ // default sqlite callbacks
+ this.onError = function(){};
+ this.onData = function(){};
+
+ if("onError" in opts) {
+ this.onError = opts.onError;
+ }
+
+ // error out on shit browsers
+ if (!window.openDatabase)
+ throw('Lawnchair, "This browser does not support sqlite storage."');
+
+ // instantiate the store
+ this.db = openDatabase(this.name, this.version, this.display, this.max);
+
+ // create a default database and table if one does not exist
+ this.db.transaction(function(tx) {
+ tx.executeSql("SELECT COUNT(*) FROM " + that.table, [], function(){}, function(tx, error) {
+ that.db.transaction(function(tx) {
+ tx.executeSql("CREATE TABLE "+ that.table + " (id NVARCHAR(32) UNIQUE PRIMARY KEY, value TEXT, timestamp REAL)", [], function(){}, that.onError);
+ });
+ });
+ });
+ },
+ save:function(obj, callback) {
+ var that = this;
+
+ var update = function(id, obj, callback) {
+ that.db.transaction(function(t) {
+ t.executeSql(
+ "UPDATE " + that.table + " SET value=?, timestamp=? WHERE id=?",
+ [that.serialize(obj), that.now(), id],
+ function() {
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ },
+ that.onError
+ );
+ });
+ };
+ var insert = function(obj, callback) {
+ that.db.transaction(function(t) {
+ var id = (obj.key == undefined) ? that.uuid() : obj.key;
+ delete(obj.key);
+ t.executeSql(
+ "INSERT INTO " + that.table + " (id, value,timestamp) VALUES (?,?,?)",
+ [id, that.serialize(obj), that.now()],
+ function() {
+ if (callback != undefined) {
+ obj.key = id;
+ callback(obj);
+ }
+ },
+ that.onError
+ );
+ });
+ };
+ if (obj.key == undefined) {
+ insert(obj, callback);
+ } else {
+ this.get(obj.key, function(r) {
+ var isUpdate = (r != null);
+
+ if (isUpdate) {
+ var id = obj.key;
+ delete(obj.key);
+ update(id, obj, callback);
+ } else {
+ insert(obj, callback);
+ }
+ });
+ }
+ },
+ get:function(key, callback) {
+ var that = this;
+ this.db.transaction(function(t) {
+ t.executeSql(
+ "SELECT value FROM " + that.table + " WHERE id = ?",
+ [key],
+ function(tx, results) {
+ if (results.rows.length == 0) {
+ callback(null);
+ } else {
+ var o = that.deserialize(results.rows.item(0).value);
+ o.key = key;
+ callback(o);
+ }
+ },
+ this.onError
+ );
+ });
+ },
+ all:function(callback) {
+ var cb = this.terseToVerboseCallback(callback);
+ var that = this;
+ this.db.transaction(function(t) {
+ t.executeSql("SELECT * FROM " + that.table, [], function(tx, results) {
+ if (results.rows.length == 0 ) {
+ cb([]);
+ } else {
+ var r = [];
+ for (var i = 0, l = results.rows.length; i < l; i++) {
+ var raw = results.rows.item(i).value;
+ var obj = that.deserialize(raw);
+ obj.key = results.rows.item(i).id;
+ r.push(obj);
+ }
+ cb(r);
+ }
+ },
+ that.onError);
+ });
+ },
+ remove:function(keyOrObj, callback) {
+ var that = this;
+ this.db.transaction(function(t) {
+ t.executeSql(
+ "DELETE FROM " + that.table + " WHERE id = ?",
+ [(typeof keyOrObj == 'string') ? keyOrObj : keyOrObj.key],
+ callback || that.onData,
+ that.onError
+ );
+ });
+ },
+ nuke:function(callback) {
+ var that = this;
+ this.db.transaction(function(tx) {
+ tx.executeSql(
+ "DELETE FROM " + that.table,
+ [],
+ callback || that.onData,
+ that.onError
+ );
+ });
+ }
+};
|
bohde/seinfeld
|
dee0685b1698dc0e03f06e40f00756b5a7dab6ab
|
Added next and previous month links.
|
diff --git a/coffee/seinfeld.coffee b/coffee/seinfeld.coffee
index 6135c9f..0fff4b9 100644
--- a/coffee/seinfeld.coffee
+++ b/coffee/seinfeld.coffee
@@ -1,20 +1,28 @@
setMonthTitle: (date) ->
- $('h2').text date.toString("MMMM")
+ $('.current').text date.toString("MMMM")
calcDaysInMonth: (day) ->
- day: day.moveToFirstDayOfMonth()
+ day: day.clone().moveToFirstDayOfMonth()
month: day.getMonth()
if not day.is().sunday()
day.last().sunday()
$('td.day').each () ->
block: $ this
block.text day.toString "d"
if day.getMonth() != month
block.addClass "other"
day.addDays 1
$(()->
date: Date.today()
- setMonthTitle date
- calcDaysInMonth date.clone()
+ populatePage: () ->
+ setMonthTitle date
+ calcDaysInMonth date
+ changePage: (num) ->
+ ()->
+ date.addMonths num
+ populatePage()
+ $('a.next').click changePage 1
+ $('a.previous').click changePage(-1)
+ populatePage()
)
diff --git a/jade/index.jade b/jade/index.jade
index 9fea33d..765181a 100644
--- a/jade/index.jade
+++ b/jade/index.jade
@@ -1,22 +1,26 @@
!!! 5
- var days = ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
- var rows = [1,2,3,4,5]
html(lang="en")
head
title Seinfeld Calendar
script(src: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
script(src: "http://cachedcommons.org/cache/datejs/1.0.0/javascripts/date-min.js")
script(src: "js/seinfeld.js")
body
header
h1 Seinfeld Calendar
section
- h2 This Month
+
+ h2
+ a(href: "#", class: "previous") «
+ span(class: "current") This Month
+ a(href: "#", class: "next") »
table
tr.days
- each day in days
td= day
- each row in rows
tr.calendar
-each day in days
td.day placeholder
|
bohde/seinfeld
|
f07390a48e5ba51e14fc9fb9a7ebfbafcca2a5b7
|
Calculate the days of the month on page load.
|
diff --git a/coffee/seinfeld.coffee b/coffee/seinfeld.coffee
index 1909bc0..6135c9f 100644
--- a/coffee/seinfeld.coffee
+++ b/coffee/seinfeld.coffee
@@ -1,8 +1,20 @@
-# Let's set the month title
setMonthTitle: (date) ->
$('h2').text date.toString("MMMM")
+calcDaysInMonth: (day) ->
+ day: day.moveToFirstDayOfMonth()
+ month: day.getMonth()
+ if not day.is().sunday()
+ day.last().sunday()
+ $('td.day').each () ->
+ block: $ this
+ block.text day.toString "d"
+ if day.getMonth() != month
+ block.addClass "other"
+ day.addDays 1
+
$(()->
- date = Date.today()
- setMonthTitle(date)
+ date: Date.today()
+ setMonthTitle date
+ calcDaysInMonth date.clone()
)
|
bohde/seinfeld
|
36e177a487daaa1b9b2c506e9896ea1051b5d76a
|
Set month title on page load.
|
diff --git a/coffee/seinfeld.coffee b/coffee/seinfeld.coffee
index b2cecaa..1909bc0 100644
--- a/coffee/seinfeld.coffee
+++ b/coffee/seinfeld.coffee
@@ -1,5 +1,8 @@
-# What month is it?
-
-month: () ->
- Date.today().getMonth()
+# Let's set the month title
+setMonthTitle: (date) ->
+ $('h2').text date.toString("MMMM")
+$(()->
+ date = Date.today()
+ setMonthTitle(date)
+)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.