On 15 June 2011 23:13, Jedrin jrubia...@gmail.com wrote:
Say you have a page that you dynamically created with ajax calls and
RJS. Can you somehow get a copy of what that final page looks like and
somehow cache it away and later serve it from the cache ?
A problem seems to be that if you
Your problem is here:
@user.skill_ids
NoMethodError: undefined method `skill_ids' for
#ActiveRecord::Relation:0x0005515b58
@user.role_ids
NoMethodError: undefined method `skill_ids' for
#ActiveRecord::Relation:0x0005515b58
Try @user.skills.all and @user.roles.all.
Of you really DO
Hi,
Im looking to move my file storage to Amazon S3 europe and have
followed both these solutions here
http://thewebfellas.com/blog/2010/1/31/paperclip-vs-amazon-s3-european-buckets
using the aws-s3 gem and the qooba/s3 gem. Everything looks fine up
to when i try to save the file. Ive stepped
Can anyone help me with the uninitialized class variable @@env in OCI8
error raised in my app\views\ index.html.erb file
Thanks in advance
Below is the code and the result of bundle show. I am using Windows 7
h1Listing comics/h1
table
tr
thTitle/th
thIssue/th
thPublisher/th
Hi Mauro,
i had the exact same issue with escape_javascript devastating all my
partials. The fix is incredibly easy and managable for the impatient ;)
https://github.com/rails/rails/commit/8c8652c37f6f6969ce48
apply this one-liner and you are fine until 3.0.9 comes out.
Cheers,
Bernd
Are you interested in applying your Ruby skills to support:
Arts
Music
Culture
Healing
Education
Community
Sustainability
Conscious Evolution
Azimuth Internet Services based in Petaluma, CA is seeking passionate
ruby programmers to join our ad-hoc team on a contract-basis. Tele-
commuting is
On 15 June 2011 20:16, Bernd Ritter com...@gmail.com wrote:
Hi Mauro,
i had the exact same issue with escape_javascript devastating all my
partials. The fix is incredibly easy and managable for the impatient ;)
I'm not so expert to find issues and fix them.
--
You received this message
not working
On Thu, Jun 16, 2011 at 1:20 PM, askegg andrew.sk...@gmail.com wrote:
Your problem is here:
@user.skill_ids
NoMethodError: undefined method `skill_ids' for
#ActiveRecord::Relation:0x0005515b58
@user.role_ids
NoMethodError: undefined method `skill_ids' for
Hi everybody!
Rails 3.0.9 (Nordic Ruby Edition) has been released! The main boogs fixed in
this release are problems dealing with modifications of SafeBuffers.
`gem install rails` or update your Gemfile and `bundle update` while it's hot!
## CHANGES
The major changes in this release of Rails
On 16 June 2011 10:58, rajeevsharma86 rajeevsharm...@gmail.com wrote:
not working
It is no good just saying 'not working'. Post exactly what you have
tried and exactly what the result is.
By the way please don't top post, it makes it difficult to follow the
thread. Insert your replies inline
On Jun 16, 2011, at 1:22 AM, rajeevkannav wrote:
class User ActiveRecord::Base
has_many :correlations
has_many :roles, :through = :correlations
has_many :skills, :through = :correlations
attr_accessible
:email
, :password
, :password_confirmation
, :remember_me
, :role_ids
Hi,
With TinyMCE, when you click add image you can put a URL of an image
and add an image to the document. I need the file upload plugin, but
it works only with PHP and .NET. I can only spend few hours to create
that feature so I would like to know if there is any ready-made plugin
who works with
Hmmm, I'm still not entirely sure what you are trying to do. Which of
the following scenarios does your app belong to?
- Certain tables should be kept in sync between two databases or even
the database as a whole, but the databases need to be on different
servers/locations: use database
I am looking for a way to synchronize access to a shared data
structure in a standard rails app.
I read that if you are running on passenger, then Mutex.new is of no
use? Can somebody please clarify this?
I know that I can use transaction and :lock = true to do db level
locking on models, but I
With TinyMCE, when you click add image you can put a URL of an image
and add an image to the document. I need the file upload plugin, but
it works only with PHP and .NET. I can only spend few hours to create
that feature so I would like to know if there is any ready-made plugin
who works with
Can someone help me with this error?
Started GET /comics for 3.134.140.40 at 2011-06-16 09:33:12 -0400
Processing by ComicsController#index as HTML
←[1m←[35mComic Load (2.0ms)←[0m SELECT comics.* FROM comics
Rendered comics/index.html.erb within layouts/application (1.0ms)
Completed 500
Hi,
I'm using the carrierwave to upload images and pdf in my application, and
I'd like to upload docs and zips too.
I'm already put this formats as extensions allowed, but when I try upload
this kind of files, I get the error *failed to be processed*.
Someone know how I do for get the upload of
On 16 June 2011 10:24, Aaron Patterson aa...@tenderlovemaking.com wrote:
Hi everybody!
Rails 3.0.9 (Nordic Ruby Edition) has been released! The main boogs fixed in
this release are problems dealing with modifications of SafeBuffers.
`gem install rails` or update your Gemfile and `bundle
Hi,
I'm trying to use Rails for the first time and since 3.1 is already in
RC stage I thought I'd use it. The problem is I don't want any of the
asset pipeline functionality. I decided to use RequireJS in my project
and I simply don't need asset pipeline or Sprockets. I tried
commenting out
So, here's the problem: @import isn't liking other directories.
Example:
app/
assets/
stylesheets/
extras/
_mixins.sass
_variables.sass
photographs/
index.css.sass
And the contents of app/assets/stylesheets/photographs/index.css.sass is:
@import
In your application.rb file change config.assets.enabled to false.
Dieter Lunn
http://ubiety.ca
On Thu, Jun 16, 2011 at 9:24 AM, Juliusz Gonera jgon...@gmail.com wrote:
Hi,
I'm trying to use Rails for the first time and since 3.1 is already in
RC stage I thought I'd use it. The problem is
I have a situation where I want to duplicate an ActiveRecord including
duplication of has_many relationships.
I've seen a few plugins but it seems unclear if they will work on
Rails3. So I was wondering if anyone has a good suggestion for a
plugin they are currently using to do this?
Basically
I was thinked about it for a two days. Can you please give some ideas?
i don't know if i should use STI, polymorphic or something else.
Pattern description -
https://rapidshare.com/files/2628031507/obs_architecture.pdf
(Figure 4/5)
--
You received this message because you are subscribed to the
Thanks, but I'm not using Devise; I'm using Authlogic, so I get the
error,
undefined method 'confirm!'
There must be a straight-forward way to do this with Authlogic...
On Jun 16, 12:27 am, Andrew Skegg andrewsk...@me.com wrote:
daze dmonopoly10@... writes:
In a Cucumber step definition,
I'll just quote myself:
I tried commenting out config.assets.enabled = true in application.rb
or
setting it to false.
On Jun 16, 6:56 pm, Dieter Lunn coder2...@gmail.com wrote:
In your application.rb file change config.assets.enabled to false.
Dieter Lunnhttp://ubiety.ca
--
You received
There's a discussion going on at StackOverflow about whether, with the
advent of HTTP streaming in Rails 3.1, it's time to bend the rules
with respect to the time honoured tradition of putting script tags
before the closing /body tag.
On Thu, Jun 16, 2011 at 8:45 PM, steveluscher goo...@steveluscher.com wrote:
There's a discussion going on at StackOverflow about whether, with the
advent of HTTP streaming in Rails 3.1, it's time to bend the rules
with respect to the time honoured tradition of putting script tags
before the
Should have paid more attention sorry. Do you have the execjs gem installed?
Dieter Lunn
http://ubiety.ca
On Thu, Jun 16, 2011 at 1:45 PM, Juliusz Gonera jgon...@gmail.com wrote:
I'll just quote myself:
I tried commenting out config.assets.enabled = true in application.rb
or
setting it to
On Jun 16, 2011, at 3:00 PM, Xavier Noria wrote:
On Thu, Jun 16, 2011 at 8:45 PM, steveluscher
goo...@steveluscher.com wrote:
There's a discussion going on at StackOverflow about whether, with
the
advent of HTTP streaming in Rails 3.1, it's time to bend the rules
with respect to the time
I used to use Sqlite3 as my database now I changed to MySQL installed mysql2
v=0.2.10 and now my application doesn't run. I get the exact same error as
the one pasted here.
http://pastebin.com/nzV1Rvv9
What can I do?
--
You received this message because you are subscribed to the Google
On Thu, Jun 16, 2011 at 9:10 PM, Rob Biedenharn
r...@agileconsultingllc.com wrote:
Has Rails changed the order in which it does things??
* instantiate a controller object and call the appropriate action method
* render a view (and its partials, etc)
* grab the layout and build the page by
Found the problem:
in my config/database.yml file I had the following entry for both production
and development configuration.
pool: 5
I removed that and it seems to work just fine. Well I guess it helps
someone.
Kudos to myself. :-)
--
You received this message because you are subscribed
I can get the form in another view with the code below.
But when insert the data and submit, the user is not recorded in database
%= form_for(User.new, :as = :user, :url = registration_path(:user)) do
|f| %
p%= f.label :email %br /
%= f.email_field :email %/p
p%= f.label :password %br
I want to assign a progressive number to an attribute.
I think that I can do this in the model
class Model ActiveRecord::Base
before_validation(:on = :create) do
attribute = Model.count + 1
But there is no method count for Model.
I think I'm doing wrong.
--
You received this message because
Try xml = Builder::XmlMarkup.new(:indent=2)
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/J3ZCOsSfXhYJ.
To post to this group, send email to
Thanks. That's where I started. That does two things: it indents the
markup just like I want, but it does a second thing, too. It leaves
all the white space that exists in the xml.builder file also, so that
the resultant XML document is really ugly and contains extra newlines
and extra spaces.
On
On 16 June 2011 20:52, Fernando Aureliano m...@fernandoaureliano.com wrote:
I can get the form in another view with the code below.
But when insert the data and submit, the user is not recorded in database
I can only repeat my previous post exactly:
Have a look in development.log to check that
On Jun 16, 2011, at 4:15 PM, Mauro wrote:
I want to assign a progressive number to an attribute.
I think that I can do this in the model
class Model ActiveRecord::Base
before_validation(:on = :create) do
attribute = Model.count + 1
But there is no method count for Model.
Is Model just an
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 4:15 PM, Mauro wrote:
I want to assign a progressive number to an attribute.
I think that I can do this in the model
class Model ActiveRecord::Base
before_validation(:on = :create) do
attribute =
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 4:15 PM, Mauro wrote:
I want to assign a progressive number to an attribute.
I think that I can do this in the model
class Model ActiveRecord::Base
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 4:15 PM, Mauro wrote:
I want to assign a progressive number to an attribute.
I think that I can
On 16 June 2011 21:39, Mauro mrsan...@gmail.com wrote:
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 4:15 PM, Mauro wrote:
I want to assign a
On Jun 16, 2011, at 5:39 PM, Mauro wrote:
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 4:15 PM, Mauro wrote:
I want to assign a
On Jun 16, 2011, at 5:40 PM, Mauro wrote:
On 16 June 2011 21:39, Mauro mrsan...@gmail.com wrote:
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011,
Hi!
First user (admin) I already register.
It's a security question. If I leave the registration page open, everyone
can find that and register yourself on admin, and have access...
=D
On Thu, Jun 16, 2011 at 6:10 PM, Colin Law clan...@googlemail.com wrote:
On 16 June 2011 20:52, Fernando
On 16 June 2011 21:41, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:39 PM, Mauro wrote:
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun
On Jun 16, 2011, at 5:46 PM, Mauro wrote:
On 16 June 2011 21:41, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:39 PM, Mauro wrote:
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:32 PM, Mauro wrote:
On 16 June 2011 21:24, Walter
On 16 June 2011 21:50, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:46 PM, Mauro wrote:
On 16 June 2011 21:41, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:39 PM, Mauro wrote:
On 16 June 2011 21:36, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun
Does everyone here realize that the 'id' is typically tied to a
database column that is set to auto-increment (in whatever fashion the
underlying database supports) for the primary key?
Also, if you ever delete a record, the .count will decrease and you'll
get a duplicate for the next
On Jun 16, 2011, at 5:53 PM, Mauro wrote:
On 16 June 2011 21:50, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:46 PM, Mauro wrote:
On 16 June 2011 21:41, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun 16, 2011, at 5:39 PM, Mauro wrote:
On 16 June 2011 21:36, Walter
At the moment no. I recreated the gemset and commented out those lines
in my Gemfile before running bundle install:
#gem 'coffee-script'
#gem 'uglifier'
#gem 'jquery-rails'
Seems it doesn't require a JavaScript runtime anymore.
It seems weird to me though that with config.assets.enabled = false
On Jun 16, 2011, at 3:12 PM, Rob Biedenharn wrote:
Does everyone here realize that the 'id' is typically tied to a database
column that is set to auto-increment (in whatever fashion the underlying
database supports) for the primary key?
Also, if you ever delete a record, the .count will
Hi,
I have a problem with Rails 3.0.9. I am generating some concatenated
javascript files with a runner, it is working flawlessly in Rails 2.3.
With Rails 3.0.9 I get an Exception with this backtrace:
actionpack-3.0.9/lib/action_view/helpers/asset_tag_helper.rb:794:in
`rails_asset_id'
...
Yeah, finally I got the answer!
http://stackoverflow.com/questions/6376718/devise-display-a-custom-sign-up-form-anywhere-in-your-app
But, for some reason, when I registered an user, he's not recorded on db.
But the terminal see the data correctly =/
In the terminal, I see the data, but the
Ha!
I found a problem. The problem is because I try to register a user while I'm
logged on
But, how fix this?
On Thu, Jun 16, 2011 at 8:54 PM, Fernando Aureliano
m...@fernandoaureliano.com wrote:
Yeah, finally I got the answer!
You want to use self.class.count.
Self is a reference to the object it's self (in your case, an instance
of FirePrevention), self.class is reference to the class.
On Jun 16, 9:32 pm, Mauro mrsan...@gmail.com wrote:
On 16 June 2011 21:24, Walter Lee Davis wa...@wdstudio.com wrote:
On Jun
coffee-script requires execjs to compile the javascript files. Even
with the asset pipeline disabled and coffee-script is required in your
gemfile it will require execjs along with it.
Dieter Lunn
http://ubiety.ca
On Thu, Jun 16, 2011 at 5:32 PM, Juliusz Gonera jgon...@gmail.com wrote:
At the
57 matches
Mail list logo