Hi guys,
Am trying to submit data through a text_area loaded by a partial form
unsuccessfully thus far.
Please find my code here
https://gist.github.com/Brayoni/1e3476ee672479dc971c.
Any leads highly appreciated.
Thank you.
--
You received this message because you are subscribed to the
Hi Ian,
Check out line 20 of you StudentIndisciplinesController
https://gist.github.com/Brayoni/1e3476ee672479dc971c#file-student_indisciplines_controller-rb-L20:
. You're passing a parameter that is nil according to your log. Also, if
you want to have more than one student indiscipline being
I have setup expensescounter in application_controller.rb file like as
follow:
class ApplicationController ActionController::Base
protect_from_forgery
include SessionsHelper
private
def current_expensescounter
Expensescounter.find(session[:expensescounter_id])
rescue
On Aug 4, 2014, at 2:52 AM, Jaimin Pandya li...@ruby-forum.com wrote:
I can not able to find solution of this error.
Any help would be appreciate.
As was suggested before, use logging to see what is actually happening. When
you're starting without a clue, log after every line to see where
Dear Rail Developers,
I'm kinda new to the RoR world and would appreciate if someone with the
knowledge helped me out sorting some things.
I got a new project that I'm supposed to do but came up with some
questions, it's basically a system to manage a Pub with basic
funcionalities like inventory
I have a ruby script which instruments Net::HTTP requests in Rails
applications. This works as follows: When Ruby loads the Net::HTTP class, I
alias the request method. At every http request, my instrumented method
gets executed. So that this works, I need to execute my script BEFORE ruby
Dear Matt:
I have tried fiddle, but couldn't make it to import functions in .dylib
(Fortran dll generated by intel
fortran compiler) that I could use DL to import successfully before. Any
suggestions?
Thanks!
Liz
On Tuesday, July 15, 2014 3:55:54 PM UTC-4, Liz Huang wrote:
Thanks! I
Hey Diego,
First, there is nothing wrong with running a local web server and just
having your browsers access it. Since the only users of your application
are going to be those on the same network it really doesn't matter if it is
hosted externally or internally and since the Internet going
Hi,
I have been asking this question in multiple forums like stackexchange
but have not received a solution or proper help. Any help here is
appreciated.
I have a rails app with a session store database (mysql). When I want to
clear a session, I reset the session variables and call reset_session.
Does fiddle work in Mac? I saw some comment that it doesn't work in all
platforms.
Liying
On Monday, August 4, 2014 11:01:33 AM UTC-4, Liz Huang wrote:
Dear Matt:
I have tried fiddle, but couldn't make it to import functions in .dylib
(Fortran dll generated by intel
fortran compiler)
Hey Eric,
thanks for the attention, really helped me sorting out on what technologies
to use. We were fearing that it would end out looking like some kind of
poor job building it on a local server.
As of the integration with periphericals I hadn't thought about this
approach, it seems pretty
A quick update:
it seems that the printer manufacturer provides a integration tool built in
a dll file. If that is of any help towards the solution.
2014-08-04 14:22 GMT-03:00 Diego Dillenburg Bueno diegodillenb...@gmail.com
:
Hey Eric,
thanks for the attention, really helped me sorting out
I was just thinking about doing something really quick like rendering a
page that is printer friendly using Rails and just having them hit CTRL+P
but if you wanted to bypass that and send it straight to the printer that
works too. From a quick Google search it seems the best way is to issue OS
Bharath Neo wrote in post #1154181:
Hi,
I have been asking this question in multiple forums like stackexchange
but have not received a solution or proper help. Any help here is
appreciated.
I have a rails app with a session store database (mysql). When I want to
clear a session, I reset the
On Saturday, 2 August 2014 11:41:46 UTC-4, Ruby-Forum.com User wrote:
Eric Saupe wrote in post #1154001:
First change the validates to only validate if a
password is being passed.
validates :password, length: { minimum: 6 }, :if = :password
Second, remove the parameters
Martin Ennemoser wrote in post #1154169:
I have a ruby script which instruments Net::HTTP requests in Rails
applications. This works as follows: When Ruby loads the Net::HTTP
class, I
alias the request method. At every http request, my instrumented method
gets executed. So that this works, I
I generally avoid code like that because it creates OOO dependancies (but in a
small app might work fine).
In fact you've stumbled onto one of the really smelly parts of Rails, IMHO.
What I usually do in cases like these (in fact I'm working on something right
at this moment) is that I
You could start CUPS on the local webserver and attach the printer to cups and
print the receipt in a delayed_job with a system call a la 'lp -d printer_name
rendered_pdf_file_name'
:)
Med venlig hilsen
Walther
Den 04/08/2014 kl. 19.31 skrev Eric Saupe ericsa...@gmail.com:
I was just
On 4 August 2014 08:28, Marco Antonio Almeida marcoafi...@gmail.com wrote:
Hi Ian,
Check out line 20 of you StudentIndisciplinesController: . You're passing a
parameter that is nil according to your log. Also, if you want to have more
than one student indiscipline being saved you will need to
On 4 August 2014 09:52, Jaimin Pandya li...@ruby-forum.com wrote:
I have setup expensescounter in application_controller.rb file like as
follow:
class ApplicationController ActionController::Base
protect_from_forgery
include SessionsHelper
private
def current_expensescounter
Thanks Robert for the reply. Nope, not from documentation. Its just
basic thing that if the record is created by rails, it needs to be
cleaned up by rails (why would it need to be cleaned up out of a
different path) ?
I remember reading this stackoverflow comment as well which mentioned
that
I want to use a form's id in javascript that runs after the DOM is loaded, so
what method would get the form's id for an object? In other words, there will
be erb thus:
%= form_for(@obj) do |f| %...% end %
so what erb would give me the id which that form will get?
I know I can just give the
Hi Scott, it is an interesting question. I was seeing in the source code
and I found that[0]. Basically, rails ask to object if it is persisted or
not to create the id.
But this is a private method, then you should need to implement this logic
in a helper(?) or something.
[0]
I want to make a helper for the bootstrap, and for controls (text_field,
label ...) I need to use the options of the form_for. There is a form
%= form_for(@user, url: signup_path, layout: :horizontal) do |user_f| % %=
user_f.fields_for :person do |person_f| % %=
As was suggested before, use logging to see what is actually happening.
When you're starting without a clue, log after every line to see where
things become different than what you expect.
I used logging to see what is actually happening. I found
expensescounter_id comes nil which is not my
That code is just returning an object. It is not allocating a value
to @line_item.expensescounter.
Yes. When i click on Add to count button, i got expensescounter_id
comes nil. BUT it should have some value.
How could i do this?
--
Posted via http://www.ruby-forum.com/.
--
You received
26 matches
Mail list logo