The check is performed during the upload. If the filename exists already in
the database it will not be uploaded twice. Cannot I use this during
uploading time to check the content of the file?
Am Montag, 19. November 2012 01:04:56 UTC+1 schrieb Scott Ribe:
On Nov 18, 2012, at 2:15 PM,
On 19 November 2012 09:14, Akvarel kate.kokatju...@gmail.com wrote:
The check is performed during the upload. If the filename exists already in
the database it will not be uploaded twice. Cannot I use this during
uploading time to check the content of the file?
The upload operation is the act
I'm storing some user info in session (like the name, using cookies), in
Ruby on Rails 3.2
- Let's suppose the user opens the site in two different browsers, and
logs in.
- He changes his name in one browser, and switches to the other browser
and refreshes the page.
- The
I have a special request... I have a boyfriend who is a computer
programmer. He is currently studying Ruby and I want to give his a gift
that would be very meaningful to him. I wanted have a code that I could put
in a frame in Ruby for the following: I can do all things through Christ
who
On 18 November 2012 21:24, Colin Law clan...@googlemail.com wrote:
On 18 November 2012 19:42, Mauro mrsan...@gmail.com wrote:
Hello.
I have this unit test:
test User validations do
user = User.new
assert user.invalid?
assert user.errors[:uid].any?
assert user.errors[:name].any?
On Mon, Nov 19, 2012 at 4:53 AM, David M idav...@gmail.com wrote:
I'm storing some user info in session (like the name, using cookies), in
Ruby on Rails 3.2
Let's suppose the user opens the site in two different browsers, and logs
He changes his name in one browser, and switches to the other
I am using ruby-on-rails + psql
I have list of pages. On some page click I have to open page in pop-up.
How I'll load data in that pop-up for specific page.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
The best way to visualize the process here is to imagine the request comes
in at the *top* of the middleware stack (AD::Static here) and is passed
down to successive middlewares until it generates a response. The response
then flows back *up* the stack until it gets to the top and is
I read the Rails doc about Tagged logger, it seems great , but I am missing
some stuff :
- where should I define the Logger class :
Logger = ActiveSupport::TaggedLogging.new( File.join(Rails.root,
log, new_logger_#{Rails.env}.log)
- is it possible to define multiple Logger classes to
On 19 November 2012 12:40, Manish Nautiyal li...@ruby-forum.com wrote:
I am using ruby-on-rails + psql
I have list of pages. On some page click I have to open page in pop-up.
How I'll load data in that pop-up for specific page.
Are you opening it using javascript, without contacting the
On Nov 19, 2012, at 2:28 AM, Jim Ruther Nill wrote:
On Mon, Nov 19, 2012 at 2:56 PM, Robert Negronida li...@ruby-forum.com
wrote:
I have this code:
%= f.select :name, [@m.each do |n|
[ n.first_name , n.first_name ]
end], :class = 'gam' %
#each returns @m,
On Mon, Nov 19, 2012 at 10:12 PM, Walter Lee Davis wa...@wdstudio.comwrote:
On Nov 19, 2012, at 2:28 AM, Jim Ruther Nill wrote:
On Mon, Nov 19, 2012 at 2:56 PM, Robert Negronida li...@ruby-forum.com
wrote:
I have this code:
%= f.select :name, [@m.each do |n|
[
On my edit page I can update values using ajax.
In my edit action I also have something like: Model.where(model_id:
id).sum(attribute)
As the edit action is not executed anymore, I dont get a proper result
after I add some new value, have to reload the page.
How is the best way to actualize
On Mon, Nov 19, 2012 at 10:25 PM, Werner webagentur.la...@googlemail.comwrote:
On my edit page I can update values using ajax.
In my edit action I also have something like: Model.where(model_id:
id).sum(attribute)
As the edit action is not executed anymore, I dont get a proper result
after
Something like that?
%= f.select :city_id, @cities.map { |city| [city.name, city.id] } %
Am Montag, 19. November 2012 07:57:39 UTC+1 schrieb Ruby-Forum.com User:
I have this code:
%= f.select :name, [@m.each do |n|
[ n.first_name , n.first_name ]
end], :class =
On Nov 18, 2012, at 11:07 PM, Jekaterina Kokatjuhha wrote:
It performed during upload because if there is the same filename is the
database , the file will not be uploaded,
That does not mean the file was not sent to the server.
I phrased my question poorly, so here it is again, hopefully
I can use the standard buffer class :
MyBufferedLogger =
ActiveSupport::BufferedLogger.new(Rails.root.join('log/my_buffered.log'))
MyBufferedLogger.info Hello World! # = OK
but I cannot do it using the TaggedLogging buffer class
MyTaggedLogger =
[SOLVED] in doc : TaggedLogging is a wrapper ...
so
MyTaggedLogger =
ActiveSupport::BufferedLogger.new(Rails.root.join('log/my_tagged.log'))
MyTaggedLogger = ActiveSupport::TaggedLogging.new(MyTaggedLogger)
and
MyTaggedLogger.tagged(BCX) { MyTaggedLogger.info Hello World! } # OK
Le
Hello. I would like to rename any sequence in my database, because I rename
table, but yours sequence I don't know rename. Have rename with one
migration?
For example: rename_sequence :conta_id_seq, :account_id_seq??
Thank you.
--
You received this message because you are subscribed to the
On 19 November 2012 16:36, Guilherme Rodrigues lopesg...@gmail.com wrote:
Hello. I would like to rename any sequence in my database, because I rename
table, but yours sequence I don't know rename. Have rename with one
migration?
For example: rename_sequence :conta_id_seq, :account_id_seq??
If
Hi,
I'm not surely if I'm going to be able to explain well ...
We have a Rails 3.2 with backend PostgreSQL.
We have 5 models that are nested/related between them, and all must be
created/updated/destroyed in block, like a transaction.
Those models are created using very complex views and some
On 19 November 2012 17:23, mongeta 99 li...@ruby-forum.com wrote:
Hi,
I'm not surely if I'm going to be able to explain well ...
We have a Rails 3.2 with backend PostgreSQL.
We have 5 models that are nested/related between them, and all must be
created/updated/destroyed in block, like a
Colin Law wrote in post #1085205:
On 19 November 2012 17:23, mongeta 99 li...@ruby-forum.com wrote:
is for a very complex ERP.
We don't want to store 'invalid data' in the real tables, like using
some attribute like 'pending' or 'modifying'.
One solution that I'm experiment with it, and it
So I've just dipped into Rails and I'm completely lost ...
I have a very simple website. There are 2 layouts, application and
welcome.
The route begins at the welcome layout.
The main controller is connected to the welcome layout, and has one
method, so this method's view gets inserted at the
On 19 November 2012 18:17, Joz Private li...@ruby-forum.com wrote:
So I've just dipped into Rails and I'm completely lost ...
I suggest working through a good tutorial such as railstutorial.org
(which is free to use online). This will show you the basics of
rails.
Colin
--
You received this
+1 on Colin's response
On Monday, November 19, 2012 11:17:40 AM UTC-7, Ruby-Forum.com User wrote:
So I've just dipped into Rails and I'm completely lost ...
I have a very simple website. There are 2 layouts, application and
welcome.
The route begins at the welcome layout.
The main
On Mon, Nov 19, 2012 at 10:17 AM, Joz Private li...@ruby-forum.com wrote:
So I've just dipped into Rails and I'm completely lost ...
p align=centerfont size=24%= @message %/font/p
Besides the excellent suggestion to work through a Rails tutorial --
If you intend to do web development, please
I wonder... Is there a possibility that if your database has multiple
tables that are related with foreign keys,
whilst a user is filling in fields of forms, etc - is it possible for
another web user to overwrite records or to create
records with the same id that would later get overwritten by
We can do that with attr_accessor
In model
attr_accessible :site_id
attr_accessor :site_id
in form, add a hidden field like this
=f.site_id, value; session[:site_id]
in model we can use self.site_id now.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
29 matches
Mail list logo