Sebastian,
In order to use session store you have to do the following things,
To create a migration file:
rake db:sessions:create
To create session table:
* For development mode: rake db:migrate
* For production mode: rake db:migrate RAILS_ENV=production
Then un-comment the following line
hi,
here are the missing info:
Processing FeedbacksController#create (for 78.42.xyz.xyz at 2011-05-20
09:26:51) [POST]
Parameters: {commit=Send,
authenticity_token=2HzCbBM0J1SfEwIHP/GucR+HPs3fM31ts69llwkQDNc=,
feedback={comment=test, subject=Suggestion,
email=myem...@gmail.com}, _=}
Sent mail
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it runs. If I run it through the cron I
get the following error:-
Saravanan,
I am on rails 3. I don't know if it is because of that, but I had to
un-comment the line in 'config/initializers/session_store.rb' instead
of 'config/environment.rb'. And the line you send me is deprecated (my
server told me), so I used this instead:
Saravanan,
I am on rails 3. I don't know if it is because of that, but I had to
un-comment the line in 'config/initializers/session_store.rb' instead
of 'config/environment.rb'. And the line you send me is deprecated (my
server told me), so I used this instead:
Hi list,
Finally got stuff committing to GIT, but not sure what the heck is going
on with the 'message' variable, so need to do some reading to refresh my
memory of that. I've attached my code in case anyone is interested :P
It's probably the biggest cludge in the world, so any suggestions on
On 20 May 2011 05:01, Heinz Strunk li...@ruby-forum.com wrote:
I got a form which looks like this:
- form_for(@article, :html = {:multipart = true}, :url =
articles_path) do |f|
= errors_for(@article)
.field
= f.label :text
%br
= f.text_field :text
.field
= f.label
Hello all,
I am trying to implement a feature in my app where a user posts a
message along with an image.
This is something similar to what is there in `www.diasp.org` .
I dealing with a pretty much outdated configuration of Rails 2.0.2 and
Ruby 1.8.7 , both running on Ubuntu 10.04 OS for
On May 20, 10:12 am, Tushar Gandhi li...@ruby-forum.com wrote:
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it runs. If I run it through the cron I
Cron starts up with a pretty stripped
On May 20, 1:11 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On May 20, 10:12 am, Tushar Gandhi li...@ruby-forum.com wrote:
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it
[RAILS3]
I hesitate on how handling the locale view templates to default to
one language only ..
sending admin emails will go only to one locale 'en_GB'
should I set it up into the template name and set I18n.locale to
'en_GB'
membership_renew.en_GB.html.erb
OR
whatever locale is used , if
On Thu, May 19, 2011 at 7:21 PM, egervari ken.egerv...@gmail.com wrote:
Hi, I've just gotten started with devise and it's pretty nifty. I just
wondered if people could point me in the right direction for finding
info about 3 things.
1. How come the login form does not report error messages
I just want to note that passenger does not run on webrick , passenger is an
apache/nginx module.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from
Sent from my iPhone
On May 20, 2011, at 5:32 AM, Mohnish G j li...@ruby-forum.com wrote:
Hello all,
I am trying to implement a feature in my app where a user posts a
message along with an image.
This is something similar to what is there in `www.diasp.org` .
I dealing with a pretty
On May 19, 2011, at 9:14 PM, renu mehta wrote:
I am trying to write an application which uses screen scraping. I have
to first get a screen and get then scrape that page and using the link
to a frame in that page, I have to get that frame and then finally
scrape that frame and get some
On May 19, 2011, at 9:14 PM, renu mehta wrote:
I am trying to write an application which uses screen scraping. I have
to first get a screen and get then scrape that page and using the link
to a frame in that page, I have to get that frame and then finally
scrape that frame and get some
On May 18, 5:37 am, Peter De Berdt peter.de.be...@pandora.be wrote:
On 18 May 2011, at 11:26, amrit pal pathak wrote:
I made a new rails app and when i started the server ,it gave
following error message.
= Booting Mongrel
= Rails 2.3.8 application starting
on linux - lsof | grep -i ruby
tom
On May 20, 2011, at 16:03 , amrit pal pathak wrote:
On May 18, 5:37 am, Peter De Berdt peter.de.be...@pandora.be wrote:
On 18 May 2011, at 11:26, amrit pal pathak wrote:
I made a new rails app and when i started the server ,it gave
I tried to generate a form it says undefined method `posts_path' for
##Class:0xb6784798:0xb67817f0
The following code at line number 2 gives the error.
%= link_to 'New Post'%
%= form_for(@post) do |f| %
div class=field
%= f.label :name %br /
%= f.text_field :name %
/div
div
On May 20, 2011, at 10:22 AM, John shelfer wrote:
I tried to generate a form it says undefined method `posts_path' for
##Class:0xb6784798:0xb67817f0
The following code at line number 2 gives the error.
%= link_to 'New Post'%
%= form_for(@post) do |f| %
div class=field
%= f.label :name %br
Check your routes file for the routes for *post*.
If you scaffolded the model, then there should be
resources :post
in your routes.rb file.
If the above is not there, just add the line and you will get the routes for
CRUD automatically.
On Fri, May 20, 2011 at 2:22 PM, John shelfer
Hello all
VERY new to ruby on rails here.
At one part of my site, a fairly large image is produced. It is
sometimes larger than the container that I would like to put it in
(which is defined in the layouts). Is it possible to change the style of
the container if the image is too large?
--
I am having trouble finding things online on how to do a simple file
upload. Could you guys give me some advice? Point me in right direction.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
Hi,
Im using mongodb database in my rails 3 app. i tried to implement
image upload using carrier wave gem in my applications but i failed.
Can anyone explain...
Thanks and Regards..
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
My application needs to check whether a file contains valid XML. I'm
using XmlSimple to do the parsing work but wondered how best to validate
the XML in the file I'm parsing.
I'd appreciate your input.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
Rails is not changing my divs styles.
I made a new layout and set a div's style to style=width:2000 but it
does not change the width. Any ideas?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
Have you tried:
serialize :email_addresses, Array
before_save :split_email addresses
def split_email_addresses
email_addresses.split(' ')
end
Or, just store email addresses in a separate table, and create a
has_many relationship.
On May 19, 3:27 pm, Alex Katebi alex.kat...@gmail.com wrote:
I
I have made myself a small activity model like this =
# == Schema Information
# Schema version: 20110519174324
#
# Table name: activities
#
# id :integer not null, primary key
# account_id :integer
# action :string(255)
# item_id:integer
# item_type :string(255)
#
style=width:2000px
did you checked with firebug or any other inspector?
On May 20, 2011, at 17:31 , Benjamin Mulaosmanovic wrote:
Rails is not changing my divs styles.
I made a new layout and set a div's style to style=width:2000 but it
does not change the width. Any ideas?
--
Posted
I also need to do validation please advise
On May 20, 8:29 am, Pale Horse li...@ruby-forum.com wrote:
My application needs to check whether a file contains valid XML. I'm
using XmlSimple to do the parsing work but wondered how best to validate
the XML in the file I'm parsing.
I'd appreciate
http://stackoverflow.com/questions/1007454/validation-of-xml-file-against-xsd-in-ruby
xmlsimple can't do validations using xsd/dtd etc
tom
On May 20, 2011, at 17:29 , Pale Horse wrote:
My application needs to check whether a file contains valid XML. I'm
using XmlSimple to do the parsing work
On 20 May 2011 01:03, Karthikeyan A k li...@ruby-forum.com wrote:
Hello People,
I have created a tiny Rails app for my personal use. I want to host it
on my personal computer (just like PHP can be hosted easily). I use
Ubuntu Linux, can any one tell me how to do it? Is there any
We accomplish this with custom extensions to the PostgreSQLAdapter,
Migration, Migrator and other classes. It is not an ideal solution
because we have to patch numerous areas including rspec.rake tasks,
database_cleaner rake task and we still dont have a full solution that
behaves like you
On 20 May 2011 08:33, tom tomabr...@gmail.com wrote:
hi,
here are the missing info:
Processing FeedbacksController#create (for 78.42.xyz.xyz at 2011-05-20
09:26:51) [POST]
Parameters: {commit=Send,
authenticity_token=2HzCbBM0J1SfEwIHP/GucR+HPs3fM31ts69llwkQDNc=,
feedback={comment=test,
I have resolved this:
The situation was that update_attributes was only working on the second
record in a nested form arrangement. To fix this problem I found that if I
do this:
@matchup = Matchup.includes(:rosters).where(matchups.id
=#{params[:id]}).first
Rather than
@matchup =
Hi all,
I had been searching and reading for user action logging in Rails 3 and
didn't came out with something that looks like the way to take for sure.
Does anyone know a gem or have any recommendation about the best way to do
this?
The idea is to log the user, date and time information, the
Hi,
I posted a similar question quite recently, as all the tutorials I found
online were incorrect.
I have some basic code that works for uploading files, which I have
pasted below. It has no error checking of any kind at the moment.
Hope it helps,
Jen.
Model:
class DataFile
you can do it by yourself.. just create before_filter, place into your
application controller and store controller_name and action or any other values
assume you have some db table with user logging
class ApplicationController ActionController::Base
before_filter :log_user
private
def
Hi Bryan,
Thanks for your response..
If I have understood your response properly
I am aware about this difference in the name Bryan, I am just making use
of two different symbol names.. As per the requirement in the project.
To the best of my knowldege, I don't think I am calling a method
yes and no - im not calling delete 'manually' nor do i have coded it
into the create method. to me it seems the rollback is doing this, as
far as i can trace back the code.
anyhow - thx
On Fri, May 20, 2011 at 12:49 PM, Colin Law clan...@googlemail.com wrote:
On 20 May 2011 08:33, tom
hi
think the best is to use debugger and see what happening here
tom
On May 20, 2011, at 19:19 , tom wrote:
yes and no - im not calling delete 'manually' nor do i have coded it
into the create method. to me it seems the rollback is doing this, as
far as i can trace back the code.
anyhow -
Thanks Tom, thats the approach I had in mind but didn't know for sure if
there was already something or if it was a good way to go.
Will follow your indications.
On Fri, May 20, 2011 at 2:15 PM, Tom Meinlschmidt to...@meinlschmidt.comwrote:
you can do it by yourself.. just create
On Friday, May 20, 2011 6:13:16 AM UTC-6, Frederick Cheung wrote:
On May 20, 1:11 pm, Frederick Cheung frederic...@gmail.com
wrote:
On May 20, 10:12 am, Tushar Gandhi li...@ruby-forum.com wrote:
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash
The child process can exit using Kernel.exit! to avoid running any
at_exit functions.
This seems to have fixed the issue for me. I have no at_exit functions
I need executed.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
Sent from my iPhone
On May 20, 2011, at 12:18 PM, Mohnish G j li...@ruby-forum.com wrote:
Hi Bryan,
Thanks for your response..
If I have understood your response properly
I am aware about this difference in the name Bryan, I am just making use
of two different symbol names.. As
Hi Hans -
I have recently completed an upgrade of 3 applications (with 2 more to
go) with more than a dozen plugins from Rails 2.3.5 to Rails 3.0.6.
My process was to do not only upgrade each app but to convert each
plugin into a rails engine-gem.
I made a Rails3 branch of each of our repo's.
Hi,
added to article.rb:
attr_accessible :author_name
You should use attr_accessor instead (not attr_accessible, as You
don't have the author_name DB column).
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
Kad Kerforn wrote in post #999856:
[RAILS3]
I hesitate on how handling the locale view templates to default to
one language only ..
sending admin emails will go only to one locale 'en_GB'
should I set it up into the template name and set I18n.locale to
'en_GB'
Tom Meinlschmidt wrote in post #08:
style=width:2000px
did you checked with firebug or any other inspector?
On May 20, 2011, at 17:31 , Benjamin Mulaosmanovic wrote:
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
Hey all,
I have a question about this line of code:
within #main-menu do
find(h6, :text = menu).click if menu
click_link link
end
def within(selector, blk)
new_blk = proc do
begin
scope_selectors.push(selector)
blk.call
ensure
scope_selectors.pop
end
Hi,
I'm in trouble with encoding again.
I have a text area. Where I can enter sentences. And when a sentence
that contains multiple lines is typed I get this into the DB:
(json serialized)
--- {\text\:[\line one\\r\\nline two\]}
Ok. When I take it from the db I see it like this in the
Hi,
I have a simple question for when ruby on rails, say I want to create
two apps and I am currently working on one but essentially the other app
will need exactly the same things up to this stage can I just duplicate
the folder which contains all the files and use it again?
Thanks in advance
On May 20, 2011, at 4:44 PM, comopasta Gr wrote:
Hi,
I'm in trouble with encoding again.
I have a text area. Where I can enter sentences. And when a sentence
that contains multiple lines is typed I get this into the DB:
(json serialized)
--- {\text\:[\line one\\r\\nline two\]}
Ok. When I
if notice = response_status_and_flash.delete(:notice)
flash[:notice] = notice
end
This is a common C idiom.
The best solution is to always write your == with the constant on the LEFT
instead
of the right.
:D
--
make haste slowly \
festina lente \
-
mobile +1_415_632_6001
On Friday, May 20, 2011 2:18:50 PM UTC-6, Ruby-Forum.com User wrote:
Hey all,
I have a question about this line of code:
within #main-menu do
find(h6, :text = menu).click if menu
click_link link
end
def within(selector, blk)
new_blk = proc do
begin
Thanks alot
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
On May 20, 2011, at 5:05 PM, Curtis j Schofield wrote:
if notice = response_status_and_flash.delete(:notice)
flash[:notice] = notice
end
This is a common C idiom.
The best solution is to always write your == with the constant on
the LEFT instead
of the right.
:D
--
make haste slowly
Thanks guys
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
On Fri, May 20, 2011 at 4:23 PM, Rob Biedenharn
r...@agileconsultingllc.comwrote:
On May 20, 2011, at 5:05 PM, Curtis j Schofield wrote:
if notice = response_status_and_flash.delete(:notice)
flash[:notice] = notice
end
This is a common C idiom.
The best solution is to always write
From this week's JavaScript Weekly newsletter:
JSON: The JavaScript subset that isn't?
Magnus Holm notes that while JSON is meant to also be syntactically
legal JavaScript code.. it isn't always. What has Magnus discovered?
Find out here.
Any delayed_job gurus out there? This is a known issue on the wiki as
described at the bottom here:
https://github.com/collectiveidea/delayed_job/wiki/Common-problems
However, even when running Mongrel (on Rails 3.0.3, ruby 1.9.2, Win7)
after replacing Webrick) I am still getting this issue. My
I have the below link I am generating and type.name returns some
strings with a forward slash (/). This of course messes up routing.
I would like to escape it to %2F however I am unclear on how to do
that.
%= link_to type.name, types_path(CGI::escape(type.name)) %
If I do the below. it gives a
On May 20, 2011, at 6:19 PM, comopasta Gr wrote:
From this week's JavaScript Weekly newsletter:
JSON: The JavaScript subset that isn't?
Magnus Holm notes that while JSON is meant to also be syntactically
legal JavaScript code.. it isn't always. What has Magnus discovered?
Find out here.
But there two other characters and you have BOTH of those:
The following characters are consider to be line terminators:
\u000A - Line Feed
\u000D - Carriage Return
\u2028 - Line separator
\u2029 - Paragraph separator
Line feed, aka, \n
Carriage return, aka, \r
You might
Hi,
Creating a new Rails application with -d postgresql sets the encoding in
the database.yml to unicode
Creating a new Rails with -d mysql sets the encoding to utf8
Any ideas why this difference?
I've been having problems with encoding due to localization, accents,
json and what no. I thought
Not quite clear, what ruby gem do You use? MongoMaper, MongoID, other?
I'm using MongoMapper, and it works, here's my integration of
MongoMapper + CarrierWave (it also works with Paperclip, I used it in
past but don't like and rewrote with CarrierWave)
A silly as this sounds, I'm not sure how to set the route for the
home_path and home_url helpers. Google has nothing on this. Where do I
define what those paths should resolve to?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
Read the comments in the config/route.rb file.
On Fri, May 20, 2011 at 10:06 PM, Taylor Strait li...@ruby-forum.com wrote:
A silly as this sounds, I'm not sure how to set the route for the
home_path and home_url helpers. Google has nothing on this. Where do I
define what those paths should
I just recently has to solve problem with multilingual site support and
wrote a short article that describes two approaches:
store multiple versions of content in the model and have one site vs.
store only one version of content in the model but have multiple sites
Please run rake routes and post that here
rake routes shows
posts_index GET /posts/index(.:format)
{:action=index, :controller=posts}
What does your routes.rb look like?
router.rb file looks like:
Check::Application.routes.draw do
get posts/index
# The priority is based upon order of
Thank you very much for the reply Radhames Britto
I immediately tried your first 2 suggestions and they worked out
great. My suggestion for the #2 problem is to put this in the top-
level documentation on the github page (if you have the authority to
do that... or know the author and can tell him
As of Rails 3.0.3, there are no comments in routes.rb that relate to the
creation of home_url and home_path. There is a mention of root:
# You can have the root of your site routed with root
# just remember to delete public/index.html.
# root :to = welcome#index
but that it all.
I just
72 matches
Mail list logo